.dashboard-layout { display: flex; min-height: 100vh; background: #0f1117; }
.sidebar { width: 260px; background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; padding: 24px 16px; position: fixed; top: 0; left: 0; bottom: 0; z-index: 10; }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 32px; flex-wrap: wrap; }
.sidebar-header .logo-icon { font-size: 28px; }
.sidebar-header h2 { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.role-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; color: #fff; }
.role-badge.student { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(79,172,254,0.15); color: #4facfe; }
.nav-icon { font-size: 18px; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }
.user-info { display: flex; align-items: center; gap: 12px; padding: 8px; margin-bottom: 12px; }
.user-avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #4facfe, #00f2fe); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.user-details { display: flex; flex-direction: column; }
.user-name { color: #fff; font-size: 13px; font-weight: 600; }
.user-email { color: rgba(255,255,255,0.4); font-size: 11px; }
.logout-btn { width: 100%; padding: 10px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; color: #f87171; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.logout-btn:hover { background: rgba(239,68,68,0.2); }

.main-content { flex: 1; margin-left: 260px; padding: 40px; }

.loading-state { display: flex; flex-direction: column; align-items: center; padding: 80px 0; gap: 16px; }
.loader { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #4facfe; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: rgba(255,255,255,0.5); }

.breadcrumb { margin-bottom: 24px; }
.breadcrumb a { color: #4facfe; text-decoration: none; font-size: 14px; font-weight: 500; }
.breadcrumb a:hover { color: #80c3ff; }

.result-header { margin-bottom: 36px; }
.result-header h1 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 20px; }

.score-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.score-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.main-score { padding: 32px; }
.main-score.good { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.06); }
.main-score.avg { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.main-score.poor { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); }
.big-score { font-size: 40px; font-weight: 800; }
.main-score.good .big-score { color: #4ade80; }
.main-score.avg .big-score { color: #fbbf24; }
.main-score.poor .big-score { color: #f87171; }
.score-sub { color: rgba(255,255,255,0.5); font-size: 14px; }
.score-label { color: rgba(255,255,255,0.4); font-size: 13px; margin-bottom: 4px; }
.score-val { color: #fff; font-size: 20px; font-weight: 700; }
.score-val.small { font-size: 14px; font-weight: 500; }

.section-title { color: #fff; font-size: 18px; font-weight: 600; margin: 0 0 20px; }

.questions-list { display: flex; flex-direction: column; gap: 20px; }
.question-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px;
}
.question-card.correct { border-left: 4px solid #4ade80; }
.question-card.wrong { border-left: 4px solid #f87171; }

.q-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.q-number { background: rgba(79,172,254,0.15); color: #4facfe; padding: 4px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.q-type-badge { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.q-status { margin-left: auto; font-weight: 600; font-size: 13px; color: #f87171; }
.q-status.is-correct { color: #4ade80; }

.q-text { color: #fff; font-size: 15px; line-height: 1.6; margin: 0 0 16px; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option {
  padding: 12px 16px; border-radius: 10px; font-size: 14px; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.option.correct-opt { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); color: #4ade80; }
.option.wrong-opt { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); color: #f87171; }
.option.student-opt:not(.wrong-opt) { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); color: #4ade80; }
.opt-marker { font-weight: 700; font-size: 16px; flex-shrink: 0; }
.opt-text { flex: 1; }
.opt-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.correct-badge { background: rgba(74,222,128,0.15); color: #4ade80; }
.wrong-badge { background: rgba(248,113,113,0.15); color: #f87171; }

@media (max-width: 768px) {
  .sidebar { width: 100%; position: relative; }
  .main-content { margin-left: 0; padding: 24px; }
  .dashboard-layout { flex-direction: column; }
  .options-grid { grid-template-columns: 1fr; }
  .score-summary { grid-template-columns: 1fr; }
}
