/* ────────────────────────────────────────────────────────────
   TOKEN SİSTEMİ
   ──────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --a-bg:          #070b14;
    --a-sidebar:     #0d1117;
    --a-surface:     #111827;
    --a-surface-2:   #1a2233;
    --a-surface-hover: rgba(255,255,255,0.04);

    /* Borders */
    --a-border:      rgba(255,255,255,0.06);
    --a-border-md:   rgba(255,255,255,0.10);
    --a-border-hi:   rgba(255,255,255,0.18);

    /* Text */
    --a-text:        #e2e8f0;
    --a-text-2:      #94a3b8;
    --a-text-dim:    #475569;

    /* Accent */
    --a-accent:      #38bdf8;
    --a-accent-dim:  rgba(56,189,248,0.12);
    --a-accent-glow: rgba(56,189,248,0.25);

    /* Semantic */
    --a-green:       #10b981;
    --a-green-dim:   rgba(16,185,129,0.12);
    --a-yellow:      #f59e0b;
    --a-yellow-dim:  rgba(245,158,11,0.12);
    --a-red:         #ef4444;
    --a-red-dim:     rgba(239,68,68,0.12);
    --a-purple:      #8b5cf6;
    --a-purple-dim:  rgba(139,92,246,0.12);

    /* Layout */
    --sidebar-w:     260px;
    --navbar-h:      64px;
    --radius-a:      10px;
    --radius-a-lg:   14px;

    /* Transitions */
    --ease-a:        cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    /* Backgrounds */
    --a-bg:          #f1f5f9; /* Slate 100 */
    --a-sidebar:     #ffffff; /* Pure White */
    --a-surface:     #ffffff; /* Pure White */
    --a-surface-2:   #e2e8f0; /* Slate 200 */
    --a-surface-hover: rgba(0,0,0,0.03);

    /* Borders */
    --a-border:      rgba(0,0,0,0.08);
    --a-border-md:   rgba(0,0,0,0.12);
    --a-border-hi:   rgba(0,0,0,0.20);

    /* Text */
    --a-text:        #0f172a; /* Slate 900 */
    --a-text-2:      #475569; /* Slate 600 */
    --a-text-dim:    #94a3b8; /* Slate 400 */

    /* Accent */
    --a-accent:      #0284c7; /* Sky 600 */
    --a-accent-dim:  rgba(2,132,199,0.08);
    --a-accent-glow: rgba(2,132,199,0.15);

    /* Custom overrides for light theme dashboard */
    --a-navbar-bg:   rgba(241,245,249,0.8);
}

/* Theme Toggle Button Visibility */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

[data-theme="light"] .sidebar-brand-name {
    color: var(--a-text);
}

/* ────────────────────────────────────────────────────────────
   RESET & BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--a-bg);
    color: var(--a-text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s var(--ease-a), color 0.3s var(--ease-a), border-color 0.3s var(--ease-a);
}

a { color: var(--a-accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--a-sidebar);
    border-right: 1px solid var(--a-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 200;
    transition: transform 0.3s var(--ease-a);
    overflow: hidden;
}

/* Ambient top glow */
.admin-sidebar::before {
    content: '';
    position: absolute;
    top: -60px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 65%);
    pointer-events: none;
    border-radius: 50%;
}

/* ── Brand ── */
.sidebar-brand {
    padding: 0 20px;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--a-border);
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 34px; height: 34px;
    background: var(--a-accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.95rem;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--a-accent-glow);
}

.sidebar-brand-text {
    display: flex; flex-direction: column;
}

.sidebar-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
}

.sidebar-brand-sub {
    font-size: 0.68rem;
    color: var(--a-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* ── Menu ── */
.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--a-border) transparent;
}

.menu-header {
    padding: 16px 10px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--a-text-dim);
    user-select: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-a);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--a-text-2);
    transition: all 0.18s var(--ease-a);
    position: relative;
    min-height: 40px;
}

.menu-item a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.menu-item a:hover {
    background: var(--a-surface-hover);
    color: var(--a-text);
    opacity: 1;
}

.menu-item a:hover i { opacity: 1; }

.menu-item.active a {
    background: var(--a-accent-dim);
    color: var(--a-accent);
    font-weight: 600;
}

