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

/* ── Login page gradient ─────────────────────────── */
.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Sidebar ─────────────────────────────────────── */
.mud-nav-link {
    border-radius: 8px !important;
    margin: 2px 8px !important;
    transition: all 0.2s;
}

.mud-nav-link:hover {
    background: rgba(25, 118, 210, 0.08) !important;
}

.mud-nav-link.active {
    background: rgba(25, 118, 210, 0.15) !important;
    color: #1976D2 !important;
    font-weight: 600 !important;
}

/* ── Cards ───────────────────────────────────────── */
.stat-card {
    border-radius: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ── Tables ──────────────────────────────────────── */
.mud-table-head .mud-table-cell {
    background: #1976D2 !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
}

.mud-table-row:hover {
    background: rgba(25, 118, 210, 0.05) !important;
}

/* ── Buttons ─────────────────────────────────────── */
.mud-button-root {
    text-transform: none !important;
    letter-spacing: 0.3px;
}

/* ── Forms ───────────────────────────────────────── */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px !important;
}

/* ── OTP input ───────────────────────────────────── */
.otp-input input {
    letter-spacing: 16px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

/* ── Status badges ───────────────────────────────── */
.status-active { color: #388E3C; background: #E8F5E9; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending { color: #F57C00; background: #FFF3E0; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-overdue { color: #D32F2F; background: #FFEBEE; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-paid   { color: #388E3C; background: #E8F5E9; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ── Print styles ────────────────────────────────── */
@media print {
    .mud-appbar, .mud-drawer, .mud-button-root { display: none !important; }
    .print-area { display: block !important; }
    body { background: white; }
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #BDBDBD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9E9E9E; }

/* ── Animations ──────────────────────────────────── */
.mud-paper {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
