.page-container {
  padding: 32px 40px;
  max-width: 1400px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-link:hover { color: var(--accent-hover); }

.breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.breadcrumb-btn:hover { color: var(--accent-hover); }

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.section-icon {
  color: var(--accent-primary);
  font-size: 22px;
}

.section-label-sm {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

/* ========== INTERVIEW COUNT BADGE ========== */
.interview-count-badge {
  background: rgba(102,126,234,0.12);
  color: var(--accent-primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ========== TABLE: INTERVIEW-SPECIFIC ELEMENTS ========== */
.interview-row {
  cursor: pointer;
  transition: background 0.15s;
}

.interview-row:hover { background: var(--bg-hover); }

.interview-seq {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: 6px;
}

.interview-position {
  font-weight: 600;
  color: var(--text-primary);
}

.interviewer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.interviewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-count-badge {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== STATUS BADGE ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge-lg {
  font-size: 14px;
  padding: 8px 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.status-evaluation {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.status-done {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

/* ========== QUIZ ID CODE BADGE ========== */
.quiz-id-badge {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(102,126,234,0.1);
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ========== DIFFICULTY BADGE ========== */
.diff-badge {
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diff-easy { background: rgba(34,197,94,0.12); color: #16a34a; }
.diff-medium { background: rgba(245,158,11,0.12); color: #d97706; }
.diff-hard { background: rgba(239,68,68,0.12); color: #dc2626; }

/* ========== NOT TAKEN ========== */
.not-taken {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.date-cell { color: var(--text-secondary); font-size: 13px; }



.breadcrumb a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #8b9cf7;
}

.student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 28px;
}

.student-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.student-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.section-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-state p {
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 80px 0;
}

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

.empty-state h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.history-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

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

.history-table thead {
  background: var(--bg-hover);
}

.history-table th {
  padding: 14px 20px;
  text-align: left;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
}

.history-table tbody tr {
  transition: background 0.2s;
}

.history-table tbody tr:hover {
  background: var(--bg-hover);
}

.quiz-name {
  font-weight: 600;
}

.score-badge {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.percent-bar {
  width: 80px;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.percent-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.percent-fill.good {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.percent-fill.avg {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.percent-fill.poor {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.percent-text {
  color: var(--text-secondary);
  font-size: 13px;
}

.view-btn {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
}

.view-btn:hover {
  color: #8b9cf7;
}

.btn-eval-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-eval-download:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.btn-eval-download .material-symbols-rounded {
  font-size: 18px;
}

@media (max-width: 768px) {
  .page-container {
    padding: 24px 16px;
  }
}

.content-wrapper {
  max-width: 1100px;
  margin: 0; /* force left alignment */
}

.student-level-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.level-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.level-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.level-pill {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-pill:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

.level-pill.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.level-pill.active[data-level="beginner"] { color: #64748b; }
.level-pill.active[data-level="intermediate"] { color: #3b82f6; }
.level-pill.active[data-level="advanced"] { color: #a855f7; }
.level-pill.active[data-level="expert"] { color: #f59e0b; }

@media (max-width: 640px) {
  .student-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .student-level-control {
    align-items: flex-start;
    width: 100%;
  }
  .level-pills {
    width: 100%;
    overflow-x: auto;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  color: #fff;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast .material-symbols-rounded {
  font-size: 20px;
}

.evaluation-summary {
  margin-top: 20px;
}

.evaluation-summary button {
  background-color: #ef4444;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.evaluation-summary button:hover {
  background-color: #dc2626;
  color: white;
}

/* Additional Styles for Contact Info & Resume */
.student-contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.contact-item .material-symbols-rounded {
  font-size: 16px;
  color: var(--text-muted);
}
.student-resume-info {
  margin-top: 14px;
}
.resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.resume-badge:hover {
  background: #667eea;
  color: #fff;
}
.resume-badge .material-symbols-rounded {
  font-size: 18px;
}