.menu-item.active a i {
    color: var(--a-accent);
    opacity: 1;
}

.menu-item.active a::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--a-accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--a-accent-glow);
}

.menu-item-logout a {
    color: var(--a-red) !important;
    margin-top: 8px;
}
.menu-item-logout a:hover {
    background: var(--a-red-dim) !important;
    color: var(--a-red) !important;
}
.menu-item-logout a i { color: var(--a-red) !important; opacity: 1 !important; }

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--a-border);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--a-border-md);
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--a-text);
    line-height: 1.2;
}
.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--a-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

/* ── Top Navbar ── */
.admin-navbar {
    height: var(--navbar-h);
    background: var(--a-navbar-bg, rgba(7,11,20,0.8));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--a-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left { display: flex; align-items: center; gap: 16px; }

.navbar-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--a-text-2);
}
.navbar-breadcrumb span { color: var(--a-text-dim); }
.navbar-breadcrumb strong { color: var(--a-text); font-weight: 600; }

.site-selector {
    appearance: none;
    padding: 7px 32px 7px 14px;
    border-radius: var(--radius-a);
    border: 1px solid var(--a-border-md);
    background: var(--a-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--a-text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: inherit;
}

.site-selector:focus {
    outline: none;
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px var(--a-accent-dim);
}

.navbar-right { display: flex; align-items: center; gap: 16px; }

.navbar-icon-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-a);
    border: 1px solid var(--a-border);
    background: var(--a-surface);
    color: var(--a-text-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s var(--ease-a);
    position: relative;
}
.navbar-icon-btn:hover {
    border-color: var(--a-border-md);
    color: var(--a-text);
    background: var(--a-surface-2);
}

.notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: var(--a-red);
    border-radius: 50%;
    border: 1.5px solid var(--a-bg);
}

.navbar-divider {
    width: 1px; height: 24px;
    background: var(--a-border);
}

.navbar-user {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.navbar-user img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--a-border-md);
}
.navbar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--a-text);
}
.navbar-user-role {
    font-size: 0.68rem;
    color: var(--a-text-dim);
}

/* ── Page Body ── */
.admin-page-body {
    padding: 28px;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--a-text);
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.page-desc {
    font-size: 0.85rem;
    color: var(--a-text-2);
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   STAT CARDS
   ════════════════════════════════════════════════════════════ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: var(--radius-a-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s var(--ease-a), transform 0.2s var(--ease-a);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--stat-color, var(--a-accent));
    opacity: 0.6;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--stat-color, var(--a-accent)) 0%, transparent 65%);
    opacity: 0.06;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--a-border-md);
    transform: translateY(-2px);
}

.stat-card:hover::after { opacity: 0.12; }

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--a-text-2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: var(--stat-dim, var(--a-accent-dim));
    color: var(--stat-color, var(--a-accent));
}

.stat-num {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--a-text);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--a-text-dim);
}
.stat-trend.up { color: var(--a-green); }
.stat-trend.alert { color: var(--a-red); }

/* Color variants */
.stat-card.blue   { --stat-color: #38bdf8; --stat-dim: rgba(56,189,248,0.1); }
.stat-card.green  { --stat-color: #10b981; --stat-dim: rgba(16,185,129,0.1); }
.stat-card.yellow { --stat-color: #f59e0b; --stat-dim: rgba(245,158,11,0.1); }
.stat-card.purple { --stat-color: #8b5cf6; --stat-dim: rgba(139,92,246,0.1); }
.stat-card.red    { --stat-color: #ef4444; --stat-dim: rgba(239,68,68,0.1); }

/* ════════════════════════════════════════════════════════════
   ADMIN CARD CONTAINER
   ════════════════════════════════════════════════════════════ */
.admin-card {
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: var(--radius-a-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--a-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--a-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--a-accent); font-size: 0.9rem; }

.card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--a-accent);
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--a-accent-dim);
    transition: background 0.2s;
}
.card-link:hover {
    background: rgba(56,189,248,0.2);
    opacity: 1;
}

.card-body { padding: 24px; }

/* ════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table thead tr {
    border-bottom: 1px solid var(--a-border);
}

.admin-table th {
    padding: 12px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--a-text-dim);
    background: transparent;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--a-text);
    border-bottom: 1px solid var(--a-border);
    vertical-align: middle;
}

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

.admin-table tbody tr {
    transition: background 0.15s;
}

.admin-table tbody tr:hover td {
    background: var(--a-surface-hover);
}

/* Cell: Person */
.cell-person { display: flex; align-items: center; gap: 10px; }

.cell-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--a-accent-dim);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    color: var(--a-accent);
    flex-shrink: 0;
}

