:root {
    --sidebar-bg: #1b2430;
    --sidebar-w: 250px;
    --primary: #2563eb;
    --success: #16a34a;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    margin: 0;
}

/* ---------- Login ---------- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
}
.login-wrap { width: 100%; max-width: 420px; padding: 1rem; }
.login-card { border-radius: 16px; }
.login-logo {
    width: 64px; height: 64px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; border-radius: 16px; font-size: 1.6rem;
}

/* ---------- Shell ---------- */
.admin-shell { min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: #cbd5e1;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
    z-index: 100;
}
.sidebar-brand {
    padding: 1.1rem 1.25rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); border-radius: 10px; font-size: 1.15rem;
}
.brand-sub { font-size: .7rem; color: #94a3b8; }
.sidebar-nav { flex: 1; padding: .75rem .75rem; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .68rem .9rem; margin-bottom: 3px;
    border-radius: 10px; color: #cbd5e1; text-decoration: none;
    font-size: .92rem;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.nav-item i { font-size: 1.05rem; }
.sidebar-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.08); }

.main-area { min-width: 0; }
.topbar {
    background: #fff;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 90;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.content { max-width: 1500px; }

/* ---------- Cards ---------- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 1.1rem 1.25rem;
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.stat-value { font-size: 1.45rem; font-weight: 700; }
.card { border: 1px solid #e2e8f0; border-radius: 14px; }
.card-header { background: #fff; border-bottom: 1px solid #e2e8f0; font-weight: 600; }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: #f8fafc; }
.table thead th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
    color: #64748b; font-weight: 600; white-space: nowrap;
}
.table td { vertical-align: middle; }

.badge-status { font-size: .72rem; padding: .35em .65em; border-radius: 30px; }
.badge { font-weight: 600; }

/* ---------- Misc ---------- */
.pagination { margin-bottom: 0; }
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.filter-bar { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: .85rem 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.empty-state i { font-size: 3rem; display: block; margin-bottom: .75rem; opacity: .4; }
.review-stars { color: #f59e0b; }

#sidebarToggle { display: none; }
@media (max-width: 991px) {
    .sidebar { margin-left: calc(-1 * var(--sidebar-w)); position: fixed; }
    .sidebar.show { margin-left: 0; box-shadow: 0 0 30px rgba(0,0,0,.3); }
    #sidebarToggle { display: inline-block; }
}
