.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); }

/* Profile Header */
.profile-header {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px; margin-bottom: 28px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 36px; flex-shrink: 0;
}
.profile-info h1 { color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.profile-email { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0 0 4px; }
.profile-joined { color: rgba(255,255,255,0.3); font-size: 12px; margin: 0; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.stat-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.stat-icon { font-size: 28px; }
.stat-value { color: #fff; font-size: 28px; font-weight: 700; }
.stat-label { color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 500; }

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

.empty-state { text-align: center; padding: 60px 0; }
.empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.empty-state h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.empty-state p { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0; }

/* Results List */
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; transition: all 0.2s;
}
.result-card:hover { border-color: rgba(255,255,255,0.15); }

.result-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(79,172,254,0.12); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.result-icon { font-size: 24px; }

.result-info { flex: 1; }
.result-info h4 { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.result-info p { color: rgba(255,255,255,0.4); font-size: 12px; margin: 0; }

.result-score { text-align: center; margin-right: 8px; }
.score-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 4px;
}
.score-circle.good { background: rgba(74,222,128,0.15); color: #4ade80; border: 2px solid rgba(74,222,128,0.3); }
.score-circle.avg { background: rgba(251,191,36,0.15); color: #fbbf24; border: 2px solid rgba(251,191,36,0.3); }
.score-circle.poor { background: rgba(248,113,113,0.15); color: #f87171; border: 2px solid rgba(248,113,113,0.3); }
.score-detail { color: rgba(255,255,255,0.4); font-size: 11px; }

.view-btn { color: #4facfe; text-decoration: none; font-weight: 600; font-size: 13px; flex-shrink: 0; transition: color 0.2s; }
.view-btn:hover { color: #80c3ff; }

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