/* ===== Auth Pages ===== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  background: var(--gray-50);
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ===== Google Button ===== */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.btn-google:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ===== Divider ===== */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  padding: 0 16px;
  font-size: 0.85rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(207, 91, 46, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-300);
}

/* ===== Path Selector ===== */
.path-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-option {
  cursor: pointer;
}

.path-option input[type="radio"] {
  display: none;
}

.path-option-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}

.path-option input:checked + .path-option-content {
  border-color: var(--accent);
  background: rgba(207, 91, 46, 0.04);
}

.path-option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.path-option-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.path-option-content span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.path-selector.compact .path-option-content {
  padding: 10px 14px;
}

/* ===== Buttons ===== */
.btn-full {
  width: 100%;
  margin-top: 8px;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: var(--transition);
}

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

/* ===== Error / Success Messages ===== */
.error-msg {
  background: rgba(220, 38, 38, 0.08);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.success-msg {
  background: rgba(45, 134, 89, 0.08);
  color: var(--green);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid rgba(45, 134, 89, 0.15);
}

/* ===== Auth Footer ===== */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.auth-forgot {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

.auth-forgot a {
  color: var(--gray-400);
  transition: var(--transition);
}

.auth-forgot a:hover {
  color: var(--accent);
}

/* ============================================
   DASHBOARD LAYOUT — Sidebar + Main
   ============================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  height: 32px;
  width: auto;
}

.sidebar-close {
  display: none; /* shown on mobile */
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.sidebar-close:hover {
  color: var(--white);
}

/* Sidebar Profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-path {
  color: var(--gray-400);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius);
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.sidebar-link.active {
  background: rgba(207, 91, 46, 0.15);
  color: #f0936a;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Mobile Top Bar ===== */
.mobile-topbar {
  display: none; /* shown on mobile */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow);
  z-index: 90;
}

.mobile-logo img {
  height: 28px;
  width: auto;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none; /* shown on mobile */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Main Content ===== */
.dashboard-main {
  padding: 40px 48px;
  background: var(--gray-50);
  min-height: 100vh;
}

/* ===== Views ===== */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ===== Dashboard Header ===== */
.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.dashboard-header h1 span {
  color: var(--accent);
}

.dashboard-sub {
  color: var(--gray-500);
  font-size: 1rem;
}

/* ===== Dashboard Cards ===== */
.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

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

.dash-card-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ===== Profile Card ===== */
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-weight: 500;
}

.profile-value {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* ===== Edit Form ===== */
.edit-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 24px;
}

.service-row:last-child {
  border-bottom: none;
}

.service-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.service-info p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 6px;
  line-height: 1.5;
}

.service-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.service-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== Status Badges ===== */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-unpaid {
  background: var(--gray-100);
  color: var(--gray-500);
}

.status-paid {
  background: rgba(45, 134, 89, 0.1);
  color: var(--green);
}

.status-pending {
  background: rgba(232, 164, 76, 0.1);
  color: var(--gold);
}

