/* ============================================================
   TEIS — Enterprise Admin Panel
   Main Admin Stylesheet  |  Bootstrap 5.3 + Bootstrap Icons
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
    /* Sidebar */
    --sidebar-w:        260px;
    --sidebar-bg:       #0a1628;
    --sidebar-border:   rgba(255,255,255,.07);
    --sidebar-text:     rgba(255,255,255,.62);
    --sidebar-hover:    rgba(255,255,255,.07);
    --sidebar-active:   rgba(201,162,39,.12);
    --sidebar-active-t: #c9a227;

    /* Brand */
    --gold:             #c9a227;
    --gold-light:       #e0b93a;
    --navy:             #0a1628;
    --navy-mid:         #112240;

    /* Content */
    --topbar-h:         64px;
    --page-bg:          #f4f6fb;
    --card-bg:          #ffffff;
    --card-border:      #e8edf4;
    --card-radius:      14px;
    --shadow-sm:        0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
    --shadow:           0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:        0 8px 32px rgba(0,0,0,.12);

    /* Text */
    --text:             #1e293b;
    --text-muted:       #64748b;
    --text-light:       #94a3b8;

    /* Status */
    --success:          #059669;
    --danger:           #dc2626;
    --warning:          #d97706;
    --info:             #0891b2;

    --trans:            all .22s ease;
}

/* ── 2. RESET / BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── 3. LAYOUT SHELL ──────────────────────────────────────── */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
}

/* ── 4. SIDEBAR ───────────────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .28s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}

/* Brand header */
.admin-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.admin-brand .brand-mark {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.5px;
    line-height: 1;
}

.admin-brand .brand-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 1px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.admin-brand small {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    font-weight: 500;
}

/* Nav */
.admin-nav {
    padding: 1rem 0 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1.25rem;
    margin: .05rem .75rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: var(--trans);
    white-space: nowrap;
}

.admin-nav a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255,255,255,.35);
    transition: var(--trans);
}

.admin-nav a:hover {
    background: var(--sidebar-hover);
    color: rgba(255,255,255,.9);
}
.admin-nav a:hover i { color: var(--gold); }

.admin-nav a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-t);
    font-weight: 600;
}
.admin-nav a.active i { color: var(--gold); }

/* Section labels */
.nav-section {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.22);
    padding: 1.25rem 1.25rem .35rem;
    pointer-events: none;
}

/* ── 5. MAIN CONTENT AREA ─────────────────────────────────── */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* ── 6. TOPBAR ────────────────────────────────────────────── */
.admin-topbar {
    height: var(--topbar-h);
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.btn-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: .35rem;
    border-radius: 6px;
    transition: var(--trans);
}
.btn-toggle-sidebar:hover { background: var(--page-bg); color: var(--text); }

.admin-page-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    flex-grow: 1;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.admin-user strong { color: var(--text); }

.admin-user-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
    padding: 0;
}
.admin-user-btn:hover {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

/* User dropdown */
.admin-user .dropdown-menu {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: .35rem;
    min-width: 180px;
}
.admin-user .dropdown-item {
    font-size: .85rem;
    border-radius: 6px;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    transition: var(--trans);
}
.admin-user .dropdown-item:hover { background: var(--page-bg); }
.admin-user .dropdown-item.text-danger { color: var(--danger) !important; }
.admin-user .dropdown-item.text-danger:hover { background: #fef2f2; }
.admin-user .dropdown-item i { width: 16px; text-align: center; opacity: .7; }

/* ── 7. CONTENT WRAPPER ───────────────────────────────────── */
.admin-content {
    padding: 2rem 1.75rem;
    flex-grow: 1;
}

/* ── 8. ALERT BANDS ───────────────────────────────────────── */
.alert-success-band,
.alert-danger-band {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border: none;
}

.alert-success-band {
    background: #ecfdf5;
    color: #065f46;
}

.alert-danger-band {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success-band i { color: var(--success); }
.alert-danger-band  i { color: var(--danger);  }

/* ── 9. DASHBOARD STAT TILES ──────────────────────────────── */
.stat-tile {
    border-radius: var(--card-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
}

.stat-tile::after {
    content: '';
    position: absolute;
    right: -20px; bottom: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}

.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stat-tile .stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,.9);
    flex-shrink: 0;
}

.stat-tile h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}
.stat-tile h3 small { font-size: 1rem; opacity: .75; }
.stat-tile span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.7); }

