body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    position: sticky;
    top: 0;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    margin-bottom: 4px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #6366f1;
    color: #fff;
}

.content {
    min-height: 100vh;
}

/* ================= Mobile menu ================= */
.mobile-topbar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #fff;
}

.mobile-topbar .btn-menu-toggle {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
}

.mobile-topbar .btn-menu-toggle:hover,
.mobile-topbar .btn-menu-toggle:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease-in-out;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-backdrop.show {
        display: block;
    }
    .content {
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    .mobile-topbar {
        display: none !important;
    }
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card {
    border-radius: 12px;
    color: #fff;
    padding: 1.25rem;
}

.stat-card.blue   { background: linear-gradient(135deg, #6366f1, #4338ca); }
.stat-card.green  { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.table thead th {
    background-color: #eef1f6;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.badge-low-stock {
    background-color: #ef4444;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #4338ca);
}

.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
}

/* ---------------------------------
   Clickable expense category rows
   --------------------------------- */
.expense-total-toggle {
    cursor: pointer;
}
.expense-total-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}
.expense-total-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
.accordion-button:not(.collapsed) {
    background-color: #eef1f6;
    color: #111827;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
}

/* ---------------------------------
   Receipts / Payslips / Printable reports
   --------------------------------- */
.receipt-box {
    max-width: 480px;
}
.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #d1d5db;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.receipt-header .shop-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: #111827;
}
.receipt-footer {
    border-top: 2px dashed #d1d5db;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}
.report-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.report-header .shop-name {
    font-weight: 700;
    font-size: 1.4rem;
    color: #111827;
}

/* ---------------------------------
   Gift voucher
   --------------------------------- */
.gift-voucher {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    color: #fff;
    border-radius: 16px;
}
.gift-voucher .voucher-code {
    background: rgba(255,255,255,0.15);
    border: 1px dashed rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 12px;
}

/* ---------------------------------
   Print styles - used by payslips, receipts and reports
   --------------------------------- */
@media print {
    .sidebar, .no-print, .mobile-topbar, .sidebar-backdrop {
        display: none !important;
    }
    .content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    body {
        background: #fff !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
