/* ============================================================
   HRMS — CV Jaya Wijaya Bersaudara
   Stylesheet utama
   ============================================================ */

/* ─── VARIABEL & RESET ─── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1b2e44;
  --navy-light: #243b55;
  --gold:       #c9a84c;
  --gold-light: #e8c878;
  --gold-pale:  #f5e6c0;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --text-primary:   #0d1b2a;
  --text-secondary: #4a6080;
  --text-muted:     #8fa3ba;
  --border:         #dde3eb;
  --success:    #16a34a;
  --success-bg: #dcfce7;
  --warning:    #d97706;
  --warning-bg: #fef3c7;
  --danger:     #dc2626;
  --danger-bg:  #fee2e2;
  --info:       #0891b2;
  --info-bg:    #cffafe;
  --sidebar-w:  265px;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(13,27,42,0.08);
  --shadow-md:  0 8px 32px rgba(13,27,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
#login-page {
  min-height: 100vh;
  display: flex;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.login-bg-art { position: absolute; inset: 0; pointer-events: none; }
.login-bg-art::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.login-bg-art::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  position: relative;
  z-index: 1;
}

.login-brand { margin-bottom: 60px; }
.login-brand .logo-mark {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
}
.login-brand h1 { font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }
.login-brand p  { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 3px; }

.login-headline { margin-bottom: 16px; }
.login-headline h2 {
  font-size: 40px; font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
}
.login-headline h2 span { color: var(--gold); }
.login-headline p { font-size: 15px; color: rgba(255,255,255,0.5); margin-top: 12px; line-height: 1.6; max-width: 380px; }

.login-features { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.login-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,0.6);
}
.login-feature i {
  width: 28px; height: 28px;
  background: rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 12px; flex-shrink: 0;
}

.login-right {
  width: 460px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  position: relative; z-index: 1;
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 38px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.login-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.login-card > p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 30px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: 0.3px; text-transform: uppercase;
}

.input-wrap { position: relative; }
.input-wrap i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: var(--text-muted);
  transition: color .2s;
}
.input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px; font-family: inherit;
  color: var(--text-primary);
  background: var(--off-white);
  transition: all .2s; outline: none;
}
.input-wrap input:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,27,42,0.06);
}
.input-wrap:focus-within i { color: var(--navy); }
.input-wrap .toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  left: auto; cursor: pointer; font-size: 13px;
}

.login-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.checkbox-label input { accent-color: var(--navy); }

.link-sm { font-size: 13px; color: var(--navy); text-decoration: none; font-weight: 600; }
.link-sm:hover { color: var(--gold); }

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,27,42,0.25); }
.btn-login:active { transform: translateY(0); }

.login-demo-box {
  margin-top: 22px;
  background: var(--off-white);
  border-radius: 10px; padding: 14px;
  border: 1px dashed var(--border);
}
.login-demo-box p { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.demo-accounts { display: flex; flex-direction: column; gap: 5px; }
.demo-account {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-secondary);
}
.demo-account .role-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.tag-admin    { background: #fde8e8; color: #c0392b; }
.tag-manager  { background: #e8f0fe; color: #1a56db; }
.tag-employee { background: var(--success-bg); color: var(--success); }

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
#app { display: none; min-height: 100vh; }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex; flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .logo-sq {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 17px;
  color: var(--navy); flex-shrink: 0;
}
.sidebar-brand .brand-text h4 { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.2; }
.sidebar-brand .brand-text p  { font-size: 10.5px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }

.nav-section-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0 10px; margin: 14px 0 6px;
}
.nav-section-title:first-child { margin-top: 0; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer; transition: all .2s;
  margin-bottom: 2px; text-decoration: none;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; }
.nav-item:hover  { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-item.active { background: rgba(201,168,76,0.15); color: var(--gold-light); font-weight: 600; }
.nav-item.active i { color: var(--gold); }

.sidebar-footer { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.user-card-sm {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px;
  cursor: pointer; transition: background .2s;
}
.user-card-sm:hover { background: rgba(255,255,255,0.06); }

.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.user-info-sm { flex: 1; min-width: 0; }
.user-info-sm strong { display: block; font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info-sm span   { font-size: 11px; color: rgba(255,255,255,0.4); }

.logout-btn { padding: 7px; border-radius: 8px; cursor: pointer; transition: background .2s; color: rgba(255,255,255,0.4); }
.logout-btn:hover { background: rgba(220,38,38,0.15); color: #f87171; }

/* ─── MAIN CONTENT ─── */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left h2 { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; }
.topbar-left p  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.topbar-right   { display: flex; align-items: center; gap: 12px; }
.topbar-date {
  font-size: 12.5px; color: var(--text-secondary);
  background: var(--off-white); padding: 6px 12px;
  border-radius: 7px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.topbar-date i { color: var(--gold); }

.content { padding: 26px 28px; flex: 1; }

/* ─── PANELS ─── */
.panel        { display: none; }
.panel.active { display: block; }

/* ============================================================
   KOMPONEN UI
   ============================================================ */

/* ─── STAT CARDS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.blue::before  { background: var(--info); }
.stat-card.green::before { background: var(--success); }
.stat-card.gold::before  { background: var(--gold); }
.stat-card.red::before   { background: var(--danger); }

.stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.stat-card.blue .stat-icon  { background: var(--info-bg);    color: var(--info); }
.stat-card.green .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.gold .stat-icon  { background: var(--gold-pale);  color: var(--gold); }
.stat-card.red .stat-icon   { background: var(--danger-bg);  color: var(--danger); }

.stat-badge { font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.badge-up   { background: var(--success-bg); color: var(--success); }
.badge-down { background: var(--danger-bg);  color: var(--danger); }

.stat-value { font-size: 28px; font-weight: 800; color: var(--navy); font-family: 'Space Grotesk', sans-serif; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }

/* ─── CARD ─── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.card-header p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 22px; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { background: var(--off-white); padding: 10px 14px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
tbody td  { padding: 12px 14px; border-bottom: 1px solid #f0f3f7; color: var(--text-primary); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfd; }

/* ─── BADGES ─── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-gray    { background: #f1f5f9;           color: #64748b; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-gold    { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { opacity: 0.9; }
.btn-danger  { background: var(--danger); color: var(--white); }
.btn-danger:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ─── FORM ELEMENTS ─── */
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13.5px; font-family: inherit;
  color: var(--text-primary); background: var(--white);
  outline: none; transition: all .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,27,42,0.06); }