.stat-tile a {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: var(--trans);
    width: 100%;
}
.stat-tile a:hover { color: #fff; gap: .5rem; }

/* Gradients */
.gradient-1 { background: linear-gradient(135deg, #0a1628 0%, #1a3461 100%); }
.gradient-2 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.gradient-3 { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.gradient-4 { background: linear-gradient(135deg, #c9a227 0%, #a07d19 100%); }

/* ── 10. ADMIN CARDS ──────────────────────────────────────── */
.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.admin-card-header h5 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.admin-card-header h5 i { color: var(--gold); }

.admin-card-header a {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gold);
    transition: var(--trans);
}
.admin-card-header a:hover { color: var(--gold-light); }

/* Card body */
.admin-card > .p-3,
.admin-card > form {
    padding: 1.5rem;
}

/* ── 11. ADMIN TABLE ──────────────────────────────────────── */
.admin-table {
    margin: 0;
    font-size: .875rem;
    width: 100%;
}

.admin-table thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--card-border);
    border-top: none;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: .875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fafc; }

.admin-table strong { color: var(--navy); font-weight: 600; }
.admin-table small  { color: var(--text-muted); }

/* Unread dot */
.dot-unread {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--danger);
    margin-left: .4rem;
    vertical-align: middle;
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ── 12. RECENT LIST ──────────────────────────────────────── */
.recent-list {
    list-style: none;
    padding: 0; margin: 0;
}

.recent-list li {
    border-bottom: 1px solid #f1f5f9;
}
.recent-list li:last-child { border-bottom: none; }

.recent-list a {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1.5rem;
    transition: var(--trans);
}
.recent-list a:hover { background: #f8fafc; }

.recent-list small {
    font-size: .72rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.recent-list strong {
    font-size: .875rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
}

/* ── 13. PAGE TOOLBAR ─────────────────────────────────────── */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-toolbar h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 700;
    padding: .15rem .6rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

/* ── 14. BUTTONS ──────────────────────────────────────────── */
.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--navy);
    color: #fff !important;
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    border-radius: 8px;
    border: none;
    transition: var(--trans);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.btn-primary-cta:hover {
    background: var(--gold);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,162,39,.3);
}

.btn-outline-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    color: var(--text) !important;
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: var(--trans);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.btn-outline-cta:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff !important;
}

/* Override Bootstrap button colours in admin context */
.btn-outline-primary {
    color: var(--navy);
    border-color: var(--navy);
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .3rem .75rem;
}
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-outline-danger {
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    padding: .3rem .75rem;
}

/* ── 15. FORM ELEMENTS ────────────────────────────────────── */
.admin-content .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
}

.admin-content .form-control,
.admin-content .form-select {
    border-color: var(--card-border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--text);
    padding: .6rem .9rem;
    transition: var(--trans);
    background: var(--card-bg);
}
.admin-content .form-control:focus,
.admin-content .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}

.admin-content .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Input group */
.admin-content .input-group-text {
    background: var(--page-bg);
    border-color: var(--card-border);
    color: var(--text-muted);
    font-size: .9rem;
}

