:root {
    --admin-sidebar-bg: #1a1625;
    --admin-sidebar-hover: #281e35;
    --admin-accent: #E11D48;
    --admin-surface: #FFF7ED;
}

body.admin-body {
    background: var(--admin-surface);
    font-family: 'Outfit', system-ui, sans-serif;
}

/* Layout */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background: var(--admin-sidebar-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.admin-sidebar .brand {
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.admin-sidebar .brand span { color: var(--admin-accent); }
.admin-nav { padding: .75rem 0; flex: 1; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.5rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    transition: background .15s, color .15s;
}
.admin-nav a:hover, .admin-nav a.active {
    background: var(--admin-sidebar-hover);
    color: #fff;
}
.admin-nav a.active { border-left: 3px solid var(--admin-accent); }
.admin-nav .nav-section {
    padding: 1rem 1.5rem .25rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.3);
}
.admin-nav .badge-count {
    margin-left: auto;
    background: var(--admin-accent);
    color: #fff;
    border-radius: 20px;
    padding: 2px 7px;
    font-size: .7rem;
}

/* Main content */
.admin-main {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .875rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.admin-content { padding: 1.75rem; flex: 1; }

/* Stat cards */
.admin-stat {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat .icon-wrap {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.admin-stat .stat-num { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.admin-stat .stat-lbl { color: #6b7280; font-size: .8rem; margin-top: 2px; }

/* Tables */
.admin-table { background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); overflow: hidden; }
.admin-table table { margin: 0; }
.admin-table thead th { background: #f9fafb; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table td, .admin-table th { vertical-align: middle; }

/* Badges */
.badge-flagged { background: #fee2e2; color: #991b1b; border-radius: 4px; padding: 2px 8px; font-size: .75rem; }
.badge-ok      { background: #d1fae5; color: #065f46; border-radius: 4px; padding: 2px 8px; font-size: .75rem; }

@media (max-width: 768px) {
    .admin-sidebar { width: 100%; position: relative; height: auto; }
    .admin-main { margin-left: 0; }
    .admin-wrapper { flex-direction: column; }
}