.cell-name {
    font-weight: 600; color: var(--a-text); font-size: 0.875rem;
}
.cell-email {
    font-size: 0.75rem; color: var(--a-text-2);
}

/* ════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-success { background: var(--a-green-dim); color: var(--a-green); }
.badge-danger  { background: var(--a-red-dim);   color: var(--a-red);   }
.badge-warning { background: var(--a-yellow-dim); color: var(--a-yellow); }
.badge-info    { background: var(--a-accent-dim); color: var(--a-accent); }
.badge-purple  { background: var(--a-purple-dim); color: var(--a-purple); }

.badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* ════════════════════════════════════════════════════════════
   ACTION BUTTONS
   ════════════════════════════════════════════════════════════ */
.action-btn {
    min-width: 32px; min-height: 32px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s var(--ease-a);
    border: 1px solid var(--a-border);
    background: var(--a-surface-2);
    color: var(--a-text-2);
    cursor: pointer;
}

.action-btn:hover { border-color: var(--a-border-md); background: var(--a-surface); opacity: 1; }

.action-btn.edit:hover   { color: var(--a-accent); border-color: var(--a-accent); background: var(--a-accent-dim); }
.action-btn.delete:hover { color: var(--a-red);    border-color: var(--a-red);    background: var(--a-red-dim); }
.action-btn.view:hover   { color: var(--a-green);  border-color: var(--a-green);  background: var(--a-green-dim); }

.action-group { display: flex; gap: 6px; align-items: center; }

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    background: var(--a-surface-2);
    border: 1px solid var(--a-border-md);
    color: var(--a-text);
    border-radius: var(--radius-a);
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.admin-input::placeholder,
.admin-textarea::placeholder { color: var(--a-text-dim); }

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px var(--a-accent-dim);
}

.admin-textarea { resize: vertical; min-height: 120px; }

.admin-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--a-text-2);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-admin { margin-bottom: 20px; }

.form-hint {
    font-size: 0.75rem;
    color: var(--a-text-dim);
    margin-top: 5px;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-a);
    cursor: pointer;
    transition: all 0.18s var(--ease-a);
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.admin-btn-primary {
    background: var(--a-accent);
    color: #000;
    box-shadow: 0 0 14px rgba(56,189,248,0.2);
}
.admin-btn-primary:hover {
    background: #7dd3fc;
    box-shadow: 0 0 22px rgba(56,189,248,0.35);
    transform: translateY(-1px);
    color: #000;
    opacity: 1;
}

.admin-btn-secondary {
    background: var(--a-surface-2);
    color: var(--a-text);
    border-color: var(--a-border-md);
}
.admin-btn-secondary:hover {
    background: var(--a-surface);
    border-color: var(--a-border-hi);
    opacity: 1;
}

.admin-btn-danger {
    background: var(--a-red-dim);
    color: var(--a-red);
    border-color: rgba(239,68,68,0.25);
}
.admin-btn-danger:hover {
    background: var(--a-red);
    color: #fff;
    opacity: 1;
}

.admin-btn-success {
    background: var(--a-green-dim);
    color: var(--a-green);
    border-color: rgba(16,185,129,0.25);
}
.admin-btn-success:hover {
    background: var(--a-green);
    color: #fff;
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   ACTIVITY TIMELINE
   ════════════════════════════════════════════════════════════ */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--a-accent), transparent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}

.timeline-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--a-surface-2);
    border: 1px solid var(--a-border-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--a-accent);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-body { flex: 1; }

.timeline-action {
    font-weight: 600;
    color: var(--a-text);
    font-size: 0.875rem;
}

