:root {
  --accent-orange: #f97316;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --glass-border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; background: #0b1220; color: #fff; }
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 24px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); color: #fff; outline: none; }
.btn { border: none; border-radius: 14px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg,#f97316,#ef4444); color:#fff; }
.btn-secondary { background: rgba(255,255,255,0.08); color:#fff; }
.btn-danger { background: rgba(239,68,68,0.15); color:#ef4444; border:1px solid rgba(239,68,68,0.3); }
.card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; }
.sidebar { width: 260px; background: rgba(255,255,255,0.02); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; pointer-events: auto; z-index: 1000; }
.brand-header { padding: 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--glass-border); }
.brand-logo { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 900; letter-spacing: 0.04em; }
.brand-sub { font-size: 11px; color: var(--accent-orange); font-weight: 700; letter-spacing: 0.14em; }
.brand-version { font-size: 11px; color: var(--text-muted); }
.nav-item { padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 6px; color: #cbd5e1; }
.nav-item.active { background: rgba(249,115,22,0.12); color: #fff; }
.sidebar-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; margin-right: 12px; }
.sidebar-toggle svg { width: 24px; height: 24px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 900; pointer-events: none; }
.sidebar-overlay.active { display: block; pointer-events: auto; }
.main-content { margin-left: 260px; padding: 24px; position: relative; }
  @media (max-width: 768px) {
    .sidebar { width: 64px; }
    .sidebar .brand-text, .sidebar .nav-item span, .sidebar #user-info, .sidebar #logout-btn { display: none; }
    .sidebar .brand-header { justify-content: center; padding: 18px 8px; }
    .sidebar .nav-item { justify-content: center; padding: 12px 8px; }
    .sidebar .nav-item svg { margin: 0; }
    .sidebar .custom-scrollbar { padding: 12px 8px; }
    .sidebar footer, .sidebar > div:last-child { display: none; }
    #logout-btn-mini { display: flex; }
    .sidebar.open { width: 260px; transform: none; }
    .sidebar.open .brand-text, .sidebar.open .nav-item span, .sidebar.open #user-info, .sidebar.open #logout-btn { display: block; }
    .sidebar.open .brand-header { justify-content: flex-start; padding: 18px; }
    .sidebar.open .nav-item { justify-content: flex-start; padding: 12px 16px; }
    .sidebar.open .custom-scrollbar { padding: 16px; }
    .sidebar.open footer, .sidebar.open > div:last-child { display: block; }
    #logout-btn-mini { display: none; }
    .main-content { margin-left: 64px; padding: 24px; position: relative; }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.active { display: block; }
  .sidebar .nav-item { min-width: 44px; min-height: 44px; justify-content: center; }
  .sidebar .brand-header { min-height: 44px; justify-content: center; }
  .sidebar, .sidebar * { pointer-events: auto; }
}
.section { display: none; }
.section.active { display: block; }
.finance-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.finance-title { font-size: 22px; font-weight: 900; margin: 0; }
.chart-subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }
.spinner { width: 32px; height: 32px; border: 4px solid rgba(255,255,255,0.08); border-top-color: var(--accent-orange); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; right: 24px; background: rgba(15,23,42,0.9); border: 1px solid var(--glass-border); padding: 12px 16px; border-radius: 14px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  color: #e2e8f0;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table .col-total { text-align: right; width: 140px; }
.data-table td.col-total { text-align: right; font-weight: 700; color: #fff; }
.data-table th:nth-child(1) { width: 120px; }
.data-table th:nth-child(3) { width: 220px; }
.card--table { overflow-x: auto; }
#logout-btn-mini { display: none; width: 40px; height: 40px; padding: 0; border-radius: 10px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; cursor: pointer; margin: 8px auto; }
#logout-btn-mini svg { width: 18px; height: 18px; }

#maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-direction: column;
  text-align: center;
}

#maintenance-admin-section {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
}

#maintenance-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 8px;
}
