/* ============================================================
   CS Performance Dashboard - PT. Krasan Indonesia
   Professional Navy + Gold Theme
   ============================================================ */

:root {
  --navy-950:  #0a0f1e;
  --navy-900:  #0d1526;
  --navy-800:  #111d35;
  --navy-700:  #162444;
  --navy-600:  #1e3060;
  --navy-500:  #243a75;
  --navy-400:  #2d4a94;
  --navy-300:  #4a6bb5;
  --navy-200:  #7a97d0;
  --navy-100:  #c5d3ef;
  --navy-50:   #eef2fb;

  --gold-600:  #92610a;
  --gold-500:  #b37d14;
  --gold-400:  #d4962a;
  --gold-300:  #f0b429;
  --gold-200:  #f5c842;
  --gold-100:  #fde68a;
  --gold-50:   #fef9e7;

  --success:   #22c55e;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --info:      #3b82f6;

  --sidebar-w: 260px;
  --topbar-h:  64px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.08);
  --transition: all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f4f6fb;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.sidebar-brand .brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(240,180,41,.3);
}

.sidebar-brand .brand-name {
  font-size: 13px; font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.sidebar-brand .brand-sub {
  font-size: 10px; color: var(--navy-200);
  text-transform: uppercase; letter-spacing: .8px;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 2px; }

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy-300);
  padding: 16px 20px 6px;
  font-weight: 600;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--navy-100);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}

.nav-link:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(240,180,41,.15), transparent);
  color: var(--gold-200);
  border-left: 3px solid var(--gold-300);
  padding-left: 17px;
}

.nav-link .nav-icon {
  width: 18px; text-align: center;
  font-size: 15px; flex-shrink: 0;
  opacity: .85;
}

.nav-link.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--gold-300);
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}

.sidebar-user .user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--navy-400), var(--navy-600));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}

.sidebar-user .user-name {
  font-size: 13px; font-weight: 600; color: #fff;
}
.sidebar-user .user-role {
  font-size: 11px; color: var(--navy-200);
}