.timeline-detail {
    font-size: 0.78rem;
    color: var(--a-text-2);
    margin-top: 2px;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.timeline-user {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--a-text-dim);
}

.timeline-time {
    font-size: 0.72rem;
    color: var(--a-text-dim);
}

/* ════════════════════════════════════════════════════════════
   ALERT MESSAGES
   ════════════════════════════════════════════════════════════ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-a);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-success {
    background: var(--a-green-dim);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--a-green);
}

.alert-error {
    background: var(--a-red-dim);
    border: 1px solid rgba(239,68,68,0.25);
    color: var(--a-red);
}

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
    padding: 60px 30px;
    text-align: center;
    color: var(--a-text-2);
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--a-text-dim);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--a-text);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--a-text-2);
}

/* ════════════════════════════════════════════════════════════
   HAMBURGER (Mobile)
   ════════════════════════════════════════════════════════════ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--a-text-2);
    border-radius: 2px;
    transition: all 0.3s var(--ease-a);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.5);
    }
    .admin-content { margin-left: 0; }
    .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
    .admin-page-body { padding: 16px; }
    .admin-navbar { padding: 0 16px; }
    .navbar-breadcrumb { display: none; }
}

/* ════════════════════════════════════════════════════════════
   ADMIN PREMIUM ENHANCEMENTS — Ek premium stiller
   ════════════════════════════════════════════════════════════ */

/* ---- Sidebar Active Item Glow ---- */
.menu-item.active > a {
    position: relative;
}
.menu-item.active > a::before {
    content: '';
    position: absolute;
    left: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 70%;
    background: var(--a-accent);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px var(--a-accent-glow);
}

/* ---- Stat Card Animated Hover ---- */
.stat-card {
    position: relative;
    overflow: hidden;
    cursor: default;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.stat-card:hover::after { opacity: 1; }
.stat-card:hover { transform: translateY(-3px); }

/* ---- Table Premium Styles ---- */
.admin-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.875rem;
}

.admin-table thead tr {
    background: var(--a-surface-2);
}

.admin-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--a-text-2);
    border-bottom: 1px solid var(--a-border-md);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--a-border);
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--a-surface-hover);
}

.admin-table tbody td {
    padding: 16px 18px;
    color: var(--a-text);
    vertical-align: middle;
}

/* ---- Status Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-success {
    background: var(--a-green-dim);
    color: var(--a-green);
    border: 1px solid rgba(16,185,129,0.2);
}

.badge-danger {
    background: var(--a-red-dim);
    color: var(--a-red);
    border: 1px solid rgba(239,68,68,0.2);
}

.badge-warning {
    background: var(--a-yellow-dim);
    color: var(--a-yellow);
    border: 1px solid rgba(245,158,11,0.2);
}

.badge-info {
    background: var(--a-accent-dim);
    color: var(--a-accent);
    border: 1px solid rgba(56,189,248,0.2);
}

.badge-purple {
    background: var(--a-purple-dim);
    color: var(--a-purple);
    border: 1px solid rgba(139,92,246,0.2);
}

/* ---- Action Buttons (Table) ---- */
.action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--a-border-md);
    background: transparent;
    color: var(--a-text-2);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
}

.btn-icon:hover {
    color: var(--a-text);
    border-color: var(--a-border-hi);
    background: var(--a-surface-hover);
    transform: translateY(-1px);
}

.btn-icon.btn-icon-edit:hover { color: var(--a-accent); border-color: var(--a-accent-dim); }
.btn-icon.btn-icon-delete:hover { color: var(--a-red); border-color: var(--a-red-dim); }
.btn-icon.btn-icon-view:hover { color: var(--a-green); border-color: var(--a-green-dim); }
.btn-icon.btn-icon-toggle:hover { color: var(--a-yellow); border-color: var(--a-yellow-dim); }

/* ---- Search / Filter Bar (Table Top) ---- */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.table-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--a-surface);
    border: 1px solid var(--a-border-md);
    border-radius: 10px;
    color: var(--a-text);
    font-size: 0.88rem;
    transition: border-color 0.25s ease;
}

.table-search input:focus {
    outline: none;
    border-color: var(--a-accent);
    box-shadow: 0 0 0 3px var(--a-accent-dim);
}

