/* ==========================================================================
   MUKTI MART - modern.css
   Lapisan tampilan (override). Dimuat SETELAH CSS bawaan tiap halaman,
   jadi hanya mengubah penampilan - tidak menyentuh logika PHP maupun data.
   Untuk kembali ke tampilan lama: hapus baris <link ... modern.css> di halaman.
   Hanya dipakai di layar (media="screen") supaya cetak nota/laporan tetap sama.
   ========================================================================== */

:root {
    --ink: #151a33;
    --ink-soft: #1d2342;
    --brand: #5b44d8;
    --brand-dark: #4a35c0;
    --brand-tint: #efecff;
    --canvas: #f4f5fa;
    --surface: #ffffff;
    --line: #e4e6f0;
    --text: #181b30;
    --muted: #667085;
    --good: #12915f;
    --good-dark: #0e7a50;
    --good-tint: #e8f7f0;
    --bad: #dc3f45;
    --bad-dark: #c2323a;
    --bad-tint: #fdeced;
    --warn: #b7791f;
    --warn-tint: #fff6e0;
    --info: #0b8fd1;
    --info-tint: #e6f5fc;
    --radius: 12px;
    --radius-sm: 10px;
    --sidebar-w: 256px;
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* Menyelaraskan variabel lama yang dipakai di tiap halaman */
    --primary: var(--brand);
    --secondary: var(--brand-dark);
    --light-bg: var(--canvas);
    --card-bg: var(--surface);
    --border: var(--line);
    --success: var(--good);
    --danger: var(--bad);
    --discount: var(--info);
    --text-light: var(--muted);
}

*, *::before, *::after { font-family: var(--font); }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--canvas);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* Angka rata sejajar (harga, omset, stok) */
table, .stat-card .value, .summary-item .value, .total-row, .poin-box, .keuntungan {
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 3px solid rgba(91, 68, 216, 0.35);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sidebar (Kepala Toko & Kasir)
   -------------------------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-w);
    background: var(--ink);
    padding: 20px 14px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    padding: 4px 10px 22px;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sidebar-header svg {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
}