.field textarea { resize: vertical; min-height: 90px; }

/* ─── ABSENSI ─── */
.absen-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius); padding: 28px;
  color: var(--white); margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.absen-hero::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.absen-hero h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; position: relative; }
.absen-hero p  { font-size: 13px; color: rgba(255,255,255,0.6); position: relative; }
.absen-time-display { font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700; color: var(--gold); letter-spacing: -1px; margin-top: 16px; position: relative; }
.absen-date-display { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; position: relative; }

.absen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.absen-btn {
  padding: 18px; border-radius: var(--radius);
  border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .25s;
}
.absen-btn i { font-size: 22px; }
.absen-btn.checkin  { background: var(--success); color: var(--white); }
.absen-btn.checkout { background: var(--navy);    color: var(--white); }
.absen-btn:hover    { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.absen-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ─── STATUS DOT ─── */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-green  { background: var(--success); }
.dot-red    { background: var(--danger); }
.dot-yellow { background: var(--warning); }
.dot-gray   { background: #cbd5e1; }

/* ─── GRID HELPERS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ─── EMPLOYEE PROFILE ─── */
.emp-profile-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.emp-profile-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 28px; display: flex; align-items: center; gap: 20px; }
.emp-avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--navy); border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.emp-profile-info h2 { font-size: 20px; font-weight: 700; color: var(--white); }
.emp-profile-info p  { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.emp-profile-info .emp-tags { display: flex; gap: 8px; margin-top: 10px; }
.emp-tag { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; background: rgba(201,168,76,0.2); color: var(--gold-light); }

.emp-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 22px; }
.emp-info-item { padding: 12px 16px; border-right: 1px solid var(--border); }
.emp-info-item:last-child,
.emp-info-item:nth-child(3n) { border-right: none; }
.emp-info-item label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.emp-info-item span  { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }

/* ─── ATTENDANCE ROW HIGHLIGHT ─── */
.att-row-present { border-left: 3px solid var(--success); }
.att-row-late    { border-left: 3px solid var(--warning); }
.att-row-absent  { border-left: 3px solid var(--danger); }

/* ─── SUMMARY BOXES ─── */
.summary-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.summary-box { background: var(--white); border-radius: 10px; padding: 16px; border: 1px solid var(--border); text-align: center; }
.summary-box .val { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); }
.summary-box .lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ─── NOTIFICATION LIST ─── */
.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notif-content .notif-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.notif-content .notif-time  { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--off-white); padding: 4px; border-radius: 10px; width: fit-content; }
.tab-btn { padding: 7px 18px; border-radius: 7px; border: none; background: transparent; font-size: 13.5px; font-weight: 600; font-family: inherit; color: var(--text-secondary); cursor: pointer; transition: all .2s; }
.tab-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ─── TOOLBAR ─── */
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.toolbar-left  { display: flex; align-items: center; gap: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

.search-bar { position: relative; flex: 1; max-width: 300px; }
.search-bar i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-muted); }
.search-bar input { width: 100%; padding: 8px 12px 8px 34px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13.5px; font-family: inherit; outline: none; transition: all .2s; }
.search-bar input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,27,42,0.06); }

.select-filter { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; outline: none; }

/* ─── MODAL ─── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(13,27,42,0.6); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; animation: modal-in .25s ease; }

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--off-white); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .2s; }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── TOAST ─── */
.toast-container { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--white); border-radius: 10px; padding: 13px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15); border-left: 4px solid;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; min-width: 280px;
  animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.error i { color: var(--danger); }
.toast.info { border-color: var(--info); }
.toast.info i { color: var(--info); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .grid-2      { grid-template-columns: 1fr; }
  .summary-boxes { grid-template-columns: repeat(2, 1fr); }
}