/* Badges */
.badge.bg-success  { background: #dcfce7 !important; color: #166534 !important; font-weight: 600; border-radius: 6px; }
.badge.bg-secondary{ background: #f1f5f9 !important; color: #64748b !important; font-weight: 600; border-radius: 6px; }
.badge.bg-warning  { background: #fffbeb !important; color: #92400e !important; font-weight: 600; border-radius: 6px; }
.badge.bg-danger   { background: #fef2f2 !important; color: #991b1b !important; font-weight: 600; border-radius: 6px; }

/* ── 16. MESSAGE DETAIL ───────────────────────────────────── */
.message-detail { padding: 2rem; }
.message-detail h4 { font-size: 1.25rem; color: var(--navy); margin-bottom: 1rem; }

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.message-meta span {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--text-muted);
}
.message-meta i { color: var(--gold); }
.message-meta a { color: var(--text-muted); }
.message-meta a:hover { color: var(--gold); }

.message-body {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text);
    background: var(--page-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 0;
}

/* ── 17. LOGIN PAGE ───────────────────────────────────────── */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--navy) 0%, #0d2045 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Geometric background */
.admin-login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.admin-login-body::after {
    content: '';
    position: absolute;
    left: -100px; top: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,.07) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.login-card {
    width: 100%;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

/* Gold top stripe */
.login-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px 3px 0 0;
    margin: -2.5rem -2.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .brand-mark {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.login-brand .brand-mark.dark { color: var(--gold); }

.login-brand .brand-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    margin: 0 2px;
    vertical-align: middle;
    position: relative;
    top: -4px;
}

.login-brand p {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin: .35rem 0 0;
}

/* Login form labels */
.login-card .form-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: .35rem;
}

/* Login inputs */
.login-card .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff;
    font-size: .9rem;
    padding: .65rem .9rem;
    transition: var(--trans);
}
.login-card .form-control::placeholder { color: rgba(255,255,255,.25); }
.login-card .form-control:focus {
    background: rgba(255,255,255,.09);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
    color: #fff;
}

/* Input group adornment */
.login-card .input-group-text {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.35);
    border-radius: 8px 0 0 8px;
}

/* Remember me */
.login-card .form-check-input {
    background-color: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}
.login-card .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}
.login-card .form-check-label {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* Login button */
.btn-login {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy) !important;
    font-weight: 700;
    font-size: .9rem;
    border: none;
    border-radius: 10px;
    padding: .8rem 1.5rem;
    letter-spacing: .02em;
    transition: var(--trans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,.4);
}

/* Hint text */
.login-hint {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

.login-hint strong { color: rgba(255,255,255,.55); }

/* Back link */
.login-back {
    font-size: .82rem;
    position: relative;
    z-index: 2;
}
.login-back a {
    color: rgba(255,255,255,.4);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: var(--trans);
}
.login-back a:hover { color: var(--gold); }

/* Validation */
.login-card .alert-danger-band {
    background: rgba(220,38,38,.12);
    border: 1px solid rgba(220,38,38,.25);
    color: #fca5a5;
    border-radius: 8px;
    font-size: .85rem;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── 18. FORMS IN ADMIN CARDS ─────────────────────────────── */
.admin-card .row.g-3 {
    padding: 1.5rem;
}

/* ── 19. PAGINATION ───────────────────────────────────────── */
.pagination .page-link {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-color: var(--card-border);
    border-radius: 6px !important;
    margin: 0 2px;
    padding: .4rem .8rem;
    transition: var(--trans);
}
.pagination .page-link:hover { background: var(--page-bg); color: var(--navy); }
.pagination .page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ── 20. MISC UTILITIES ───────────────────────────────────── */
.text-gold  { color: var(--gold) !important; }
.text-navy  { color: var(--navy) !important; }

/* Empty state */
.admin-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}
.admin-empty i { font-size: 2.5rem; display: block; margin-bottom: 1rem; color: var(--text-light); }
.admin-empty p { margin: 0; font-size: .9rem; }

/* Divider */
.admin-card hr { border-color: var(--card-border); margin: 0; }

/* Stats row spacing */
.stats-row { margin-bottom: .5rem; }

/* ── Image upload widget ────────────────────────────────────── */
.image-upload-box {
    background: var(--surface-2, #f8f9fa);
    border: 2px dashed var(--card-border, #2e3a4e);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.image-upload-box .current-image img {
    max-height: 90px;
    object-fit: contain;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--card-border, #2e3a4e);
}

.image-upload-box input[type="file"] {
    background: var(--surface-1, #1a2740);
    color: var(--text-muted);
    border-color: var(--card-border, #2e3a4e);
}

/* ── 21. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0,0,0,.25);
    }
    .admin-main {
        margin-left: 0;
    }
    .btn-toggle-sidebar {
        display: flex;
    }
    .admin-content {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 575px) {
    .login-card { padding: 1.75rem 1.5rem; }
    .admin-topbar { padding: 0 1rem; }
    .page-toolbar h2 { font-size: 1.15rem; }
}