.table-search::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--a-text-dim);
    font-size: 0.78rem;
    pointer-events: none;
}

.table-filter {
    padding: 10px 14px;
    background: var(--a-surface);
    border: 1px solid var(--a-border-md);
    border-radius: 10px;
    color: var(--a-text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.25s ease;
    min-height: 44px;
}

.table-filter:focus {
    outline: none;
    border-color: var(--a-accent);
}

/* ---- Admin Card Header ---- */
.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--a-border);
    gap: 12px;
    flex-wrap: wrap;
}

.admin-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--a-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-title i {
    color: var(--a-accent);
    font-size: 0.95rem;
}

/* ---- Settings Tabs ---- */
.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--a-surface-2);
    border-radius: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.settings-tab {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--a-text-2);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    text-align: center;
    white-space: nowrap;
}

.settings-tab.active {
    background: var(--a-surface);
    color: var(--a-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.settings-tab:hover:not(.active) {
    background: var(--a-surface-hover);
    color: var(--a-text);
}

.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* ---- Section Divider in Settings ---- */
.settings-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--a-text);
    margin-top: 32px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--a-border-md);
}

.settings-section-title i {
    color: var(--a-accent);
}

/* ---- Form Input Focus Enhancement ---- */
.admin-input, .form-control {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-input:focus, .form-control:focus {
    border-color: var(--a-accent) !important;
    box-shadow: 0 0 0 3px var(--a-accent-dim) !important;
    outline: none !important;
}

/* ---- Quick Actions Dashboard ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action-card {
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--a-text);
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: var(--a-accent);
    background: var(--a-accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56,189,248,0.1);
    color: var(--a-text);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--a-surface-2);
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    background: var(--a-accent);
    color: #000;
}

.quick-action-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---- Flash Alert Slide-In ---- */
@keyframes slideInAlert {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: slideInAlert 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

/* ---- Image Preview in Forms ---- */
.img-preview-box {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    border: 2px dashed var(--a-border-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    background: var(--a-surface);
    position: relative;
}

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-empty {
    color: var(--a-text-dim);
    font-size: 0.8rem;
    text-align: center;
    padding: 12px;
}

/* ---- Collapsible Sidebar ---- */
.admin-wrapper.sidebar-collapsed .admin-sidebar {
    width: 64px;
}

.admin-wrapper.sidebar-collapsed .sidebar-brand-text,
.admin-wrapper.sidebar-collapsed .menu-item a span,
.admin-wrapper.sidebar-collapsed .menu-header,
.admin-wrapper.sidebar-collapsed .sidebar-user-name,
.admin-wrapper.sidebar-collapsed .sidebar-user-role,
.admin-wrapper.sidebar-collapsed .sidebar-brand-sub {
    display: none;
}

.admin-wrapper.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px;
}

.admin-wrapper.sidebar-collapsed .admin-content {
    margin-left: 64px;
}

.admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-brand {
    justify-content: center;
    padding: 20px 12px;
}

.sidebar-collapse-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--a-border-md);
    background: var(--a-surface-2);
    color: var(--a-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.sidebar-collapse-btn:hover {
    background: var(--a-accent-dim);
    border-color: var(--a-accent);
    color: var(--a-accent);
}

/* ---- Empty State Component ---- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--a-text-2);
}

.empty-state-icon {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 16px;
    display: block;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--a-text);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* Transition for collapsible sidebar */
.admin-sidebar,
.admin-content {
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1), margin-left 0.3s cubic-bezier(0.16,1,0.3,1);
}

@media (max-width: 640px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .settings-tabs { flex-direction: column; }
    .settings-tab { flex: auto; }
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .table-search { min-width: 100%; }
}

/* Mobile responsive fixes for Admin Navbar and Header */
@media (max-width: 768px) {
    .admin-navbar {
        padding: 0 12px !important;
        gap: 8px;
    }
    .navbar-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    .navbar-right {
        gap: 6px;
    }
    .navbar-user div {
        display: none !important;
    }
    .navbar-divider {
        display: none !important;
    }
    .site-selector {
        padding: 6px 20px 6px 8px;
        font-size: 0.78rem;
        max-width: 130px;
    }
    .navbar-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}
