@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #4d84d6;
  --blue-light: #e8f1fb;
  --blue-dark: #3a6bbf;
  --yellow: #f5c149;
  --yellow-light: #fef8e7;
  --coral: #f56b49;
  --coral-light: #fef0ec;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text: #1e2a3a;
  --text-muted: #6c757d;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── Navigation ────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-user {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

.navbar-role-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-role-badge.student { background: var(--yellow-light); color: #b8860b; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

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

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-yellow {
  background: var(--yellow);
  color: #1e2a3a;
}
.btn-yellow:hover { background: #e5b140; }

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: #e05535; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-logout {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  padding: 7px 16px;
  font-size: 0.85rem;
}
.btn-logout:hover { background: var(--coral-light); color: var(--coral); border-color: var(--coral); }

/* ─── Page Layout ───────────────────────────────────────────── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 24px;
}

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

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

/* ─── Stats Row ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

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

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  font-family: 'DM Serif Display', serif;
  line-height: 1;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4fd 0%, #fef8e7 100%);
  padding: 24px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-logo {
  height: 64px;
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
  color: var(--text);
}

.login-card .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.login-card .form-group {
  text-align: left;
  margin-bottom: 20px;
}

.login-card .btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 132, 214, 0.15);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

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

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--coral-light);
  color: #c0392b;
  border-color: #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-info {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-color: #bee5eb;
}

/* ─── Student Cards Grid ────────────────────────────────────── */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.student-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.student-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
  text-decoration: none;
  color: inherit;
}

.student-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.student-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.student-coach {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.service-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-tag.sat { background: var(--blue-light); color: var(--blue-dark); }
.service-tag.act { background: var(--coral-light); color: #c0392b; }
.service-tag.academic { background: #e8f5e9; color: #2e7d32; }
.service-tag.counseling { background: var(--yellow-light); color: #b8860b; }

/* ─── Progress Bar ──────────────────────────────────────────── */
.progress-wrap {
  margin-top: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.progress-bar-bg {
  background: var(--gray-200);
  border-radius: 20px;
  height: 7px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #6fa7e8 100%);
  border-radius: 20px;
  transition: width 0.5s ease;
}

.progress-bar-fill.yellow { background: linear-gradient(90deg, var(--yellow) 0%, #f5d478 100%); }
.progress-bar-fill.coral { background: linear-gradient(90deg, var(--coral) 0%, #f89b83 100%); }

/* ─── Session Roadmap ───────────────────────────────────────── */
.session-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.session-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.session-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-400);
  transition: all var(--transition);
}

.session-dot.completed {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.session-dot.current {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(245,193,73,0.25);
}

.session-dot.upcoming {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-500);
}

.session-dot-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 48px;
  word-break: break-word;
}

/* ─── Tables ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--gray-50);
}

th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* ─── Status Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-completed { background: #d4edda; color: #155724; }
.badge-scheduled { background: var(--blue-light); color: var(--blue-dark); }
.badge-cancelled { background: var(--gray-100); color: var(--gray-600); }
.badge-pending { background: var(--yellow-light); color: #856404; }

/* ─── Shared Notes ──────────────────────────────────────────── */
.notes-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
}

.note-item.by-student { border-left-color: var(--yellow); }

.note-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.note-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}

.note-content {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* ─── Homework ──────────────────────────────────────────────── */
.homework-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.homework-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
}

.homework-item.completed {
  opacity: 0.6;
}

.homework-item.completed .hw-desc {
  text-decoration: line-through;
  color: var(--gray-500);
}

.hw-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.hw-check.checked {
  background: var(--blue);
  border-color: var(--blue);
}

.hw-check.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.hw-desc {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.hw-due {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Self-Report Form ──────────────────────────────────────── */
.confidence-stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.confidence-stars input[type="radio"] { display: none; }

.confidence-stars label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
  font-weight: 700;
  color: var(--gray-400);
}

.confidence-stars input[type="radio"]:checked + label {
  border-color: var(--yellow);
  background: var(--yellow-light);
  color: #b8860b;
}

.confidence-stars label:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* ─── Resources ─────────────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.resource-category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-sat { background: var(--blue-light); color: var(--blue-dark); }
.cat-act { background: var(--coral-light); color: #c0392b; }
.cat-academic { background: #e8f5e9; color: #2e7d32; }
.cat-counseling { background: var(--yellow-light); color: #b8860b; }
.cat-general { background: var(--gray-100); color: var(--gray-700); }

.resource-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.resource-link {
  color: var(--blue);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Category Filter Tabs ──────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-tab {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ─── Charts ────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
}

/* ─── Welcome Banner ─────────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.welcome-text h1 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 4px;
}

.welcome-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.next-session-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 180px;
}

.next-session-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.next-session-date {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.next-session-countdown {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ─── Milestones ────────────────────────────────────────────── */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.milestone-item.done {
  opacity: 0.65;
}

.milestone-item.done .milestone-title {
  text-decoration: line-through;
  color: var(--gray-500);
}

.milestone-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.milestone-item.done .milestone-icon {
  background: var(--yellow);
  border-color: var(--yellow);
}

.milestone-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.milestone-due {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Detail Layout ─────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-grid.full { grid-template-columns: 1fr; }

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ─── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}
.modal-close:hover { background: var(--gray-200); }

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* ─── Settings ──────────────────────────────────────────────── */
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

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

.settings-nav-item {
  display: block;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.settings-nav-item:hover, .settings-nav-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  text-decoration: none;
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ─── Error Page ────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
}

.error-page h1 {
  font-size: 2.5rem;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-container { padding: 20px 16px; }
  .navbar { padding: 0 16px; }
  .navbar-title { display: none; }
  .login-card { padding: 36px 24px; }
  .welcome-banner { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .students-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
}

/* ─── Tooltip ───────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 999;
}

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 20px 0;
}

/* ─── Earnings / Payroll ────────────────────────────────────── */
tr.dispute-row td {
  background: var(--yellow-light);
}

.payout-banner {
  background: var(--coral-light);
  border: 1px solid var(--coral);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 600;
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
