:root {
    --ink: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f7f8fb;
    --blue: #2357d8;
    --violet: #6d45d8;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Arial, "DejaVu Sans", sans-serif; }
a { text-decoration: none; }
.admin-shell { min-height: 100vh; display: flex; }
.sidebar { width: 260px; flex: 0 0 260px; min-height: 100vh; background: #111827; color: #fff; flex-direction: column; }
.main { min-width: 0; flex: 1; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); min-height: 64px; }
.content { padding: 28px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.brand-title { font-weight: 800; letter-spacing: .08em; }
.brand-subtitle { font-size: 12px; color: #aeb8c8; }
.menu { padding: 0 12px 20px; }
.menu a { display: flex; align-items: center; gap: 10px; color: #d8dee9; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-label { margin: 18px 12px 6px; color: #8793a6; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: 28px; font-weight: 800; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat, .panel, .empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.stat { padding: 18px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 10px; font-size: 24px; }
.panel { padding: 22px; }
.btn-primary-gradient { border: 0; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.btn-primary-gradient:hover { color: #fff; filter: brightness(.96); }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state i { color: var(--blue); font-size: 34px; }
.empty-state h2 { margin: 12px 0 8px; color: var(--ink); font-size: 20px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #f2f5fa; }
.login-panel { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: 0 20px 60px rgba(17, 24, 39, .08); }
.login-panel .brand-title { color: var(--ink); }
.login-panel .brand-subtitle { color: var(--muted); }
.logo-preview { min-height: 160px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 16px; color: var(--muted); background-color: #fff; background-image: linear-gradient(45deg, #eef0f4 25%, transparent 25%), linear-gradient(-45deg, #eef0f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef0f4 75%), linear-gradient(-45deg, transparent 75%, #eef0f4 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.logo-preview img { max-width: 100%; max-height: 150px; object-fit: contain; }
.table-responsive { overflow-x: auto; }
.amount { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 991.98px) {
    .content { padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offcanvas { max-width: 280px; background: #111827; color: #fff; }
}

@media (max-width: 575.98px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-heading h1 { font-size: 24px; }
    .panel { padding: 16px; }
}