.btn-logout {
  width: 100%;
  padding: 8px 14px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-logout:hover {
  background: rgba(239,68,68,.2);
  color: #fca5a5;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  padding: 0 28px;
  z-index: 900;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 17px; font-weight: 700;
  color: var(--navy-800);
  flex: 1;
}

.topbar-subtitle {
  font-size: 12px; color: #64748b; font-weight: 400;
  margin-top: 1px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar-badge {
  background: var(--navy-50);
  color: var(--navy-600);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--navy-100);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.page-body {
  padding: 28px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e8edf5;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px; font-weight: 700;
  color: var(--navy-800);
  margin: 0;
}

.card-subtitle {
  font-size: 12px; color: #64748b;
  margin: 2px 0 0;
}

.card-body { padding: 24px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid #e8edf5;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card.navy::before  { background: linear-gradient(90deg, var(--navy-600), var(--navy-400)); }
.stat-card.gold::before  { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.stat-card.green::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.stat-card.red::before   { background: linear-gradient(90deg, #dc2626, #ef4444); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.navy  { background: var(--navy-50);  color: var(--navy-600); }
.stat-icon.gold  { background: var(--gold-50);  color: var(--gold-500); }
.stat-icon.green { background: #f0fdf4; color: #16a34a; }
.stat-icon.red   { background: #fef2f2; color: #dc2626; }

.stat-value {
  font-size: 28px; font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px; color: #64748b;
  font-weight: 500;
}

.stat-meta {
  font-size: 11px; color: #94a3b8;
  margin-top: 4px;
}

/* ============================================================
   RANKING TABLE
   ============================================================ */
.ranking-table-wrap { overflow-x: auto; }

.ranking-table {
  width: 100%; border-collapse: collapse;
}

.ranking-table th {
  background: var(--navy-900);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

.ranking-table th:first-child { border-radius: 0; padding-left: 20px; }
.ranking-table th:last-child  { border-radius: 0; }

.ranking-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
}

.ranking-table td:first-child { padding-left: 20px; }

.ranking-table tbody tr:hover td { background: #f8faff; }
.ranking-table tbody tr:last-child td { border-bottom: none; }

/* Top 3 highlight */
.ranking-table tbody tr.rank-1 td { background: linear-gradient(90deg, #fef9e7, #fff); }
.ranking-table tbody tr.rank-2 td { background: linear-gradient(90deg, #f8f9fa, #fff); }
.ranking-table tbody tr.rank-3 td { background: linear-gradient(90deg, #fdf2e9, #fff); }

.rank-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
}

.rank-gold   { background: linear-gradient(135deg, #fde68a, #f0b429); color: #78350f; box-shadow: 0 2px 8px rgba(240,180,41,.4); }
.rank-silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; box-shadow: 0 2px 8px rgba(148,163,184,.4); }
.rank-bronze { background: linear-gradient(135deg, #fed7aa, #f97316); color: #7c2d12; box-shadow: 0 2px 8px rgba(249,115,22,.4); }
.rank-default { background: #f1f5f9; color: #64748b; font-size: 12px; }

.cs-name-cell { display: flex; align-items: center; gap: 10px; }
.cs-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.score-bar-wrap { display: flex; align-items: center; gap: 10px; }
.score-bar-bg {
  flex: 1; height: 6px;
  background: #f1f5f9; border-radius: 3px; overflow: hidden;
  min-width: 80px;
}
.score-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--navy-400), var(--navy-600));
  transition: width .8s ease;
}
.score-value { font-size: 13px; font-weight: 700; color: var(--navy-700); white-space: nowrap; }

.rate-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.rate-good    { background: #f0fdf4; color: #16a34a; }
.rate-ok      { background: #fef9e7; color: #92610a; }
.rate-bad     { background: #fef2f2; color: #dc2626; }

/* ============================================================
   TOP 3 PODIUM CARDS
   ============================================================ */
.podium-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }

.podium-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.podium-card.p1 { border-color: var(--gold-300); order: 2; }
.podium-card.p2 { border-color: #94a3b8; order: 1; }
.podium-card.p3 { border-color: #f97316; order: 3; }

.podium-card.p1::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-200));
}

.podium-crown { font-size: 28px; margin-bottom: 8px; }
.podium-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  box-shadow: var(--shadow);
}

.podium-name { font-size: 16px; font-weight: 800; color: var(--navy-800); margin-bottom: 4px; }
.podium-score-big {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.podium-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.podium-stat { background: #f8faff; border-radius: 8px; padding: 8px; }
.podium-stat-val { font-size: 14px; font-weight: 700; color: var(--navy-700); }
.podium-stat-lbl { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  color: #fff;
  box-shadow: 0 2px 8px rgba(36,58,117,.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: #fff; box-shadow: 0 4px 12px rgba(36,58,117,.4); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(240,180,41,.3);
}
.btn-gold:hover { box-shadow: 0 4px 12px rgba(240,180,41,.4); color: var(--navy-900); }

.btn-outline {
  background: transparent;
  border: 1.5px solid #d1d9e6;
  color: #475569;
}
.btn-outline:hover { border-color: var(--navy-300); color: var(--navy-600); background: var(--navy-50); }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }

.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  font-size: 13.5px;
  color: #334155;
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(36,58,117,.08);
}

.form-control::placeholder { color: #94a3b8; }

.form-group { margin-bottom: 18px; }
.form-hint { font-size: 11.5px; color: #94a3b8; margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 5px; }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}

.badge-active   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-draft    { background: #fef9e7; color: #92610a; border: 1px solid #fde68a; }
.badge-closed   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-success  { background: #f0fdf4; color: #166534; }
.badge-danger   { background: #fef2f2; color: #991b1b; }
.badge-warning  { background: #fef9e7; color: #92610a; }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-wrap { background: #f1f5f9; border-radius: 8px; overflow: hidden; height: 8px; }
.progress-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--navy-500), var(--gold-300));
  transition: width .4s ease;
}

.upload-progress-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid #e8edf5;
  padding: 20px 24px;
  display: none;
}

.upload-status {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}

.upload-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--navy-100);
  border-top-color: var(--navy-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px;
  border-left: 4px solid transparent;
  margin-bottom: 16px;
}

.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.alert-warning { background: #fef9e7; border-color: #f59e0b; color: #92610a; }
.alert-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius); }

.data-table {
  width: 100%; border-collapse: collapse;
}

.data-table th {
  background: #f8faff;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 11px 14px;
  border-bottom: 2px solid #e8edf5;
  white-space: nowrap;
  text-align: left;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr:hover td { background: #f8faff; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   WIZARD
   ============================================================ */
.wizard-wrap {
  min-height: 100vh;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.wizard-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  overflow: hidden;
}

.wizard-header {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  padding: 28px 32px;
  color: #fff;
}

.wizard-header .logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}

.wizard-header .logo-box {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(240,180,41,.4);
}

.wizard-header .app-title { font-size: 20px; font-weight: 800; }
.wizard-header .app-sub   { font-size: 12px; color: var(--navy-200); }

.wizard-steps {
  display: flex; gap: 0;
}

.wizard-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}

.wizard-step::after {
  content: '';
  position: absolute;
  top: 14px; left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: rgba(255,255,255,.2);
}

.wizard-step:last-child::after { display: none; }
.wizard-step.done::after { background: var(--gold-300); }

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6);
  margin-bottom: 6px;
  transition: var(--transition);
}

.wizard-step.active .step-circle {
  background: var(--gold-300); border-color: var(--gold-300);
  color: var(--navy-900); box-shadow: 0 0 0 4px rgba(240,180,41,.2);
}

.wizard-step.done .step-circle {
  background: var(--gold-300); border-color: var(--gold-300); color: var(--navy-900);
}

.step-label { font-size: 9.5px; color: rgba(255,255,255,.5); text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.wizard-step.active .step-label { color: var(--gold-200); }
.wizard-step.done   .step-label { color: rgba(255,255,255,.7); }

.wizard-body { padding: 32px; }
.wizard-body h2 { font-size: 20px; font-weight: 800; color: var(--navy-800); margin: 0 0 6px; }
.wizard-body .step-desc { font-size: 13px; color: #64748b; margin-bottom: 24px; }

.wizard-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid #f1f5f9;
  background: #fafbff;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

.login-header {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  padding: 32px;
  text-align: center;
}

.login-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--navy-900);
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(240,180,41,.4);
}

.login-header h1 { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.login-header p  { font-size: 12px; color: var(--navy-200); margin: 0; }

.login-body { padding: 32px; }

/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.chart-container { position: relative; }

/* ============================================================
   PERIOD SELECTOR
   ============================================================ */
.period-selector {
  background: #fff;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px; color: #334155;
  cursor: pointer;
  transition: var(--transition);
}
.period-selector:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(36,58,117,.08); }

/* ============================================================
   FILE UPLOAD ZONE
   ============================================================ */
.upload-zone {
  border: 2px dashed #d1d9e6;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: #fafbff;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--navy-400);
  background: var(--navy-50);
}

.upload-zone .upload-icon { font-size: 42px; margin-bottom: 12px; color: var(--navy-300); }
.upload-zone h3 { font-size: 15px; font-weight: 700; color: var(--navy-700); margin: 0 0 6px; }
.upload-zone p  { font-size: 13px; color: #64748b; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .podium-row { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.text-muted { color: #64748b; }
.text-navy  { color: var(--navy-600); }
.text-gold  { color: var(--gold-400); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }

.divider { border: none; border-top: 1px solid #f1f5f9; margin: 20px 0; }

.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px; border: 1px solid #e8edf5;
  margin-bottom: 8px;
  font-size: 13px;
}
.check-item.pass { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.check-item.fail { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.check-item.warn { border-color: #fde68a; background: #fef9e7; color: #92610a; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: #475569; margin: 0 0 8px; }
.empty-state p  { font-size: 13px; margin: 0; }