/* ═══════════════════════════════════════════════════════════
   HOST VIBER IMAGE — Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --card-bdr: #e2e2e7;
    --inp: #f0f0f4;
    --inp-bdr: #d8d8df;
    --acc: #2563eb;
    --blue: #1e40af;
    --grn: #059669;
    --red: #dc2626;
    --orn: #d97706;
    --txt: #1a1a1a;
    --dim: #6b6b76;
    --mut: #9b9ba5;
    --acc-bg: #2563eb10;
    --blue-bg: #1e40af10;
    --grn-bg: #05966910;
    --red-bg: #dc262610;
    --orn-bg: #d9770610;
    --font: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
    --body: 'DM Sans', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--txt); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { letter-spacing: -0.3px; padding-left: 1px; }


/* ══════════════════════════════════════════
   CARD
   ══════════════════════════════════════════ */
.card {
    background: var(--card);
    border: 1px solid var(--card-bdr);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    gap: 12px;
}
.card-head h3 { font-size: 14px; font-weight: 700; }
.card-faded { opacity: 0.45; }
.card-warning {
    border-color: var(--orn);
    background: #d9770604;
    padding: 16px 20px;
}
.warning-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--orn);
    margin-bottom: 10px;
}
.warning-head [data-lucide] { width: 18px; height: 18px; }


/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--body);
    transition: all 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}
.btn [data-lucide] { width: 14px; height: 14px; }

.btn-primary { background: linear-gradient(135deg, var(--acc), var(--blue)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue), var(--acc)); }
.btn-success { background: linear-gradient(135deg, var(--grn), #059669); color: #fff; }
.btn-ghost { background: var(--inp); color: var(--dim); border: 1px solid var(--inp-bdr); }
.btn-ghost:hover { background: var(--inp-bdr); color: var(--txt); border-color: var(--card-bdr); }
.btn-danger { background: #dc262618; color: var(--red); border: 1px solid #dc262630; }
.btn-danger:hover { background: #dc262625; }

.btn-sm { padding: 7px 14px; border-radius: 8px; font-size: 12px; }
.btn-sm [data-lucide] { width: 13px; height: 13px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--inp-bdr);
    background: var(--inp);
    display: flex; align-items: center; justify-content: center;
    color: var(--mut);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--inp-bdr); color: var(--txt); }
.btn-icon [data-lucide] { width: 14px; height: 14px; }

.btn-danger-text { color: #dc262680 !important; }
.btn-danger-text:hover { color: var(--red) !important; background: var(--red-bg) !important; }


/* ══════════════════════════════════════════
   INPUTS
   ══════════════════════════════════════════ */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    font-size: 11px;
    color: var(--mut);
    letter-spacing: 0.8px;
    font-family: var(--body);
    font-weight: 500;
    margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mut);
    width: 14px; height: 14px;
}
.input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    background: var(--inp);
    border: 1px solid var(--inp-bdr);
    border-radius: 10px;
    color: var(--txt);
    font-size: 14px;
    font-family: var(--body);
    outline: none;
    transition: border-color 0.2s;
}
.input-wrap input:focus { border-color: #2563eb50; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; }

.role-btns { display: flex; gap: 6px; }
.role-btn { flex: 1; }
.role-btn input { display: none; }
.role-btn span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--inp-bdr); background: var(--inp);
    color: var(--dim); font-size: 13px; font-family: var(--body);
    font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.role-btn span [data-lucide] { width: 14px; height: 14px; }
.role-btn input:checked + span {
    border-color: #2563eb50;
    background: var(--acc-bg);
    color: var(--acc);
}


/* ══════════════════════════════════════════
   ALERTS & BADGES
   ══════════════════════════════════════════ */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 12.5px; font-family: var(--body); }
