:root {
    --admin-maroon: #7a1f2b;
    --admin-dark: #1f2430;
    --admin-sidebar: #232838;
    --admin-bg: #f4f5f9;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--admin-bg); margin: 0; }

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

.admin-sidebar {
    width: 250px;
    background: var(--admin-sidebar);
    color: #cfd3de;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex; align-items: center; gap: .6rem;
    padding: 1.1rem 1.2rem;
    font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-badge-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--admin-maroon); color: #f2e2b8; font-size: .8rem; font-weight: 700;
}
.sidebar-heading {
    padding: 1rem 1.2rem .3rem;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    color: #7d8296;
}
.sidebar-nav { display: flex; flex-direction: column; padding-bottom: 1rem; }
.sidebar-nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .65rem 1.2rem;
    color: #cfd3de; text-decoration: none; font-size: .92rem;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-nav a.active {
    background: rgba(122,31,43,.35);
    border-left-color: var(--admin-maroon);
    color: #fff; font-weight: 600;
}

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    display: flex; align-items: center;
    background: #fff; padding: .75rem 1.5rem;
    border-bottom: 1px solid #e6e7ee;
    position: sticky; top: 0; z-index: 10;
}
.admin-content { padding: 1.75rem; }

.stat-card {
    background: #fff; border-radius: 12px; padding: 1.4rem;
    box-shadow: 0 4px 16px rgba(20,20,40,.06);
    display: flex; align-items: center; gap: 1rem;
    animation: adminFadeUp .45s ease both;
    transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,20,40,.12); }
.stat-card:nth-child(1) { animation-delay: .02s; }
.stat-card:nth-child(2) { animation-delay: .07s; }
.stat-card:nth-child(3) { animation-delay: .12s; }
.stat-card:nth-child(4) { animation-delay: .17s; }
.stat-card:nth-child(5) { animation-delay: .22s; }
.stat-card:nth-child(6) { animation-delay: .27s; }
.stat-card:nth-child(7) { animation-delay: .32s; }

@keyframes adminFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-card .icon {
    width: 50px; height: 50px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(122,31,43,.1); color: var(--admin-maroon); font-size: 1.3rem;
}
.stat-card .num { font-size: 1.5rem; font-weight: 700; margin-bottom: 0; }
.stat-card .label { font-size: .8rem; color: #8a8fa3; }

.admin-card {
    background: #fff; border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(20,20,40,.06);
    animation: adminFadeUp .4s ease both;
}
.sidebar-nav a { transition: background .2s ease, border-color .2s ease, padding-left .2s ease; }
.sidebar-nav a:hover { padding-left: 1.4rem; }
.btn-maroon { transition: transform .2s ease, background .2s ease; }
.btn-maroon:hover { transform: translateY(-1px); }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #8a8fa3; border-bottom-width: 1px; }
.btn-maroon { background: var(--admin-maroon); border-color: var(--admin-maroon); color: #fff; }
.btn-maroon:hover { background: #5c1720; border-color: #5c1720; color: #fff; }
.thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }

.login-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--admin-maroon), var(--admin-dark));
    padding: 1rem;
}
.login-card {
    background: #fff; border-radius: 16px; padding: 2.5rem;
    width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

@media (max-width: 991.98px) {
    .admin-sidebar { position: fixed; left: -260px; top: 0; z-index: 1050; transition: left .25s ease; }
    .admin-wrapper.sidebar-open .admin-sidebar { left: 0; }
}
