/* ============================================================
   FraudAlert System — Global Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand */
  --primary:        #1B3A6B;    /* deep navy */
  --primary-dark:   #0F2344;
  --primary-light:  #2A5299;
  --accent:         #E8B84B;    /* gold */
  --accent-dark:    #C99A2E;
  --danger:         #DC3545;
  --danger-soft:    #FDE8EA;
  --warning:        #F59E0B;
  --warning-soft:   #FEF3C7;
  --success:        #10B981;
  --success-soft:   #D1FAE5;
  --info:           #3B82F6;
  --info-soft:      #DBEAFE;

  /* Neutral */
  --bg:             #F0F2F7;
  --bg-card:        #FFFFFF;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Sidebar */
  --sidebar-w:      260px;
  --sidebar-bg:     #0F2344;
  --sidebar-text:   #CBD5E1;
  --sidebar-active: #1B3A6B;
  --sidebar-hover:  rgba(255,255,255,0.06);

  /* Misc */
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --shadow:         0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
  --font:           'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ============================================================
   LAYOUT — Sidebar + Main
   ============================================================ */
.app-wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand .brand-icon svg { color: #fff; }
.sidebar-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.sidebar-brand .brand-name span {
  color: var(--accent);
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 18px 20px 6px;
}

.sidebar nav { flex: 1; padding: 8px 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
  border-left-color: rgba(255,255,255,0.2);
}
.nav-link.active {
  background: var(--sidebar-active);
  color: #fff;
  border-left-color: var(--accent);
  font-weight: 500;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.nav-link.active svg, .nav-link:hover svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user .info { overflow: hidden; }
.sidebar-user .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .role-tag {
  font-size: 0.65rem;
  color: var(--sidebar-text);
  text-transform: capitalize;
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Top Bar ── */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.topbar .page-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* ── Page Body ── */
.page-body { padding: 28px; flex: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Stat Cards ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.primary::before  { background: var(--primary); }
.stat-card.danger::before   { background: var(--danger); }
.stat-card.warning::before  { background: var(--warning); }
.stat-card.success::before  { background: var(--success); }
.stat-card.info::before     { background: var(--info); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.primary-bg  { background: rgba(27,58,107,0.1); color: var(--primary); }
.stat-icon.danger-bg   { background: var(--danger-soft);  color: var(--danger); }
.stat-icon.warning-bg  { background: var(--warning-soft); color: var(--warning); }
.stat-icon.success-bg  { background: var(--success-soft); color: var(--success); }
.stat-icon.info-bg     { background: var(--info-soft);    color: var(--info); }

.stat-info { flex: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-top: 4px; }
.stat-delta { font-size: 0.75rem; margin-top: 4px; }
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.845rem;
}
.data-table thead tr {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: rgba(27,58,107,0.025); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .txn-ref {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
/* Severity */
.badge-low      { background: #E0F2F1; color: #00796B; }
.badge-medium   { background: var(--warning-soft); color: #92400E; }
.badge-high     { background: #FFE4E6; color: #B91C1C; }
.badge-critical { background: #F3E8FF; color: #7C3AED; animation: pulse-border 1.5s infinite; }
/* Alert status */
.badge-open      { background: var(--danger-soft); color: var(--danger); }
.badge-review    { background: var(--warning-soft); color: #B45309; }
.badge-resolved  { background: var(--success-soft); color: #065F46; }
.badge-fp        { background: #F3F4F6; color: #374151; }
.badge-escalated { background: #EDE9FE; color: #5B21B6; }
/* Transaction status */
.badge-pending   { background: #FFF7ED; color: #C2410C; }
.badge-completed { background: var(--success-soft); color: #065F46; }
.badge-flagged   { background: var(--danger-soft); color: var(--danger); }
.badge-blocked   { background: #1F2937; color: #F9FAFB; }

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.3); }
  50%       { box-shadow: 0 0 0 4px rgba(124,58,237,0); }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42,82,153,0.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; }
.form-control.is-invalid { border-color: var(--danger); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.845rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent  { background: var(--accent); color: #1B2A00; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #B91C1C; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost   { background: transparent; color: var(--text-muted); border-color: transparent; padding: 8px 10px; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm  { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg  { padding: 12px 24px; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }

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

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.845rem;
  margin-bottom: 16px;
}
.alert-msg.error   { background: var(--danger-soft);  color: #991B1B; border-left: 4px solid var(--danger); }
.alert-msg.success { background: var(--success-soft); color: #065F46; border-left: 4px solid var(--success); }
.alert-msg.warning { background: var(--warning-soft); color: #92400E; border-left: 4px solid var(--warning); }
.alert-msg.info    { background: var(--info-soft);    color: #1E40AF; border-left: 4px solid var(--info); }
.alert-msg svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   DROPDOWN MENUS
   ============================================================ */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 200;
  display: none;
  animation: fadeDown 0.12s ease;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.18s ease;
}
.modal-lg { max-width: 720px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 600; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body    { padding: 22px; }
.modal-footer  {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SEARCH + FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.search-input-wrap svg {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-wrap input {
  padding-left: 34px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 52px 24px;
}
.empty-state .empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.empty-state .empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.empty-state p  { font-size: 0.84rem; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.page-btn {
  min-width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--bg); color: var(--text); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

/* ============================================================
   TIMELINE (Alert Activity)
   ============================================================ */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-dot {
  position: absolute;
  left: -20px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--primary);
}
.timeline-dot.danger  { background: var(--danger); }
.timeline-dot.success { background: var(--success); }
.timeline-dot.warning { background: var(--warning); }
.timeline-time  { font-size: 0.72rem; color: var(--text-muted); }
.timeline-text  { font-size: 0.845rem; color: var(--text); margin-top: 2px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.login-left {
  flex: 1;
  background: var(--primary-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(232,184,75,0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(42,82,153,0.25) 0%, transparent 50%);
}
.login-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-left-content { position: relative; z-index: 1; }
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}
.login-brand-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.login-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.login-brand-name span { color: var(--accent); }
.login-headline {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.login-headline em { color: var(--accent); font-style: normal; }
.login-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 360px;
}
.login-features {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}
.login-feature-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.login-feature-icon svg { width: 16px; height: 16px; color: var(--accent); }

.login-right {
  width: 480px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 52px;
}
.login-form-wrap { width: 100%; max-width: 380px; }
.login-form-wrap h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.login-form-wrap .login-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Password toggle */
.pass-field { position: relative; }
.pass-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex; align-items: center;
}
.pass-toggle:hover { color: var(--text); }
.pass-toggle svg { width: 18px; height: 18px; }

.login-footer-text {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 24px;
}

/* ============================================================
   CHARTS
   ============================================================ */
.chart-wrap {
  position: relative;
  height: 260px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: slideInRight 0.2s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon svg { width: 18px; height: 18px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-body { flex: 1; }
.toast-title { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.toast-msg   { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-1   { margin-top: 6px; }
.mt-2   { margin-top: 12px; }
.mt-3   { margin-top: 18px; }
.mt-4   { margin-top: 24px; }
.mb-4   { margin-bottom: 24px; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .page-body { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
