/* ── Evaluation Platform — Custom Styles ── */

:root {
  --primary: #3a5c48;
  --accent: #f0901e;
  --sidebar-width: 250px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--primary);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding-top: 1rem;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, .8);
  border-radius: .375rem;
  margin: .15rem .5rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

.sidebar .nav-link .bi {
  width: 1.25rem;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 1.5rem;
}

/* Timer */
#exam-timer {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

/* Question cards */
.question-card {
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}

.question-card.answered {
  border-left-color: #198754;
}

/* Result badges */
.grade-A { background: #198754; }
.grade-B { background: #20c997; }
.grade-C { background: #ffc107; color: #000; }
.grade-D { background: #fd7e14; }
.grade-F { background: #dc3545; }

/* Choice highlight */
.choice-correct { background: rgba(25, 135, 84, .1); border-color: #198754 !important; }
.choice-wrong   { background: rgba(220, 53, 69, .1);  border-color: #dc3545 !important; }

/* Dashboard cards */
.stat-card {
  border: none;
  border-radius: .75rem;
  transition: transform .2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1);
}

/* Autosave badge */
#autosave-status {
  font-size: .75rem;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { position: relative; width: 100%; min-height: auto; }
  .main-content { margin-left: 0; }
}
