/* ── Base ────────────────────────────────────────────────── */
html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #0b0d1a;
}

/* ── Sidebar / Drawer ───────────────────────────────────── */
.mud-drawer-content {
    background: linear-gradient(180deg, #0f1120 0%, #151832 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.06);
}

.mud-drawer-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

/* ── Nav links ──────────────────────────────────────────── */
.mud-nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    transition: all 0.2s ease !important;
}

.mud-nav-link:hover {
    color: #fff !important;
    background-color: rgba(99, 102, 241, 0.15) !important;
}

.mud-nav-link.active {
    color: #fff !important;
    background-color: rgba(99, 102, 241, 0.25) !important;
    font-weight: 500;
}

.mud-navgroup .mud-nav-link {
    padding-left: 2.5rem !important;
}

/* ── Nav section label ──────────────────────────────────── */
.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.5);
    padding: 1rem 1.5rem 0.4rem;
    text-transform: uppercase;
}

/* ── AppBar ─────────────────────────────────────────────── */
.mud-appbar {
    background: #0f1120 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* ── Cards & Paper ──────────────────────────────────────── */
.mud-paper {
    background-color: #151832 !important;
    border: 1px solid rgba(148, 163, 184, 0.06);
}

.mud-paper.mud-elevation-0 {
    border: none;
}

/* ── DataGrid ───────────────────────────────────────────── */
.mud-table {
    background-color: #151832 !important;
}

.mud-table .mud-table-head .mud-table-cell {
    background-color: rgba(15, 17, 32, 0.6) !important;
    color: rgba(148, 163, 184, 0.8) !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
}

.mud-table .mud-table-body .mud-table-row {
    transition: background-color 0.15s ease;
}

.mud-table .mud-table-body .mud-table-row:hover {
    background-color: rgba(99, 102, 241, 0.06) !important;
}

.mud-table .mud-table-cell {
    border-bottom: 1px solid rgba(148, 163, 184, 0.04) !important;
}

/* ── Page header ────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Stat cards ─────────────────────────────────────────── */
.stat-card {
    border-radius: 12px !important;
    padding: 1.25rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.success { background: rgba(34, 197, 94, 0.15); }
.stat-icon.error   { background: rgba(239, 68, 68, 0.15); }
.stat-icon.warning { background: rgba(234, 179, 8, 0.15); }
.stat-icon.info    { background: rgba(99, 102, 241, 0.15); }
.stat-icon.default { background: rgba(148, 163, 184, 0.15); }

/* ── Chips ──────────────────────────────────────────────── */
.mud-chip {
    font-weight: 500 !important;
}

/* ── Alert ──────────────────────────────────────────────── */
.mud-alert {
    border-radius: 10px !important;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

/* ── Low stock row ──────────────────────────────────────── */
.low-stock-row {
    background-color: rgba(239, 68, 68, 0.06);
}
