/* ── MARKEN BANK — Global CSS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --blue: #1a3a6b;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --text: #1e293b;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.15);
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--navy); color: #e2e8f0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--accent-light); border: 1.5px solid var(--accent-light); }
.btn-ghost:hover { background: rgba(37,99,235,0.1); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 7px; }
.btn-block { width: 100%; justify-content: center; padding: 13px; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #cbd5e1; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 9px; font-size: 0.9rem; color: #e2e8f0;
  background: rgba(255,255,255,0.04); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy-mid); color: #e2e8f0; }

/* ── CARDS ── */
.card { background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(10px); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-info    { background: rgba(37,99,235,0.15);  color: #60a5fa; }
.badge-gray    { background: rgba(255,255,255,0.08); color: #94a3b8; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 9px; font-size: 0.88rem; margin-bottom: 18px; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-info    { background: rgba(37,99,235,0.1);  border: 1px solid rgba(37,99,235,0.3);  color: #93c5fd; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: rgba(255,255,255,0.03); }
th { padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.5px; text-transform: uppercase; }
td { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.06); color: #e2e8f0; vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* ── DASHBOARD LAYOUT ── */
.dash-layout { display: flex; min-height: 100vh; background: var(--navy); }
.sidebar {
  width: 250px; background: #061020; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo .icon { width: 32px; height: 32px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.9rem; }
.sidebar-logo span { color: #fff; font-weight: 700; font-size: 1rem; }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section { margin-bottom: 8px; }
.nav-label { color: rgba(255,255,255,0.3); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 10px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-item .ni-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; }
.su-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.su-name { color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; }
.su-role { color: rgba(255,255,255,0.4); font-size: 0.72rem; }

.main-content { flex: 1; margin-left: 250px; min-height: 100vh; background: var(--navy); }
.topbar {
  background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notif-btn { position: relative; cursor: pointer; }
.notif-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.page-content { padding: 28px; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 24px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); }
.stat-card .sc-label { font-size: 0.78rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.stat-card .sc-value { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.stat-card .sc-sub { font-size: 0.78rem; color: #64748b; margin-top: 4px; }
.stat-card .sc-icon { float: right; font-size: 2rem; margin-top: -4px; opacity: 0.7; }

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  z-index: 100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s;
}
.hamburger:hover {
  background: #3b82f6;
}

/* ── SIDEBAR OVERLAY (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 49;
}
.sidebar-overlay.active { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
}