:root {
    --sidebar-bg: #111827;
    --primary-accent: #2563eb;
    --panel-bg: #f4f7fb;
}
body {
    background: var(--panel-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    font-size: 22px;
}
.sidebar .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
}
.sidebar .nav-link i { margin-right: 10px; }
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: rgba(37,99,235,.18);
    color: #fff;
}
.main-content {
    flex: 1;
    padding: 28px;
}
.topbar {
    background: #fff;
    padding: 18px 22px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.metric-card,
.panel-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.metric-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(37,99,235,.08);
    color: var(--primary-accent);
}
.table thead th {
    background: #eef3ff;
    color: #334155;
    font-size: 14px;
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.stats-number {
    font-size: 1.65rem;
    font-weight: 700;
}
.badge-soft-danger {
    background: #fee2e2;
    color: #b91c1c;
}
.badge-soft-success {
    background: #dcfce7;
    color: #166534;
}
@media (max-width: 991px) {
    .sidebar { width: 90px; }
    .sidebar .nav-link { font-size: 0; }
    .sidebar .nav-link i { font-size: 18px; margin: 0; }
    .brand-wrap h5, .brand-wrap small { display: none; }
}