.sidebar a {
    color: #b8bedc;
    padding: 11px 14px;
    margin: 2px 0;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar a.active {
    background: var(--brand);
    color: #fff;
}

.main {
    min-width: 0;
    margin-left: var(--sidebar-w);
    padding: 28px 32px 40px;
}

/* --------------------------------------------------------------------------
   Judul halaman & info pengguna
   -------------------------------------------------------------------------- */
.header {
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.user-info {
    color: var(--muted);
    font-size: 0.9rem;
}

.user-info a {
    display: inline-block;
    margin-left: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-info a:hover {
    background: var(--brand);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Permukaan: kartu, bagian, form, tabel, filter
   -------------------------------------------------------------------------- */
.card,
.section,
.form-container,
.table-container,
.search-box,
.filter-box,
.stat-card,
.summary-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(21, 26, 51, 0.04);
}

.card:hover { transform: none; box-shadow: 0 1px 2px rgba(21, 26, 51, 0.04); }

.card h2,
.section h2,
.form-title {
    font-weight: 700;
    letter-spacing: -0.005em;
}

.card h2::after { display: none; }
.card h2 { padding-bottom: 0; }

.card h3 { font-weight: 700; }

.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   Kartu statistik
   -------------------------------------------------------------------------- */
.stats-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 18px 20px 18px 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    top: 0;
    bottom: 0;
    right: auto;
    left: 0;
    width: 4px;
    height: auto;
    background: var(--brand);
}

.stat-card.discount-card::before { background: var(--info); }

.stat-card .label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.stat-card .value {
    margin: 6px 0 2px;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.stat-card.discount-card .value { color: var(--info); }

/* --------------------------------------------------------------------------
   Tabel
   -------------------------------------------------------------------------- */
table {
    border-radius: 0;
    box-shadow: none;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

th {
    background: #f6f7fb;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

tbody tr:hover { background: #fafbfe; }
tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Tombol
   -------------------------------------------------------------------------- */
button,
.btn,
.btn-scan,
.btn-eceran,
.btn-checkout,
.btn-back,
.btn-print,
.btn-hapus,
.aksi a {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

button,
.btn,
.btn-scan,
.btn-eceran,
.btn-checkout {
    min-height: 42px;
}

button,
.btn-primary,
.btn-scan {
    background: var(--brand);
    color: #fff;
}

button:hover,
.btn-primary:hover,
.btn-scan:hover {
    background: var(--brand-dark);
}

.btn {
    background: var(--brand);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.btn:hover { background: var(--brand-dark); box-shadow: none; transform: none; }

.btn-green,
.btn-success,
.btn-checkout {
    background: var(--good);
    color: #fff;
}

.btn-green:hover,
.btn-success:hover,
.btn-checkout:hover { background: var(--good-dark); box-shadow: none; }

.btn-eceran { background: #0f8b80; color: #fff; }
.btn-eceran:hover { background: #0b7168; }

.btn-danger,
.btn-hapus { background: var(--bad); color: #fff; }
.btn-danger:hover,
.btn-hapus:hover { background: var(--bad-dark); box-shadow: none; }

.btn-warning { background: #e59a12; color: #fff; }
.btn-warning:hover { background: #c98309; }

.btn-hapus { min-height: 0; }

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aksi a { font-weight: 600; }
.aksi .edit { background: var(--brand-tint); color: var(--brand); }
.aksi .edit:hover { background: var(--brand); color: #fff; }
.aksi .hapus { background: var(--bad-tint); color: var(--bad); }
.aksi .hapus:hover { background: var(--bad); color: #fff; }

/* --------------------------------------------------------------------------
   Input
   -------------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    border: 1px solid #d3d7e6;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 16px; /* mencegah zoom otomatis di iPhone */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(91, 68, 216, 0.18);
}

.form-group label,
label {
    color: #3a3f58;
    font-weight: 600;
}

::placeholder { color: #9aa0b8; }

/* --------------------------------------------------------------------------
   Notifikasi
   -------------------------------------------------------------------------- */
.alert,
.error {
    border-radius: var(--radius);
    border: 1px solid transparent;
    border-left-width: 4px;
}

.alert-success,
.alert {
    background: var(--good-tint);
    color: #0b5f42;
    border-color: #bfe6d3;
    border-left-color: var(--good);
}

.alert-error,
.alert-danger,
.error {
    background: var(--bad-tint);
    color: #a3262c;
    border-color: #f4c7c9;
    border-left-color: var(--bad);
}

.alert-warning {
    background: var(--warn-tint);
    color: #8a5a0b;
    border-color: #f2dba4;
    border-left-color: #e59a12;
}

/* --------------------------------------------------------------------------
   Lencana status & peran
   -------------------------------------------------------------------------- */
.discount-badge,
.status-aktif,
.status-nonaktif,
.role-kasir,
.role-member {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.discount-badge { background: var(--info-tint); color: #0a6fa3; }

/* --------------------------------------------------------------------------
   Pencarian, filter, ringkasan, pagination
   -------------------------------------------------------------------------- */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 0;
    background: transparent;
}

.summary-item .value { font-weight: 700; letter-spacing: -0.01em; }

.search-box button {
    width: auto;
    flex: 0 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.pagination { flex-wrap: wrap; }

.pagination a,
.pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.pagination a { border: 1px solid var(--line); color: var(--brand); background: #fff; }
.pagination a:hover { background: var(--brand-tint); }
.pagination a.active,
.pagination .active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Transaksi (kasir): autocomplete & checkout
   -------------------------------------------------------------------------- */
.autocomplete-items {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(21, 26, 51, 0.14);
    overflow-x: hidden;
}

.autocomplete-items:empty { display: none; }

.autocomplete-items div:hover,
.autocomplete-items div.highlight { background: var(--brand-tint); }

.checkout-box {
    background: var(--good-tint);
    border: 1px solid #bfe6d3;
    border-radius: var(--radius);
}

.total-row strong { font-size: 1.15rem; }

.kembalian-box { border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Navbar atas (Member)
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ink);
    color: #fff;
    padding: 14px 24px;
    font-weight: 600;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 8px 16px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
}

.navbar a:hover { background: rgba(255, 255, 255, 0.22); }

.container { max-width: 1100px; margin-left: auto; margin-right: auto; }

.poin-box {
    background: var(--brand-tint);
    border: 2px dashed var(--brand);
    border-radius: var(--radius);
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   Halaman Login
   -------------------------------------------------------------------------- */
.login-box {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(21, 26, 51, 0.12);
    text-align: left;
}

.login-box h2 {
    font-size: 1.7rem;
    letter-spacing: -0.01em;
}

.login-box .btn {
    min-height: 48px;
    font-size: 16px;
    background: var(--brand);
    box-shadow: none;
}

.login-box .btn:hover { background: var(--brand-dark); box-shadow: none; transform: none; }

.login-box small { line-height: 1.6; }

/* ==========================================================================
   RESPONSIF
   ========================================================================== */

/* Tablet & HP: sidebar berubah jadi bilah atas yang bisa digeser */
@media (max-width: 900px) {
    /* kolom, bukan block: halaman login tetap berada di tengah layar */
    body { flex-direction: column; }

    .sidebar {
        flex: 0 0 auto;
        position: sticky;
        top: 0;
        z-index: 60;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: auto;
        height: auto;
        padding: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    }

    .sidebar::-webkit-scrollbar { display: none; }

    .sidebar-header {
        flex: 0 0 auto;
        padding: 0 10px 0 2px;
        white-space: nowrap;
        font-size: 1rem;
    }

    .sidebar a {
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 14px;
        border-radius: 999px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .main {
        margin-left: 0;
        padding: 20px 16px 32px;
    }

    .header h1 { font-size: 1.4rem; }
}

/* HP */
@media (max-width: 720px) {
    .container { padding-left: 14px; padding-right: 14px; }

    .card,
    .form-container,
    .table-container,
    .search-box,
    .filter-box,
    .section { padding: 18px 16px; }

    .navbar { padding: 12px 16px; }

    .stats-grid,
    .dashboard-grid,
    .summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

    .stat-card .value { font-size: 1.3rem; }

    /* Tabel lebar bisa digeser ke samping, bukan membuat halaman meluber */
    .main table,
    .container table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td { padding: 10px 12px; white-space: nowrap; }

    .form-container { max-width: none; }

    .scan-form,
    .eceran-form,
    .filter-row { flex-direction: column; align-items: stretch; }

    .scan-form input,
    .eceran-form input { min-width: 0; width: 100%; }

    .search-box input { min-width: 0; }

    .diskon-select label { display: block; margin-bottom: 6px; }

    .diskon-select select { display: block; width: 100%; margin-left: 0; }

    .diskon-select button { margin-left: 0 !important; margin-top: 10px; width: 100%; }

    .filter-group { width: 100%; }

    .login-box { padding: 28px 22px; }
}

/* Layar sangat sempit */
@media (max-width: 380px) {
    .main { padding: 16px 12px 28px; }
    .header h1 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   VERSI 2 - desain ulang yang lebih berani (hijau segar, ikon menu, header bar)
   ========================================================================== */
:root {
    --ink: #0d2a24;
    --brand: #0f9d6a;
    --brand-dark: #0b7f55;
    --brand-tint: #e3f6ee;
    --canvas: #eef3f1;
    --line: #dde7e3;
    --text: #12231f;
    --muted: #5f7771;
    --amber: #f5a524;
    --amber-tint: #fff4dc;
    --primary: var(--brand);
    --secondary: var(--brand-dark);
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar-w: 268px;
}

body { background: var(--canvas); }

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #0d2a24 0%, #0a1f1b 100%);
    padding: 22px 16px;
}
.sidebar-header {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    font-size: 1.05rem;
}
.sidebar-header svg { background: linear-gradient(135deg, #17c58a, #0f9d6a); border-radius: 12px; }
.sidebar a { display: flex; align-items: center; gap: 12px; color: #a9c4bc; padding: 12px 14px; margin: 3px 0; border-radius: 14px; }
.sidebar a::before { content: "▫️"; font-size: 1.05rem; width: 22px; text-align: center; flex: 0 0 auto; }
.sidebar a[href*="dashboard"]::before { content: "🏠"; }
.sidebar a[href*="transaksi"]::before { content: "🧾"; }
.sidebar a[href*="tambah_barang"]::before, .sidebar a[href*="barang"]::before { content: "📦"; }
.sidebar a[href*="diskon"]::before { content: "🏷️"; }
.sidebar a[href*="hadiah"]::before { content: "🎁"; }
.sidebar a[href*="member"]::before { content: "👥"; }
.sidebar a[href*="akun"]::before { content: "🔐"; }
.sidebar a[href*="riwayat"]::before { content: "🕘"; }
.sidebar a[href*="laporan"]::before { content: "📊"; }
.sidebar a:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar a.active { background: linear-gradient(135deg, #17c58a, #0f9d6a); color: #fff; box-shadow: 0 8px 18px rgba(15,157,106,.35); }

/* Header jadi bar putih */
.main { padding: 24px 32px 44px; }
.header {
    background: var(--surface);
    border-radius: 20px;
    padding: 16px 22px;
    box-shadow: 0 6px 24px rgba(13,42,36,.07);
    margin-bottom: 26px;
}
.header h1 { font-size: 1.5rem; }
.user-info a { background: var(--brand-tint); color: var(--brand-dark); }
.user-info a:hover { background: var(--brand); color: #fff; }

/* Kartu: tanpa garis, bayangan lembut */
.card, .section, .form-container, .table-container, .search-box, .filter-box {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(13,42,36,.07);
}
.card:hover { box-shadow: 0 6px 24px rgba(13,42,36,.07); }

/* Kartu statistik berwarna */
.stat-card {
    border: 0;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 6px 24px rgba(13,42,36,.07);
    background: linear-gradient(145deg, #ffffff, var(--brand-tint));
}
.stat-card::before { display: none; }
.stat-card::after {
    content: "💰"; position: absolute; right: 16px; top: 14px; font-size: 1.5rem; opacity: .9;
}
.stat-card.discount-card { background: linear-gradient(145deg, #fff, var(--info-tint)); }
.stat-card.discount-card::after { content: "🏷️"; }
.stats-grid .stat-card:nth-child(3n+2)::after { content: "📈"; }
.stats-grid + .stats-grid .stat-card::after { content: "📦"; }
.stats-grid + .stats-grid .stat-card:nth-child(2)::after { content: "👥"; }
.stats-grid + .stats-grid .stat-card:nth-child(3)::after { content: "🎁"; }
.stats-grid + .stats-grid .stat-card:nth-child(4)::after { content: "🔄"; }
.stat-card .label { font-weight: 600; padding-right: 36px; }
.stat-card .value { font-size: 1.9rem; color: var(--brand-dark); }
.stat-card.discount-card .value { color: #0a6fa3; }
.summary-item { border: 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(13,42,36,.07); background: linear-gradient(145deg,#fff,var(--brand-tint)); }

/* Tabel */
th { background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; }
th:first-child { border-radius: 12px 0 0 12px; }
th:last-child { border-radius: 0 12px 12px 0; }
tbody tr:hover { background: #f4faf7; }

/* Tombol */
button, .btn, .btn-scan { background: linear-gradient(135deg, #17c58a, #0f9d6a); color: #fff; box-shadow: 0 6px 14px rgba(15,157,106,.28); }
button:hover, .btn:hover, .btn-scan:hover { background: linear-gradient(135deg, #14b57e, #0b7f55); box-shadow: 0 8px 18px rgba(15,157,106,.35); }
.btn-green, .btn-success, .btn-checkout { background: linear-gradient(135deg, #17c58a, #0f9d6a); }
.btn-eceran { background: linear-gradient(135deg, #f7b73c, #f5a524); box-shadow: 0 6px 14px rgba(245,165,36,.3); color: #3a2600; }
.btn-eceran:hover { background: #e59a12; }
.btn-danger, .btn-hapus { background: var(--bad); box-shadow: none; }
.btn-warning { background: var(--amber); color: #3a2600; box-shadow: none; }
.aksi .edit { background: var(--brand-tint); color: var(--brand-dark); box-shadow: none; }
.aksi .edit:hover { background: var(--brand); color: #fff; }
.pagination a.active, .pagination .active { background: var(--brand); border-color: var(--brand); }
.pagination a { color: var(--brand-dark); }

/* Input */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea {
    background: #f6faf8; border: 1.5px solid #d6e3de; border-radius: 12px; padding-top: 11px; padding-bottom: 11px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):focus, select:focus, textarea:focus {
    background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,157,106,.16);
}
:focus-visible { outline-color: rgba(15,157,106,.4); }
.autocomplete-items div:hover, .autocomplete-items div.highlight { background: var(--brand-tint); }
.checkout-box { background: linear-gradient(145deg,#fff,var(--brand-tint)); border: 0; box-shadow: inset 0 0 0 1.5px #bfe6d3; }
.total-row:last-child strong { color: var(--brand-dark); font-size: 1.35rem; }

/* Navbar member */
.navbar { background: linear-gradient(135deg, #0d2a24, #134438); }
.poin-box { background: linear-gradient(135deg, #0f9d6a, #0b7f55); color: #fff; border: 0; box-shadow: 0 14px 30px rgba(15,157,106,.3); font-size: 1.6rem; }

/* Login */
body:has(.login-box) {
    background:
        radial-gradient(circle at 15% 20%, rgba(23,197,138,.35), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(245,165,36,.25), transparent 38%),
        linear-gradient(135deg, #0d2a24, #134438);
}
.login-box { border: 0; border-radius: 28px; padding: 44px 38px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.login-box h2 { font-size: 1.9rem; margin-bottom: 26px; color: var(--ink); }
.login-box .btn { background: linear-gradient(135deg, #17c58a, #0f9d6a); box-shadow: 0 10px 22px rgba(15,157,106,.35); }

@media (max-width: 900px) {
    .sidebar { background: #0d2a24; padding: 10px 12px; }
    .sidebar-header { margin: 0; padding: 4px 10px 4px 4px; background: none; }
    .sidebar a { padding: 8px 14px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.06); }
    .sidebar a::before { width: auto; }
    .main { padding: 16px 14px 32px; }
    .header { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; }
}
@media (max-width: 720px) {
    .stat-card .value { font-size: 1.45rem; }
    .stat-card::after { font-size: 1.2rem; right: 12px; top: 10px; }
    .login-box { padding: 32px 24px; }
}