.alert-error { background: #dc262612; border: 1px solid #dc262625; color: var(--red); }
.alert-success { background: #05966910; border: 1px solid #05966920; color: var(--grn); }
.alert-warning { background: #d9770608; border: 1px solid #d9770618; color: var(--dim); }
.alert-warning strong { color: var(--orn); }

.badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.4px; font-family: var(--body);
}
.badge [data-lucide] { width: 11px; height: 11px; }
.badge-acc { background: var(--acc-bg); color: var(--acc); }
.badge-grn { background: var(--grn-bg); color: var(--grn); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-orn { background: var(--orn-bg); color: var(--orn); }

.text-muted { color: var(--mut); font-size: 12px; font-family: var(--body); }
.text-accent { color: var(--acc); font-weight: 600; }


/* ══════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════ */
.login-body {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-dots {
    position: fixed; inset: 0; opacity: 0.6;
    background-image: radial-gradient(#00000008 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.login-wrapper { width: 100%; max-width: 400px; position: relative; }
.login-logo { text-align: center; margin-bottom: 40px; }
.logo-box {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--acc), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: #fff;
}
.login-logo h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.subtitle { font-size: 12px; color: var(--mut); font-family: var(--body); margin-top: 4px; letter-spacing: 0.5px; }
.login-card { padding: 32px; }
.login-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.login-footer { text-align: center; margin-top: 24px; font-size: 12px; color: var(--mut); font-family: var(--body); }
.login-footer strong { color: var(--dim); }


/* ══════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════ */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
    border-bottom: 1px solid var(--card-bdr);
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
    position: sticky; top: 0; z-index: 50;
    flex-wrap: wrap; gap: 10px;
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.logo-box-sm {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--acc), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff;
}
.header-title { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
.header-sub { font-size: 9.5px; color: var(--mut); letter-spacing: 0.5px; font-family: var(--body); }

/* Nav Tabs */
.header-nav {
    display: flex; gap: 2px;
    background: var(--inp); border-radius: 10px; padding: 3px;
    border: 1px solid var(--card-bdr);
}
.tab-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 8px; border: none;
    font-size: 12px; font-weight: 500; font-family: var(--body);
    transition: all 0.2s; color: var(--mut); cursor: pointer; background: transparent;
    white-space: nowrap;
}
.tab-btn [data-lucide] { width: 13px; height: 13px; }
.tab-btn:hover { background: #d8d8df80; color: var(--txt); }
.tab-active {
    background: linear-gradient(135deg, #2563eb22, #1e40af22) !important;
    color: var(--acc) !important;
    font-weight: 600 !important;
}

/* Header User */
.header-user { display: flex; align-items: center; gap: 10px; }
.user-info { display: flex; align-items: center; gap: 10px; cursor: pointer; transition: opacity 0.2s; }
.user-info:hover { opacity: 0.8; }
.user-text { text-align: right; }
.user-name { font-size: 12.5px; font-weight: 600; color: #3a3a42; }
.user-role { font-size: 10px; color: var(--mut); font-family: var(--body); }
.user-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--acc-bg); border: 1px solid #2563eb30;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.user-avatar [data-lucide] { width: 15px; height: 15px; color: var(--acc); }
.avatar-admin { background: var(--orn-bg); border-color: #d9770630; }
.avatar-admin [data-lucide] { color: var(--orn); }
.user-active .user-avatar { background: var(--acc-bg); border-color: #2563eb40; }

.app-content {
    flex: 1; max-width: 1060px; margin: 0 auto;
    padding: 28px 20px; width: 100%;
}
.app-footer {
    border-top: 1px solid var(--card-bdr);
    padding: 12px 20px; text-align: center;
    font-size: 11px; color: var(--mut); font-family: var(--body);
    margin-top: auto;
}
.app-footer strong { color: var(--dim); }


/* ══════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════ */
.page-welcome { margin-bottom: 22px; }
.page-welcome h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.page-welcome p { font-size: 13px; color: var(--dim); font-family: var(--body); margin-top: 4px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h2 { font-size: 17px; font-weight: 700; }

.stats-grid { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.stat-card {
    flex: 1 1 140px; padding: 18px;
    background: var(--card); border: 1px solid var(--card-bdr);
    border-radius: 16px; box-shadow: var(--shadow);
    display: flex; align-items: flex-start; justify-content: space-between;
}
.stat-link { cursor: pointer; transition: all 0.15s; }
.stat-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.stat-value { font-size: 26px; font-weight: 800; font-family: var(--mono); line-height: 1; }
.stat-label { font-size: 12px; color: var(--dim); font-family: var(--body); margin-top: 6px; font-weight: 500; }
.stat-sub { font-size: 11px; color: var(--mut); font-family: var(--body); margin-top: 2px; }
.stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon [data-lucide] { width: 18px; height: 18px; }
.stat-mini {
    flex: 1 1 100px; padding: 14px 16px;
    background: var(--inp); border-radius: 10px; border: 1px solid var(--inp-bdr);
    text-align: center;
}
.stat-mini .stat-value { font-size: 20px; }

.dash-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.dash-grid > .card { flex: 1 1 320px; padding: 18px 20px; }
.dash-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.dash-side > .card { padding: 18px 20px; overflow: visible; }
.quick-actions { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.quick-actions .card-head { padding-bottom: 8px; }


/* ══════════════════════════════════════════
   LIST ROWS
   ══════════════════════════════════════════ */
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.list-row + .list-row { border-top: 1px solid var(--inp); }
.list-row-card { padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.list-thumb {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--inp); border: 1px solid var(--inp-bdr);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--dim);
}
.list-thumb [data-lucide] { width: 16px; height: 16px; }
.list-info { flex: 1; min-width: 0; }
.list-name {
    font-size: 12.5px; font-weight: 600; color: #3a3a42;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-name .badge { margin-left: 6px; vertical-align: middle; }
.list-meta {
    font-size: 10.5px; color: var(--mut); font-family: var(--body);
    margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.row-actions { display: flex; gap: 4px; flex-shrink: 0; }

.timer-badge { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.timer-badge [data-lucide] { width: 11px; height: 11px; }
.progress-bar { margin-top: 4px; height: 3px; border-radius: 2px; background: var(--inp-bdr); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 1s; }

.rank-num { width: 22px; font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--mut); text-align: center; }
.rank-count { font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--acc); }


/* ══════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════ */
.empty-state { padding: 48px 24px; text-align: center; }
.empty-state-sm { padding: 20px; text-align: center; color: var(--mut); font-size: 13px; font-family: var(--body); }
.empty-icon { width: 36px; height: 36px; color: var(--mut); margin: 0 auto 10px; }
.empty-state p { color: var(--mut); font-size: 13px; font-family: var(--body); margin-bottom: 12px; }


/* ══════════════════════════════════════════
   UPLOAD PAGE
   ══════════════════════════════════════════ */
.upload-wrapper { max-width: 560px; margin: 0 auto; }

.steps-bar { display: flex; align-items: center; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 8px; opacity: 0.4; transition: opacity 0.3s; }
.step.active { opacity: 1; }
.step.done { opacity: 1; }
.step-num {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; font-family: var(--mono);
    background: var(--inp); color: var(--mut); border: 1px solid var(--inp-bdr);
}
.step.active .step-num { background: var(--acc-bg); color: var(--acc); border-color: #2563eb40; }
.step.done .step-num { background: var(--grn-bg); color: var(--grn); border-color: #05966940; }
.step span:last-child { font-size: 12px; font-family: var(--body); color: var(--mut); white-space: nowrap; }
.step.active span:last-child { color: var(--txt); font-weight: 600; }
.step.done span:last-child { color: var(--grn); }
.step-line { flex: 1; height: 1px; margin: 0 12px; background: var(--inp-bdr); }
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.drop-zone {
    border: 2px dashed var(--inp-bdr); border-radius: 16px;
    padding: 52px 32px; text-align: center; cursor: pointer;
    transition: all 0.3s; background: var(--card); position: relative;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--acc); background: #2563eb06; }
.drop-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
    background: linear-gradient(135deg, #2563eb12, #1e40af12);
    border: 1px solid #2563eb18;
    display: flex; align-items: center; justify-content: center;
}
.drop-icon [data-lucide] { width: 26px; height: 26px; color: var(--acc); }
.drop-title { font-size: 16px; font-weight: 600; color: #3a3a42; margin-bottom: 6px; }
.drop-sub { color: var(--mut); font-size: 12.5px; font-family: var(--body); }

.preview-mini { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; }
.preview-mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--inp-bdr); }

.expiry-options { display: flex; flex-direction: column; gap: 6px; }
.expiry-opt { cursor: pointer; }
.expiry-opt input { display: none; }
.expiry-label {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--inp-bdr); background: var(--inp); transition: all 0.15s;
}
.expiry-opt input:checked + .expiry-label { border-color: #2563eb50; background: var(--acc-bg); }
.expiry-radio {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--inp-bdr); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.expiry-opt input:checked + .expiry-label .expiry-radio {
    border-color: var(--acc); background: var(--acc);
}
.expiry-opt input:checked + .expiry-label .expiry-radio::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.expiry-opt input:checked + .expiry-label span:last-child { color: var(--txt); font-weight: 600; }
.expiry-label span:last-child { font-size: 13.5px; color: var(--dim); font-family: var(--body); font-weight: 500; }

.confirm-preview {
    padding: 14px; display: flex; justify-content: center;
    background: #f7f7fa; border-bottom: 1px solid var(--card-bdr); max-height: 300px;
}
.confirm-preview img { max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 8px; }
.confirm-rows { display: flex; flex-direction: column; gap: 10px; }
.confirm-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: var(--inp); border-radius: 10px; border: 1px solid var(--inp-bdr);
}
.confirm-row span { font-size: 12px; color: var(--mut); font-family: var(--body); }
.confirm-row strong { font-size: 13px; font-family: var(--body); }


/* ══════════════════════════════════════════
   EDIT EXPIRY
   ══════════════════════════════════════════ */
.edit-expiry { padding: 0 14px 14px; border-top: 1px solid var(--card-bdr); margin-top: 2px; }
.edit-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.edit-head strong { font-size: 12.5px; color: #3a3a42; }
.expiry-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { cursor: pointer; }
.chip input { display: none; }
.chip {
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--inp-bdr); background: var(--inp);
    color: var(--dim); font-size: 12px; font-family: var(--body);
    font-weight: 500; transition: all 0.15s;
}
.chip:has(input:checked), .chip-active {
    border-color: #2563eb50 !important;
    background: var(--acc-bg) !important;
    color: var(--acc) !important;
}

.image-card { margin-bottom: 6px; }
.image-card .list-row { padding: 11px 14px; }
.image-card .list-thumb { width: 40px; height: 40px; }


/* ══════════════════════════════════════════
   USERS PAGE
   ══════════════════════════════════════════ */
.user-avatar-sm {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--acc-bg); border: 1px solid #2563eb25;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-avatar-sm [data-lucide] { width: 17px; height: 17px; color: var(--acc); }
.user-avatar-sm.avatar-admin { background: var(--orn-bg); border-color: #d9770625; }
.user-avatar-sm.avatar-admin [data-lucide] { color: var(--orn); }


/* ══════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════ */
.profile-wrapper { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.profile-header { padding: 28px 24px; text-align: center; }
.profile-avatar {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--acc), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff; font-weight: 800; font-family: var(--font);
}
.profile-header h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.profile-header .badge { margin-top: 10px; }

.info-rows { display: flex; flex-direction: column; gap: 8px; }
.info-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; background: var(--inp); border-radius: 10px; border: 1px solid var(--inp-bdr);
}
.info-row span { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); font-family: var(--body); }
.info-row [data-lucide] { width: 14px; height: 14px; }
.info-row strong { font-size: 13px; font-family: var(--body); }


/* ══════════════════════════════════════════
   FLASH TOAST
   ══════════════════════════════════════════ */
.flash-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 12px;
    font-size: 13px; font-family: var(--body); font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: opacity 0.5s, transform 0.5s;
}
.flash-toast [data-lucide] { width: 16px; height: 16px; }
.flash-success { background: var(--grn); color: #fff; }
.flash-error { background: var(--red); color: #fff; }
.flash-hide { opacity: 0; transform: translateX(-50%) translateY(20px); }


/* ══════════════════════════════════════════
   ACTIVITY LOG
   ══════════════════════════════════════════ */
.log-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.log-card { padding: 0; }
.log-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px;
}
.log-row + .log-row { border-top: 1px solid var(--inp); }
.log-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.log-icon [data-lucide] { width: 16px; height: 16px; }
.log-info { flex: 1; min-width: 0; }
.log-action { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-user { font-size: 13px; font-weight: 600; color: var(--txt); }
.log-details {
    font-size: 12.5px; color: var(--dim); font-family: var(--body);
    margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.log-meta {
    display: flex; align-items: center; gap: 12px;
    margin-top: 5px; font-size: 11px; color: var(--mut); font-family: var(--body);
}
.log-meta span { display: inline-flex; align-items: center; gap: 4px; }
.log-meta [data-lucide] { width: 11px; height: 11px; }
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 16px;
}
.page-info { font-size: 13px; color: var(--dim); font-family: var(--body); font-weight: 500; }

/* Advanced filters */
.log-advanced-filters {
    padding: 16px 18px;
    margin-bottom: 16px;
}
.filter-row {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.filter-field { flex: 1 1 160px; }
.filter-field label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--mut); letter-spacing: 0.5px;
    font-family: var(--body); font-weight: 500; margin-bottom: 6px;
}
.filter-field label [data-lucide] { width: 12px; height: 12px; }
.filter-select, .filter-input {
    width: 100%; padding: 9px 12px;
    background: var(--inp); border: 1px solid var(--inp-bdr);
    border-radius: 8px; color: var(--txt);
    font-size: 13px; font-family: var(--body);
    outline: none; transition: border-color 0.2s;
    -webkit-appearance: none; appearance: none;
}
.filter-select:focus, .filter-input:focus { border-color: #2563eb50; }
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9ba5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.filter-actions { display: flex; align-items: flex-end; padding-bottom: 1px; }


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .app-header {
        padding: 10px 14px;
        flex-wrap: wrap;
    }
    .header-brand { flex: 0 0 auto; }
    .header-user { flex: 0 0 auto; }
    .header-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-user .user-text { display: none; }
    .app-content { padding: 20px 16px; }
    .stats-grid { gap: 8px; }
    .stat-card { flex: 1 1 45%; padding: 14px; }
    .stat-value { font-size: 20px; }
    .dash-grid { flex-direction: column; }
    .dash-grid > .card { padding: 16px; }
    .dash-side > .card { padding: 16px; }
    .card.quick-actions { padding: 14px 16px 6px !important; }
    .form-grid { grid-template-columns: 1fr; }
    .list-row-card { padding: 10px 14px; }
    .row-actions { flex-wrap: wrap; }
    .page-welcome h1 { font-size: 20px; }
    .upload-wrapper { padding: 0; }
    .drop-zone { padding: 40px 20px; }
    .login-wrapper { padding: 0 8px; }
    .log-row { padding: 12px 14px; }
    .log-details { white-space: normal; }
    .log-advanced-filters { padding: 14px; }
    .filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .filter-field:first-child {
        grid-column: 1 / -1;
    }
    .filter-actions {
        grid-column: 1 / -1;
    }
    .filter-actions .btn { width: 100%; justify-content: center; }
}
