/* ============================================
   PHYSICUM CALL ANALYZER — STYLES
   ============================================ */

:root {
  /* Physicum huisstijl */
  --primary: #046bd2;
  --primary-dark: #045cb4;
  --primary-light: #e0effc;
  --accent: #ceaa58;
  --accent-light: #f5ecd5;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #ceaa58;
  --warning-light: #f5ecd5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --gray-50: #f7f7f7;
  --gray-100: #f0f0f0;
  --gray-200: #e9e9e9;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1a1a1a;
  --gray-900: #000000;
  --radius: 4px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Basier Square', Helvetica, Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ============================================
   LAYOUT
   ============================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar-nav {
  width: 260px;
  background: var(--gray-900);
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-nav .logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.sidebar-nav .logo-text {
  font-size: 16px;
  font-weight: 700;
}

.sidebar-nav .logo-sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
}

.nav-section {
  padding: 16px 12px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 8px;
  margin: 2px 8px;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--gray-800);
  color: white;
}

.nav-item.active {
  background: var(--accent);
  color: var(--gray-900);
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--gray-700);
  color: var(--gray-300);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-item.active .nav-badge {
  background: rgba(0,0,0,0.15);
  color: var(--gray-900);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  max-width: 1200px;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.page-header p {
  color: var(--gray-500);
  font-size: 15px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.card-body {
  padding: 24px;
}

/* ============================================
   STAT CARDS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-card .stat-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

.stat-card.highlight {
  background: var(--primary);
  border-color: var(--primary);
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-sub {
  color: white;
}

.stat-card.highlight .stat-label {
  opacity: 0.8;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-800);
  transition: border-color 0.15s;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  min-height: 200px;
  resize: vertical;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #15803d;
}

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ============================================
   SCORE BADGE
   ============================================ */

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.score-badge.score-high { background: var(--success); }
.score-badge.score-mid { background: var(--warning); }
.score-badge.score-low { background: var(--danger); }

.score-badge-sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.score-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.score-bar-fill.high { background: var(--success); }
.score-bar-fill.mid { background: var(--warning); }
.score-bar-fill.low { background: var(--danger); }

/* ============================================
   TABLE
   ============================================ */

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

tbody td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}

tbody tr:hover {
  background: var(--gray-50);
}

/* ============================================
   OUTCOME TAGS
   ============================================ */

.outcome-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.outcome-sale { background: var(--success-light); color: var(--success); }
.outcome-callback { background: var(--primary-light); color: var(--primary); }
.outcome-no_show { background: var(--warning-light); color: #b45309; }
.outcome-not_interested { background: var(--danger-light); color: var(--danger); }
.outcome-other { background: var(--gray-100); color: var(--gray-600); }

/* ============================================
   ANALYSIS REPORT
   ============================================ */

.report-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.report-score-big {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.report-meta h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.report-meta p {
  color: var(--gray-500);
  font-size: 14px;
}

.fase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.fase-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.fase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fase-card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.fase-card .fase-missing {
  color: var(--gray-400);
  font-style: italic;
  font-size: 13px;
}

.fase-card .citaat {
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--gray-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.fase-card .tip {
  display: flex;
  align-items: start;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
}

.fase-card .tip::before {
  content: '💡';
  flex-shrink: 0;
}

.strengths-improvements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.si-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.si-card.strengths {
  border: 1px solid #bbf7d0;
}

.si-card.improvements {
  border: 1px solid #fecaca;
}

.si-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.si-card li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 4px 0;
  list-style: none;
}

.si-card.strengths li::before {
  content: '✅ ';
}

.si-card.improvements li::before {
  content: '⚠️ ';
}

.action-items {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}

.action-items h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.action-items li {
  font-size: 14px;
  color: var(--gray-700);
  padding: 4px 0;
  list-style: none;
}

.action-items li::before {
  content: '🎯 ';
}

/* ============================================
   TALK RATIO BAR
   ============================================ */

.talk-ratio-bar {
  display: flex;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 8px 0;
}

.talk-ratio-agent {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: width 0.5s;
}

.talk-ratio-lead {
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  transition: width 0.5s;
}

/* ============================================
   TRAINING LABELS
   ============================================ */

.label-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: white;
  transition: all 0.15s;
}

.label-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.label-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.label-star {
  background: var(--accent-light);
  border-color: var(--accent);
  color: #6b5520;
}

.label-star.active {
  background: var(--warning);
  color: white;
}

.training-progress {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.progress-bar-container {
  height: 24px;
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 12px;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
}

.milestone-markers {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ============================================
   LOADING / ANALYZING STATES
   ============================================ */

.analyzing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.analyzing-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.analyzing-card .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.analyzing-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.analyzing-card p {
  color: var(--gray-500);
  font-size: 14px;
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* ============================================
   DRAG & DROP ZONE
   ============================================ */

.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  background: var(--gray-50);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.drop-zone .drop-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.drop-zone .drop-text {
  font-size: 14px;
  color: var(--gray-500);
}

.drop-zone .drop-text strong {
  color: var(--primary);
}

.drop-zone.has-file {
  border-color: var(--success);
  background: var(--success-light);
}

.drop-zone.has-file .drop-icon::after {
  content: ' ✓';
  color: var(--success);
}

/* ============================================
   COMPARE VIEW
   ============================================ */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.compare-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.compare-card.best {
  border: 2px solid var(--success);
}

.compare-card.worst {
  border: 2px solid var(--danger);
}

.compare-card .compare-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.compare-card.best .compare-label {
  background: var(--success-light);
  color: var(--success);
}

.compare-card.worst .compare-label {
  background: var(--danger-light);
  color: var(--danger);
}

/* ============================================
   COACHING TIPS
   ============================================ */

.coaching-tip {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  border-left: 4px solid;
}

.coaching-tip.critical {
  background: var(--danger-light);
  border-left-color: var(--danger);
}

.coaching-tip.improvement {
  background: var(--warning-light);
  border-left-color: var(--accent);
}

.coaching-tip .tip-fase {
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.coaching-tip .tip-score {
  font-size: 11px;
  opacity: 0.7;
}

/* ============================================
   WEEKLY SUMMARY CARD
   ============================================ */

.weekly-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.weekly-card h3 {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.weekly-card .weekly-score {
  font-size: 48px;
  font-weight: 800;
}

.weekly-card .weekly-diff {
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.weekly-card .weekly-diff.up { color: #86efac; }
.weekly-card .weekly-diff.down { color: #fca5a5; }
.weekly-card .weekly-diff.stable { color: rgba(255,255,255,0.6); }

/* ============================================
   TARGET PROGRESS
   ============================================ */

.target-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.target-bar {
  height: 12px;
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0;
  position: relative;
}

.target-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s;
}

.target-bar-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 20px;
  background: var(--gray-900);
}

/* ============================================
   HAMBURGER MENU (mobile)
   ============================================ */

.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--gray-900);
  color: white;
  border: none;
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-nav.mobile-open {
  display: block !important;
  z-index: 150;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
}

.mobile-overlay.active {
  display: block;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */

.dark-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 13px;
  margin: 8px;
  border-radius: 8px;
  transition: all 0.15s;
}

.dark-mode-toggle:hover {
  background: var(--gray-800);
  color: white;
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--gray-700);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch.on {
  background: var(--accent);
}

.toggle-switch.on::after {
  transform: translateX(16px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar-nav {
    display: none;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 16px;
    padding-top: 72px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strengths-improvements,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .fase-grid {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
    text-align: center;
  }

  .report-header > div:last-child {
    margin-left: 0;
  }

  .page-header h1 {
    font-size: 22px;
  }

  table {
    font-size: 12px;
  }

  thead th, tbody td {
    padding: 8px 10px;
  }

  .weekly-card .weekly-score {
    font-size: 36px;
  }
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ============================================
   TRANSCRIPT DISPLAY
   ============================================ */

.transcript-display {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.transcript-line-agent {
  color: var(--primary);
}

.transcript-line-lead {
  color: var(--success);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
  --gray-50: #0f0f0f;
  --gray-100: #1a1a1a;
  --gray-200: #2a2a2a;
  --gray-300: #3a3a3a;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #d1d5db;
  --gray-700: #e5e7eb;
  --gray-800: #f3f4f6;
  --gray-900: #ffffff;
  --primary-light: #0c2d52;
  --success-light: #052e16;
  --warning-light: #3d2f0e;
  --danger-light: #450a0a;
  --accent-light: #3d2f0e;
  background: #0f0f0f;
  color: #f3f4f6;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .fase-card,
body.dark-mode .si-card,
body.dark-mode .training-progress,
body.dark-mode .compare-card,
body.dark-mode .target-card,
body.dark-mode .modal {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .card-header {
  border-bottom-color: #2a2a2a;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="date"],
body.dark-mode input[type="number"],
body.dark-mode input[type="password"],
body.dark-mode select,
body.dark-mode textarea {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #f3f4f6;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

body.dark-mode .transcript-display {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .drop-zone {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

body.dark-mode .drop-zone:hover,
body.dark-mode .drop-zone.drag-over {
  background: var(--primary-light);
  border-color: var(--primary);
}

body.dark-mode thead th {
  background: #1a1a1a;
  border-bottom-color: #2a2a2a;
}

body.dark-mode tbody tr:hover {
  background: #222;
}

body.dark-mode tbody td {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .analyzing-card {
  background: #1a1a1a;
}

body.dark-mode .analyzing-card .spinner {
  border-color: #3a3a3a;
  border-top-color: var(--primary);
}

body.dark-mode .score-bar {
  background: #2a2a2a;
}

body.dark-mode .citaat {
  background: #222;
}

body.dark-mode .btn-outline {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: #d1d5db;
}

body.dark-mode .btn-outline:hover {
  background: #2a2a2a;
}