.status-active {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

/* ===== Loading Spinner ===== */
.dashboard-loading {
  text-align: center;
  padding: 120px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.dashboard-loading p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* ============================================
   QBANK PRICING CARDS — Dashboard View
   ============================================ */

.view-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  margin-top: 8px;
}

/* Upgrade prompt removed — QBank is fully free for all registered users */

.sidebar-link-inline {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-link-inline:hover {
  text-decoration: underline;
}

.qbank-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.qbank-plan-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.qbank-plan-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.qbank-plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(207, 91, 46, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.qbank-plan-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.plan-per {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.plan-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  position: relative;
  padding-left: 22px;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.qbank-plan-card .btn {
  width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .dashboard-main {
    padding: 32px 28px;
  }
}

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

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-overlay {
    display: block;
  }

  .mobile-topbar {
    display: flex;
  }

  .dashboard-main {
    padding: 80px 16px 40px;
  }

  .service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-status {
    width: 100%;
    justify-content: flex-start;
  }

  .qbank-pricing-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 80px 16px 40px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .dashboard-main {
    padding: 76px 12px 32px;
  }

  .dash-card {
    padding: 20px;
  }

  .dash-history-table th,
  .dash-history-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .dash-history-table th:nth-child(5),
  .dash-history-table td:nth-child(5) {
    display: none;
  }
}

/* ===== Dashboard Test History Table ===== */
.dash-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-history-table thead {
  background: var(--gray-50, #f8f9fa);
}

.dash-history-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--gray-500, #6b7280);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200, #e5e7eb);
}

.dash-history-table td {
  padding: 12px 14px;
  color: var(--gray-700, #374151);
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}

.dash-history-table tbody tr:hover {
  background: var(--gray-50, #f8f9fa);
}

.dash-hist-name {
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-hist-score {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
}

.dash-hist-score.score-good {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.dash-hist-score.score-mid {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.dash-hist-score.score-low {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.dash-mode-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-mode-test {
  background: rgba(207, 91, 46, 0.12);
  color: #CF5B2E;
}

.dash-mode-review {
  background: rgba(45, 134, 89, 0.12);
  color: #2D8659;
}

.dash-hist-subjects {
  color: var(--gray-500, #6b7280);
  font-size: 0.82rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-hist-date {
  color: var(--gray-400, #9ca3af);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ===== Dashboard Test History Actions ===== */
.dash-hist-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
}

.dash-action-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.dash-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(207, 91, 46, 0.04);
}

.dash-review-btn {
  background: rgba(207, 91, 46, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}

.dash-review-btn:hover {
  background: var(--accent);
  color: white;
}

/* Inline rename input */
.dash-inline-rename {
  width: 100%;
  padding: 4px 8px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(207, 91, 46, 0.15);
  transition: border-color 0.2s;
}

.dash-inline-rename:focus {
  border-color: var(--accent);
}

/* In-Progress Test Row */
.dash-ip-row {
  background: linear-gradient(135deg, rgba(207,91,46,0.07), rgba(207,91,46,0.02));
}

.dash-ip-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-resume-btn {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  text-decoration: none;
  white-space: nowrap;
}

.dash-resume-btn:hover {
  background: #b84f28 !important;
  border-color: #b84f28 !important;
}

/* ============================================
   FREE RESOURCES TAB STYLES
   ============================================ */

/* Resource Navigation Tabs */
.resource-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.resource-tab {
  padding: 10px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.resource-tab:hover {
  border-color: var(--gray-300);
  color: var(--navy);
}

.resource-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Resource Panels */
.resource-panel {
  display: none;
}

.resource-panel.active {
  display: block;
}

/* Faculty Cards */
.resource-faculty-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.resource-faculty-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.resource-faculty-card.featured-faculty {
  border-color: var(--accent);
  border-width: 2px;
  background: rgba(207, 91, 46, 0.02);
}

.faculty-header {
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.featured-faculty .faculty-header {
  background: rgba(207, 91, 46, 0.06);
}

.faculty-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.faculty-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faculty-details {
  padding: 16px 20px;
}

.faculty-detail-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}

.faculty-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  flex-shrink: 0;
  width: 140px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
}

.detail-value {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Resource Tables */
.resource-table-wrap {
  overflow-x: auto;
}

.resource-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

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

.resource-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.resource-table td {
  padding: 12px 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.resource-table .featured-row {
  background: rgba(207, 91, 46, 0.04);
}

.resource-table .featured-row td {
  color: var(--navy);
}

/* Resource Checklist */
.resource-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-checklist li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.resource-checklist li:last-child {
  border-bottom: none;
}

.resource-checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Timeline */
.timeline-visual {
  position: relative;
  padding-left: 32px;
}

.timeline-visual::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 3px solid var(--white);
}

.timeline-item.highlight .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 91, 46, 0.2);
}

.timeline-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* Cost Comparison Grid */
.cost-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cost-column {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.cost-header {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.cost-header.budget {
  background: rgba(45, 134, 89, 0.08);
  color: var(--green);
}

.cost-header.comfortable {
  background: rgba(26, 54, 93, 0.08);
  color: var(--navy);
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item.total {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--navy);
}

/* LF3 Spotlight */
.lf3-advantages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lf3-advantage-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.lf3-advantage-item:hover {
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.advantage-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.lf3-advantage-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.lf3-advantage-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* Hospital Grid */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hospital-card {
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.hospital-card:hover {
  border-color: var(--accent);
  background: rgba(207, 91, 46, 0.02);
}

.hospital-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.hospital-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 0;
}

/* Responsive for resource views */
@media (max-width: 768px) {
  .resource-tabs {
    gap: 6px;
  }

  .resource-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .faculty-detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-label {
    width: auto;
  }

  .cost-comparison-grid {
    grid-template-columns: 1fr;
  }

  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .lf3-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dash-hist-actions {
    flex-direction: column;
    gap: 4px;
  }

  /* Hide # and Subjects columns on tablets */
  .dash-history-table th:nth-child(1),
  .dash-history-table td:nth-child(1) {
    display: none;
  }
  .dash-history-table th:nth-child(6),
  .dash-history-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .dash-history-table th:nth-child(7),
  .dash-history-table td:nth-child(7) {
    display: none;
  }

  .lf3-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .overview-countdown {
    flex-direction: column !important;
    text-align: center;
  }

  .countdown-right {
    justify-content: center;
  }
}

/* ===== Overview Stats ===== */
.overview-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #141829, #1B2137);
  border: 1px solid rgba(207, 91, 46, 0.25);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.countdown-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.countdown-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.countdown-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-date-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.countdown-date-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
}

.countdown-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

.countdown-save-btn {
  background: #E8784A;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.countdown-save-btn:hover {
  opacity: 0.85;
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.overview-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.overview-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 6px;
}

.overview-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overview-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.overview-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.overview-empty-msg {
  color: #9ca3af;
  font-size: 0.9rem;
}

.overview-empty-msg a {
  color: #E8784A;
  font-weight: 600;
}

/* Subject bars */
.overview-subject-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.overview-subject-name {
  width: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}

.overview-bar-track {
  flex: 1;
  height: 10px;
  background: #f3f4f6;
  border-radius: 5px;
  overflow: hidden;
}

.overview-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.overview-subject-pct {
  width: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-align: right;
}

/* Recent activity */
.overview-recent-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}

.overview-recent-item:last-child {
  border-bottom: none;
}

.overview-recent-name {
  flex: 1;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.overview-recent-date {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* ===== Student Overview (Residency Path) ===== */
.student-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.student-overview-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.student-overview-card:hover {
  border-color: var(--accent, #2d9f8f);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.student-overview-card.student-overview-cta-card {
  background: linear-gradient(135deg, #1b2137, #2a3352);
  color: #fff;
  border-color: transparent;
}

.student-overview-card.student-overview-cta-card:hover {
  box-shadow: 0 4px 20px rgba(27, 33, 55, 0.3);
}

.student-overview-card.student-overview-cta-card p {
  color: rgba(255, 255, 255, 0.75);
}

.student-overview-card.student-overview-cta-card .student-overview-cta {
  color: #5eead4;
}

.student-overview-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.student-overview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: inherit;
}

.student-overview-card p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.5;
  flex: 1;
}

.student-overview-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #2d9f8f);
  margin-top: 16px;
}

/* Residency Checklist */
.student-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.student-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: none;
}

.student-checklist-item:first-child {
  border-radius: 12px 12px 0 0;
}

.student-checklist-item:last-child {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
}

.checklist-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  color: #9ca3af;
}

.student-checklist-item strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.student-checklist-item p {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

/* ===== Match Countdown ===== */
.match-countdown {
  background: linear-gradient(135deg, #1b2137, #2a3352);
  color: #fff;
}

.match-countdown .countdown-number {
  color: #10b981;
}

.match-countdown .countdown-label {
  color: rgba(255, 255, 255, 0.7);
}

.match-countdown .countdown-date-label {
  color: rgba(255, 255, 255, 0.7);
}

.match-countdown .countdown-date-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.match-countdown .countdown-save-btn {
  background: #10b981;
}

/* ===== Residency Progress Tracker ===== */
.residency-progress {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  transition: background 0.15s;
}

.progress-item:first-child {
  border-radius: 12px 12px 0 0;
}

.progress-item:last-child {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
}

.progress-item:hover {
  background: #f9fafb;
}

.progress-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  padding: 0;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s;
}

/* Status: not_started */
.progress-status[data-status="not_started"] {
  border-color: #d1d5db;
}

/* Status: in_progress */
.progress-status[data-status="in_progress"] {
  border-color: #f59e0b;
  background: #fffbeb;
}

.progress-status[data-status="in_progress"] .progress-dot {
  background: #f59e0b;
}

/* Status: done */
.progress-status[data-status="done"] {
  border-color: #10b981;
  background: #10b981;
}

.progress-status[data-status="done"] .progress-dot {
  width: 12px;
  height: 12px;
  background: transparent;
  border: none;
  position: relative;
}

.progress-status[data-status="done"] .progress-dot::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.progress-info {
  flex: 1;
  min-width: 0;
}

.progress-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 1px;
}

.progress-info span {
  font-size: 0.8rem;
  color: #9ca3af;
}

.progress-status-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f3f4f6;
  color: #6b7280;
}

.progress-item:has(.progress-status[data-status="in_progress"]) .progress-status-label {
  background: #fef3c7;
  color: #92400e;
}

.progress-item:has(.progress-status[data-status="done"]) .progress-status-label {
  background: #d1fae5;
  color: #065f46;
}

@media (max-width: 768px) {
  .student-overview-grid {
    grid-template-columns: 1fr;
  }
  .progress-info span {
    display: none;
  }
  .progress-status-label {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}
