/* WEMBA 51 Pathway Planner - Styles */

/* CSS Variables - Penn/Wharton Ivy League Design System */
:root {
  /* Penn/Wharton Brand Colors */
  --penn-blue: #011F5B;
  --wharton-blue: #004785;
  --penn-red: #990000;

  /* Background Colors - Enhanced contrast for graph builder */
  --bg-dark: #0D1526;                 /* Deeper, more neutral dark */
  --bg-dark-surface: #151D2E;         /* Elevated dark surface */
  --bg-dark-elevated: #1E2A3F;        /* For cards/panels on dark bg */
  --bg-dark-hover: #263348;           /* Hover state on dark */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-muted: #EEF1F4;

  /* Text Colors - Enhanced for legibility */
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-tertiary: #718096;
  --text-muted: #A0AEC0;
  --text-light: #F8FAFC;              /* Slightly warmer white */
  --text-light-secondary: #94A3B8;    /* Better contrast on dark */
  --text-light-muted: #64748B;        /* Subtle text on dark */

  /* Accent Colors - Penn/Wharton themed */
  --accent-teal: #A31F34;             /* Penn Red as primary accent */
  --accent-teal-light: #C73E52;       /* Lighter Penn Red for highlights */
  --accent-blue: var(--wharton-blue);
  --accent-green: #10B981;            /* Emerald for success */
  --accent-purple: var(--wharton-blue); /* Wharton Blue for majors */
  --accent-orange: #F59E0B;           /* Amber for warnings */
  --accent-gold: #B89A4A;             /* Muted gold accents (Penn traditional) */

  /* Border Colors - Enhanced layering */
  --border-primary: #D1D5DB;
  --border-dark: #2D3B50;             /* More visible on dark */
  --border-dark-subtle: #1E293B;      /* Subtle dividers */
  --border-dark-hover: #3B4F6C;       /* Hover borders */

  /* Semantic Colors - Warnings & Alerts */
  --warning-bg: #FEF3E2;
  --warning-border: #E9A23B;
  --warning-text: #7C4A03;
  --danger-bg: #FEE2E2;
  --danger-border: var(--penn-red);
  --danger-text: #7F1D1D;
  --success-bg: #D1FAE5;
  --success-border: var(--accent-green);
  --success-text: #065F46;
  --info-bg: #E0F2FE;
  --info-border: var(--accent-teal);
  --info-text: #0C4A6E;

  /* Typography - Professional accessible fonts */
  --font-primary: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font sizing scale */
  --text-xs: 0.6875rem;   /* 11px */
  --text-sm: 0.75rem;     /* 12px */
  --text-base: 0.8125rem; /* 13px */
  --text-md: 0.875rem;    /* 14px */
  --text-lg: 1rem;        /* 16px */

  /* Legacy mappings for compatibility */
  --primary: var(--wharton-blue);
  --primary-dark: var(--penn-blue);
  --primary-light: var(--accent-teal-light);
  --accent: var(--penn-red);
  --secondary: var(--text-secondary);
  --success: var(--accent-green);
  --warning: #F59E0B;
  --danger: var(--penn-red);
  --background: var(--bg-primary);
  --surface: var(--bg-surface);
  --text: var(--text-primary);
  --border: var(--border-primary);

  /* Shadows - Enhanced for depth */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-dark-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-teal: 0 0 20px rgba(163, 31, 52, 0.25);

  /* Border Radius */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Sidebar */
  --sidebar-width: 280px;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display headings use serif font */
h1, h2, .display-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Screens */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Override for #main-app which has display: flex - ensure it's hidden when not active */
#main-app:not(.active) {
  display: none;
}

/* Screen Transitions */
#cohort-selection.transitioning {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#cohort-selection.sliding-up {
  transform: translateY(-100vh);
  opacity: 0;
  pointer-events: none;
}

/* Ensure cohort selection stays hidden after animation */
#cohort-selection.hidden {
  display: none !important;
}

#main-app.snap-in {
  animation: snapIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   LANDING PAGE
   ============================================ */

#cohort-selection {
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Landing Navigation */
.landing-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 80px;
  height: 80px;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-light);
}

.landing-logo .logo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 80px;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--border-dark);
  color: var(--text-light-secondary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-badge svg {
  color: var(--accent-teal-light);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light-secondary);
  margin: 0 0 40px 0;
  max-width: 600px;
  line-height: 1.6;
}

.hero-instruction {
  font-size: 1rem;
  color: var(--accent-teal-light);
  margin: 0 0 32px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: var(--bg-dark-surface);
  border-color: var(--text-light-secondary);
}

/* Cohort Cards - New Design */
.cohort-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.cohort-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 340px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.cohort-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cohort-card:active {
  transform: translateY(-2px);
}

.cohort-card.selected {
  border-color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.1);
}

.cohort-card:focus-visible {
  outline: 2px solid var(--accent-teal-light);
  outline-offset: 4px;
}

.cohort-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cohort-icon {
  background: var(--accent-teal);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cohort-icon-accent {
  background: var(--accent-orange);
}

.cohort-badge-label {
  font-size: 0.75rem;
  color: var(--text-light-secondary);
  font-weight: 500;
}

.cohort-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 8px 0;
}

.cohort-description {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.cohort-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 16px;
}

.cohort-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-teal-light);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-light-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cohort-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.select-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-teal-light);
}

.cohort-card-footer svg {
  color: var(--accent-teal-light);
  transition: transform 0.2s;
}

.cohort-card:hover .cohort-card-footer svg {
  transform: translateX(4px);
}

/* ============================================
   SIDEBAR LAYOUT
   ============================================ */

#main-app {
  display: flex;
  min-height: 100vh;
}

/* App Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  padding: 4px 0;
}

.sidebar-logo:hover {
  opacity: 0.85;
}

.sidebar-logo:active {
  transform: scale(0.98);
}

.sidebar-logo:focus-visible {
  outline: 2px solid var(--accent-teal-light);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-light);
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.sidebar-cohort {
  padding: 0 20px 24px;
}

.cohort-selector {
  width: 100%;
  background: var(--bg-dark-surface);
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cohort-selector:hover {
  background: var(--border-dark);
}

.cohort-icon-small {
  background: var(--accent-teal);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cohort-selector #current-cohort-name {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.cohort-chevron {
  color: var(--text-light-secondary);
  transition: transform 0.2s;
}

.cohort-selector:hover .cohort-chevron {
  transform: translateY(2px);
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 0 20px 24px;
  flex: 1;
}

.nav-section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light-secondary);
  margin-bottom: 12px;
  padding: 0 12px;
}

.sidebar-nav .nav-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 12px 12px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.sidebar-nav .nav-tab svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav .nav-tab:hover {
  background: var(--bg-dark-surface);
  color: var(--text-light);
}

.sidebar-nav .nav-tab:hover svg {
  opacity: 1;
}

.sidebar-nav .nav-tab.active {
  background: var(--accent-teal);
  color: var(--text-light);
}

.sidebar-nav .nav-tab.active svg {
  opacity: 1;
}

/* Sidebar Progress */
.sidebar-progress {
  padding: 24px 20px;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.progress-mini {
  margin-bottom: 16px;
}

.progress-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.progress-mini-header span:first-child {
  color: var(--text-light-secondary);
}

.progress-mini-header span:last-child {
  color: var(--accent-teal-light);
  font-weight: 600;
}

.progress-mini-bar {
  height: 6px;
  background: var(--border-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-mini-detail {
  font-size: 0.75rem;
  color: var(--text-light-secondary);
}

.progress-mini-detail span {
  color: var(--text-light);
  font-weight: 600;
}

.sidebar-major-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.major-label {
  color: var(--text-light-secondary);
}

.major-value {
  color: var(--text-light);
}

/* Main Content Area */
.app-main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Content Header */
.content-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-primary);
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.content-header h1 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.content-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.content-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CU Display in header */
.cu-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: var(--bg-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.cu-display .cu-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.cu-display .cu-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 280px;
}

.header-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search-input {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

.header-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-action-btn:hover {
  background: var(--bg-primary);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Dark Content Header (for Graph Builder) - Enhanced */
.content-header-dark {
  background: linear-gradient(180deg, var(--bg-dark-elevated) 0%, var(--bg-dark-surface) 100%);
  border-bottom-color: var(--border-dark);
}

.content-header-dark h1 {
  font-family: var(--font-display);
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.content-header-dark .content-subtitle {
  font-family: var(--font-primary);
  color: var(--text-light-secondary);
  font-size: var(--text-sm);
}

/* View Content */
.view-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.view-content-dark {
  background: var(--bg-dark);
  padding: 0;
}

/* Pathway Header Stats */
.pathway-header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.header-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.header-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.header-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-stat-divider {
  width: 1px;
  height: 20px;
  background: var(--border-primary);
}

.header-stat-status {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Button Variants */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: var(--bg-dark-surface);
  color: var(--text-light);
}

/* Zoom Controls - Enhanced */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 4px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-light-secondary);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.zoom-btn:hover {
  background: var(--bg-dark-hover);
  color: var(--text-light);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-level-display {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
}

/* Legacy styles - keep for backward compatibility but override where needed */
.app-header {
  display: none; /* Hide old header */
}

.main-nav {
  display: none; /* Hide old nav */
}

/* Views */
.view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.view.active {
  display: flex;
}

/* Dark view variant (Graph Builder) */
.view-dark {
  background: var(--bg-dark);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1400px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-primary);
}

.card h3 {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progress Card */
.progress-bar-container {
  background: var(--bg-muted);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-teal-light) 100%);
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Dashboard Stats */
.progress-card .progress-stats {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.progress-stats {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.progress-percent {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.ready {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.status-badge.pending {
  background: rgba(224, 123, 84, 0.1);
  color: var(--accent-orange);
}

/* Stat Cards */
.progress-card {
  position: relative;
}

.progress-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ============================================
   REDESIGNED PROGRESS CARDS (V2)
   ============================================ */

/* Graduation Progress Card V2 */
.progress-card-v2 {
  position: relative;
}

.progress-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-teal-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.progress-card-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--bg-muted);
  stroke-width: 10;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-fill.complete {
  stroke: var(--accent-green);
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.progress-ring-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.progress-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.progress-detail-row .detail-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.progress-detail-row .detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-divider {
  height: 1px;
  background: var(--border-primary);
  margin: 4px 0;
}

.progress-remaining .detail-label {
  font-weight: 500;
}

.progress-remaining .detail-value {
  color: var(--accent-orange);
}

.progress-remaining.complete .detail-label,
.progress-remaining.complete .detail-value {
  color: var(--accent-green);
}

/* Major Progress Card V2 */
.major-card-v2 {
  position: relative;
}

.major-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple), #3b82b6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Major Empty State */
.major-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.major-empty-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent-purple);
}

.major-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.major-empty-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  max-width: 200px;
}

.btn-explore-majors {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-purple);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-explore-majors:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

/* Major Progress Items (when majors are selected) */
.major-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.major-progress-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.major-progress-card:hover {
  background: #f0f0f2;
  border-color: var(--border-primary);
}

.major-mini-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.major-mini-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.major-mini-ring .ring-bg {
  fill: none;
  stroke: rgba(0, 71, 133, 0.2);
  stroke-width: 5;
}

.major-mini-ring .ring-fill {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.major-mini-ring .ring-fill.complete {
  stroke: var(--accent-green);
}

.major-mini-ring .ring-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.major-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.major-progress-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.major-progress-cu {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.major-progress-bar-container {
  height: 4px;
  background: rgba(0, 71, 133, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.major-progress-bar {
  height: 100%;
  background: var(--accent-purple);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.major-progress-bar.complete {
  background: var(--accent-green);
}

.major-progress-status {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.major-progress-status.complete {
  color: var(--accent-green);
  font-weight: 500;
}

.major-progress-arrow {
  color: var(--text-tertiary);
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.major-progress-card:hover .major-progress-arrow {
  opacity: 1;
}

/* Add major button at bottom of list */
.add-major-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  margin-top: 8px;
  background: transparent;
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-major-btn:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(0, 71, 133, 0.08);
}

/* Responsive adjustments for progress cards */
@media (max-width: 768px) {
  .progress-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .progress-details {
    width: 100%;
  }

  .major-progress-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .major-progress-info {
    width: 100%;
  }

  .major-progress-header {
    flex-direction: column;
    align-items: center;
  }
}

/* Alert Card */
.alert-card {
  border-left: 4px solid var(--accent-orange);
  background: linear-gradient(135deg, var(--bg-surface), rgba(224, 123, 84, 0.02));
}

.decision-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.decision-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.decision-btn:hover {
  border-color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.05);
}

.decision-btn.selected {
  border-color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.08);
}

.decision-btn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.decision-btn span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Alerts List */
.alerts-list {
  list-style: none;
}

.alert-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-item::before {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.alert-item.info {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
}

.alert-item.info::before {
  content: 'ℹ️';
}

.alert-item.warning {
  background: rgba(224, 123, 84, 0.1);
  color: #b45a36;
}

.alert-item.warning::before {
  content: '⚠️';
}

.alert-item.success {
  background: rgba(16, 185, 129, 0.1);
  color: #0d8a5e;
}

.alert-item.success::before {
  content: '✓';
}

.alert-item.error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.alert-item.error::before {
  content: '⚠';
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-teal);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-teal-light);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-secondary);
}

/* Explorer View */
.explorer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1400px;
}

.explorer-filters,
.explorer-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 24px;
}

.browse-toggle {
  display: flex;
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--bg-surface);
  color: var(--accent-teal);
  box-shadow: var(--shadow);
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--bg-muted);
  color: var(--text-primary);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: var(--bg-surface);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* Explorer Sidebar Lists */
.sidebar-list {
  list-style: none;
  max-height: 500px;
  overflow-y: auto;
}

.sidebar-list.hidden {
  display: none;
}

.sidebar-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.sidebar-item:hover {
  background: var(--bg-muted);
}

.sidebar-item.active {
  background: rgba(163, 31, 52, 0.1);
  color: var(--accent-teal);
}

.sidebar-item .badge {
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.sidebar-item.active .badge {
  background: var(--accent-teal);
  color: white;
}

/* Explorer Content */
.explorer-header {
  margin-bottom: 24px;
}

.explorer-header h2 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.explorer-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.course-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.15s ease;
  position: relative;
}

.course-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--border-primary);
  transition: background 0.15s ease;
}

.course-card:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
}

.course-card:hover::before {
  background: var(--accent-teal);
}

.course-card.in-plan {
  background: rgba(16, 185, 129, 0.04);
  border-color: var(--accent-green);
}

.course-card.in-plan::before {
  background: var(--accent-green);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.course-code {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-teal);
}

.course-credits {
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.course-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.course-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-actions {
  display: flex;
  gap: 8px;
}

.course-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.course-btn.add {
  background: var(--accent-teal);
  color: white;
}

.course-btn.add:hover {
  background: var(--accent-teal-light);
}

.course-btn.remove {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border: 1px solid transparent;
}

.course-btn.remove:hover {
  background: var(--danger);
  color: white;
}

.course-btn.details {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.course-btn.details:hover {
  background: var(--bg-surface);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.course-btn.completed {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
  cursor: default;
}

/* Pathway View */
.pathway-header {
  display: none; /* Using content-header instead */
}

/* Timeline */
.pathway-timeline {
  max-width: 1200px;
}

.year-section {
  margin-bottom: 32px;
}

.year-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-primary);
}

.terms-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.term-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.15s ease;
}

.term-card:hover {
  border-color: var(--accent-teal);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-primary);
}

.term-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.term-season {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.term-cu {
  margin-left: auto;
  background: var(--accent-teal);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.term-courses {
  list-style: none;
  margin-bottom: 16px;
  min-height: 60px;
}

.term-courses li {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius);
  background: var(--bg-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.term-courses li:hover {
  background: rgba(163, 31, 52, 0.08);
}

.term-courses .course-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.term-courses .course-cu {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-left: 8px;
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 999px;
}

.term-courses .remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.15s ease;
  margin-left: 8px;
}

.term-courses li:hover .remove-btn {
  opacity: 1;
}

.term-courses .remove-btn:hover {
  color: var(--danger);
}

.empty-slot {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
  background: transparent !important;
}

.add-course-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.add-course-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.04);
}

.block-week-card {
  background: linear-gradient(135deg, var(--bg-surface), rgba(224, 123, 84, 0.04));
  border-color: rgba(224, 123, 84, 0.3);
}

.block-week-note {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* Block Week course items in pathway view */
.block-week-course {
  background: linear-gradient(135deg, transparent, rgba(224, 123, 84, 0.06));
  border-left: 3px solid rgba(224, 123, 84, 0.5);
  padding-left: 0.75rem;
  margin-left: -0.5rem;
}

.block-week-course .course-name {
  font-size: 0.85rem;
}

/* Validation Messages */
.validation-section {
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.validation-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.validation-message.success {
  background: #d1fae5;
  color: var(--success);
}

.validation-message.warning {
  background: #fef3c7;
  color: var(--warning);
}

.validation-message.error {
  background: #fee2e2;
  color: var(--danger);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-large {
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Add Course Modal */
.add-course-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.add-course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-course-item:hover {
  border-color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.05);
}

.add-course-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-course-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.add-course-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Block Week items in add course modal */
.add-course-item.block-week-item {
  border-left: 3px solid rgba(224, 123, 84, 0.6);
  background: linear-gradient(135deg, var(--bg-muted), rgba(224, 123, 84, 0.04));
}

.add-course-item.block-week-item:hover {
  border-color: rgba(224, 123, 84, 0.8);
  background: linear-gradient(135deg, var(--bg-muted), rgba(224, 123, 84, 0.08));
}

/* Finance Choice Modal */
.finance-modal-content {
  max-width: 680px;
  background: var(--bg-dark);
  border-color: var(--border-dark);
  color: var(--text-light);
}

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

.finance-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 8px 0;
}

.finance-modal-header p {
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  margin: 0;
}

.finance-modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.finance-option-card {
  background: var(--bg-dark-surface);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.finance-option-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.finance-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.finance-option-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--border-dark);
  color: var(--text-light-secondary);
}

.finance-option-badge.recommended {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.finance-option-cu {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-teal-light);
}

.finance-option-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 4px 0;
}

.finance-option-title {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  margin: 0 0 16px 0;
}

.finance-option-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.finance-option-benefits li {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.finance-option-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-teal-light);
  font-size: 0.8rem;
}

.finance-modal-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light-secondary);
  margin: 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .finance-modal-options {
    grid-template-columns: 1fr;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* Department Colors */
.dept-FNCE { color: #2563eb; }
.dept-MGMT { color: #7c3aed; }
.dept-MKTG { color: #db2777; }
.dept-OIDD { color: #059669; }
.dept-ACCT { color: #d97706; }
.dept-STAT { color: #4fb0c6; }
.dept-LGST { color: #4f46e5; }
.dept-HCMG { color: #dc2626; }
.dept-REAL { color: #65a30d; }

/* Major Highlight Styles */
.course-card.major-highlight,
.term-courses li.major-highlight {
  border-color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3), var(--shadow);
  position: relative;
}

.course-card.major-highlight::before,
.term-courses li.major-highlight::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.6);
}

.term-courses li.major-highlight {
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 4px 0;
}

.term-courses li.major-highlight::before {
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
}

/* Clickable Major Progress Items */
.major-progress-item.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 12px;
  border-radius: var(--radius);
  margin: -12px;
  margin-bottom: 8px;
  position: relative;
}

.major-progress-item.clickable:hover {
  background: var(--bg-muted);
  transform: translateX(4px);
}

.major-progress-item.clickable:active {
  transform: translateX(2px);
}

.major-progress-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: var(--accent-teal);
}

.major-progress-item.clickable:hover .major-progress-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }

  .terms-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hide sidebar on mobile */
  .app-sidebar {
    display: none;
  }

  .app-main-content {
    margin-left: 0;
  }

  /* Landing page responsive */
  #cohort-selection {
    justify-content: flex-start;
    overflow-y: auto;
    max-height: none;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .landing-nav {
    padding: 0 24px;
    position: static;
  }

  .hero-section {
    padding: 40px 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cohort-cards {
    flex-direction: column;
    align-items: center;
  }

  .cohort-card {
    width: 100%;
    max-width: 340px;
  }

  /* Content header responsive */
  .content-header {
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    height: calc(60px + env(safe-area-inset-top));
  }

  .content-header h1 {
    font-size: 1.1rem;
  }

  .content-subtitle {
    display: none;
  }

  .header-search {
    min-width: 120px;
  }

  /* View content responsive */
  .view-content {
    padding: 16px;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .explorer-filters,
  .explorer-sidebar {
    position: static;
    margin-bottom: 16px;
  }

  .terms-row {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-nav .nav-tab[data-view="graph"] { display: none; }
  /* Hide Export/Clear buttons on mobile pathway header */
  #pathway-view .content-header-right .btn-secondary,
  #pathway-view .content-header-right .btn-primary {
    display: none;
  }
  .content-header-right {
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .pathway-header-stats { font-size: 0.75rem; }
  /* Touch-friendly tap targets */
  .term-courses .remove-btn {
    opacity: 1;
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .add-course-btn { min-height: 44px; font-size: 0.85rem; }
  .cohort-card { padding: 20px; }
}

/* ============================================
   GRAPH BUILDER VIEW (Dark Theme - Enhanced)
   ============================================ */

/* Layout */
.graph-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  height: calc(100vh - 72px - var(--sidebar-width) + var(--sidebar-width));
  min-height: 0;
  flex: 1;
}

#graph-view .view-content {
  padding: 0;
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--bg-dark);
}

/* Course Catalog Panel - Dark Enhanced */
.graph-catalog {
  background: var(--bg-dark-surface);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
}

.catalog-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(180deg, var(--bg-dark-elevated) 0%, var(--bg-dark-surface) 100%);
}

.catalog-header h3 {
  font-family: var(--font-primary);
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: -0.01em;
}

.catalog-subtitle {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
  letter-spacing: 0.01em;
}

.catalog-sections {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) transparent;
}

.catalog-sections::-webkit-scrollbar {
  width: 6px;
}

.catalog-sections::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-sections::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

.catalog-sections::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark-hover);
}

.catalog-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-light-muted);
  font-family: var(--font-primary);
  font-size: var(--text-base);
}

/* Catalog Major Sections - Dark Enhanced */
.catalog-major {
  margin-bottom: 8px;
}

.catalog-major-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-major-header:hover {
  background: var(--bg-dark-hover);
  border-color: var(--border-dark);
}

.catalog-major-header h4 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.catalog-major-header .badge {
  background: var(--accent-teal);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.catalog-major-header .chevron {
  transition: transform 0.2s;
}

.catalog-major.collapsed .chevron {
  transform: rotate(-90deg);
}

.catalog-major.collapsed .catalog-courses {
  display: none;
}

.catalog-courses {
  padding: 0.5rem 0;
}

/* Catalog Course Card (draggable) - Dark Enhanced */
.catalog-course {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: grab;
  transition: all 0.2s ease;
}

.catalog-course:hover {
  border-color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.08);
  box-shadow: 0 0 0 1px rgba(163, 31, 52, 0.2);
  transform: translateX(2px);
}

.catalog-course.in-plan {
  opacity: 0.6;
  cursor: default;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.catalog-course.in-plan:hover {
  transform: none;
}

.catalog-course.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.catalog-course.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.catalog-course-color {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}

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

.catalog-course-code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.catalog-course-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  color: var(--text-light-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.catalog-course-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.catalog-course-credits {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--bg-dark-elevated);
  color: var(--accent-teal-light);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-dark-subtle);
}

.catalog-course-term {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-light-muted);
  letter-spacing: 0.03em;
}

.catalog-course-status {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
}

.catalog-course-status.added {
  color: var(--accent-green);
}

.catalog-course-status.locked {
  color: var(--text-light-muted);
}

/* Custom Course Badge in Catalog */
.catalog-course-custom {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  background: var(--accent-teal);
  color: white;
  border-radius: 3px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  vertical-align: middle;
}

.catalog-course.custom-course {
  border-left: 3px solid var(--accent-teal);
}

/* Major Target Course Highlight - Enhanced */
.catalog-course.major-target {
  background: linear-gradient(135deg, rgba(163, 31, 52, 0.12) 0%, rgba(163, 31, 52, 0.06) 100%);
  border-color: var(--accent-teal);
  box-shadow:
    0 0 0 1px rgba(163, 31, 52, 0.25),
    0 0 12px rgba(163, 31, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.catalog-course.major-target:hover {
  background: linear-gradient(135deg, rgba(163, 31, 52, 0.18) 0%, rgba(163, 31, 52, 0.1) 100%);
  border-color: var(--accent-teal-light);
  box-shadow:
    0 0 0 1px rgba(199, 62, 82, 0.35),
    0 0 16px rgba(163, 31, 52, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.catalog-course.major-target .catalog-course-color {
  box-shadow: 0 0 8px var(--major-accent-color, var(--accent-teal));
}

.major-indicator {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.625rem;
  color: var(--accent-teal-light);
  margin-left: 4px;
  vertical-align: middle;
  text-shadow: 0 0 4px rgba(199, 62, 82, 0.4);
}

/* Major target that's also in-plan (combined styling) */
.catalog-course.major-target.in-plan {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(163, 31, 52, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.25),
    0 0 8px rgba(163, 31, 52, 0.08);
}

/* Catalog header badges container */
.catalog-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge.major-badge {
  background: rgba(0, 71, 133, 0.12);
  color: #7BA3C9;
  border: 1px solid rgba(0, 71, 133, 0.3);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  text-transform: uppercase;
}

/* Graph Panel - Dark Enhanced */
.graph-panel {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0F172A 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Core Curriculum Summary - Dark Enhanced */
.core-summary {
  background: var(--bg-dark-surface);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 16px;
  position: relative;
  z-index: 35; /* Above graph-header-stats (z-index: 30) */
}

.core-summary-collapsed {
  display: flex;
  align-items: center;
  gap: 16px;
}

.core-label {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--text-light-secondary);
}

.core-label strong {
  color: var(--text-light);
  font-weight: 600;
}

.core-cohort {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #8B1B2B 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(163, 31, 52, 0.3);
}

.finance-indicator {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
}

.finance-indicator.warning {
  color: var(--accent-orange);
}

.core-expand-btn,
.core-collapse-btn {
  margin-left: auto;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.core-expand-btn:hover,
.core-collapse-btn:hover {
  background: var(--bg-dark-hover);
  border-color: var(--border-dark-hover);
  color: var(--text-light);
}

.core-summary-expanded {
  padding-top: 0.75rem;
}

.core-summary-expanded.hidden {
  display: none;
}

.core-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.core-term {
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.core-term h5 {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.core-term-course {
  font-size: 0.75rem;
  padding: 0.25rem 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.core-term-course span {
  color: var(--text-secondary);
}

/* SVG Graph Canvas */
.graph-canvas-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Contains the graph-header-stats which is positioned relative to this container */
}

.graph-alerts {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem 0.75rem;
  z-index: 12;
}

.graph-alerts.hidden {
  display: none;
}

.graph-alerts h4 {
  margin: 0 0 0.4rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.graph-alerts .alert-item {
  font-size: 0.75rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
}

.pathway-graph {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.pathway-graph.panning {
  cursor: grabbing;
}

/* Term Column Headers - Enhanced */
.term-column-header {
  fill: var(--text-light);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.term-column-subheader {
  fill: var(--text-light-muted);
  font-family: var(--font-primary);
  font-size: 11px;
}

/* Drop Zones */
#dropzones-layer {
  pointer-events: none;
}

.term-dropzone {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  stroke-dasharray: 8 4;
  rx: 8;
  transition: fill 0.2s, stroke 0.2s;
  pointer-events: none;
}

.term-column-header,
.term-column-subheader {
  pointer-events: none;
}

.term-dropzone.active {
  fill: rgba(59, 130, 246, 0.05);
  stroke: var(--primary);
}

.term-dropzone.invalid {
  fill: rgba(220, 38, 38, 0.05);
  stroke: var(--danger);
}

/* Course Nodes - Enhanced */
.course-node {
  cursor: pointer;
  transition: filter 0.15s ease;
}

.course-node:hover {
  filter: brightness(1.08);
}

.course-node.selected .node-border {
  stroke: var(--accent-teal);
  stroke-width: 3;
}

.course-node.dragging {
  opacity: 0.8;
  cursor: grabbing;
}

.node-bg {
  fill: var(--bg-dark-elevated);
  stroke: var(--border-dark);
  stroke-width: 1;
  rx: 8;
}

.node-border {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
  rx: 8;
}

.node-dept-bar {
  rx: 8 8 0 0;
}

.node-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--text-light);
  letter-spacing: 0.02em;
}

.node-title {
  font-family: var(--font-primary);
  font-size: 10px;
  fill: var(--text-light-secondary);
}

.node-credits {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  fill: var(--accent-teal-light);
}

.node-term {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-light-muted);
  letter-spacing: 0.03em;
}

/* Node Warning States */
.course-node.warning-prereq .node-border {
  stroke: var(--danger);
  stroke-dasharray: 5 3;
}

.course-node.warning-conflict .node-border {
  stroke: var(--warning);
  stroke-width: 2;
  animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% { stroke-opacity: 0.6; stroke-width: 2; }
  50% { stroke-opacity: 1; stroke-width: 2.5; }
}

.course-node.conflict-highlighted .node-border {
  stroke: #dc2626;
  stroke-width: 2.5;
  animation: conflict-node-pulse 1.5s ease-in-out infinite;
}

@keyframes conflict-node-pulse {
  0%, 100% { stroke-opacity: 0.7; }
  50% { stroke-opacity: 1; stroke-width: 3; }
}

.node-warning-icon {
  font-size: 12px;
  cursor: help;
}

/* Prerequisite Status Badges */
.prereq-badge {
  pointer-events: none;
}

.prereq-badge-bg {
  stroke: none;
}

.prereq-badge-bg-success {
  fill: #dcfce7;
}

.prereq-badge-bg-warning {
  fill: #fef3c7;
}

.prereq-badge-text {
  font-size: 8px;
  font-weight: 500;
}

.prereq-badge-text-success {
  fill: #166534;
}

.prereq-badge-text-warning {
  fill: #92400e;
}

/* Connection Lines - Enhanced */
.connection-line {
  fill: none;
  stroke: #64748B;
  stroke-width: 1.5;
  opacity: 0.35;
  marker-end: url(#arrowhead);
  transition: opacity 0.2s, stroke 0.2s, stroke-width 0.2s;
  pointer-events: stroke;
}

.connection-line:hover {
  stroke-width: 3;
  opacity: 0.7;
}

/* Prerequisite connections (upstream - blue) */
.connection-line.highlighted-upstream {
  stroke: #60A5FA;
  stroke-width: 2.5;
  opacity: 1;
  marker-end: url(#arrowhead-blue);
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.4));
}

/* Unlock connections (downstream - green) */
.connection-line.highlighted-downstream {
  stroke: #34D399;
  stroke-width: 2.5;
  opacity: 1;
  marker-end: url(#arrowhead-green);
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.4));
}

/* Core prerequisite connections (dashed) */
.connection-line.core-prereq {
  stroke: #60A5FA;
  stroke-width: 2;
  stroke-dasharray: 6 3;
  opacity: 0.5;
  marker-end: url(#arrowhead-blue-small);
}

.connection-line.core-prereq.highlighted-upstream {
  opacity: 1;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.4));
}

/* Conflict connections (red) */
.connection-line.conflict {
  stroke: #F87171;
  stroke-width: 2;
  stroke-dasharray: 8 4;
  opacity: 0.85;
  marker-end: url(#conflict-indicator);
  animation: conflict-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.5));
}

@keyframes conflict-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.connection-line.faded {
  opacity: 0.12;
}

/* Animated path drawing */
.connection-line.animated {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 0.4s ease-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Connection labels */
.connection-label {
  font-family: var(--font-primary);
  font-size: 9px;
  fill: var(--text-light-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.connection-label.visible {
  opacity: 1;
}

.connection-label.prereq-label {
  fill: #60A5FA;
}

.connection-label.unlock-label {
  fill: #34D399;
}

.connection-label-bg {
  fill: var(--bg-dark-elevated);
  opacity: 0.95;
}

/* Graph Controls - Dark Enhanced */
.graph-controls {
  position: absolute;
  bottom: 5rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-dark-lg);
  backdrop-filter: blur(8px);
  z-index: 15; /* Above legend box (z-index: 10) */
}

.graph-control-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light-secondary);
  transition: all 0.15s ease;
}

.graph-control-btn:hover {
  background: var(--bg-dark-hover);
  border-color: var(--border-dark-hover);
  color: var(--text-light);
}

.graph-control-btn:active {
  transform: scale(0.95);
}

.zoom-level {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
  min-width: 44px;
  text-align: center;
}

/* Graph Legend Box - Dark Enhanced */
.graph-legend-box {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark-lg);
  padding: 14px 18px;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.graph-legend-box h4 {
  margin: 0 0 10px 0;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.legend-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.legend-section {
  flex: 0 0 auto;
}

.legend-section h5 {
  margin: 0 0 8px 0;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legend-depts {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.legend-dept {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--dept-color);
  color: white;
  letter-spacing: 0.03em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
}

.legend-line {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-line-blue {
  background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
}

.legend-line-green {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

.legend-icon {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.legend-icon.warning-prereq {
  color: #EF4444;
}

.legend-icon.warning-conflict {
  color: var(--accent-orange);
}

.legend-icon.status-added {
  color: var(--accent-green);
}

.legend-icon.status-locked {
  color: var(--text-light-muted);
}

/* Interactive legend items */
.legend-item.legend-interactive {
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  margin: -0.15rem -0.3rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.legend-item.legend-interactive:hover {
  background: var(--background);
}

.legend-item.legend-interactive.active {
  background: #eff6ff;
}

.legend-count {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Graph Header Stats - Dark Enhanced (Attached Toolbar) */
.graph-header-stats {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg-dark-elevated) 0%, var(--bg-dark-surface) 100%);
  border-bottom: 1px solid var(--border-dark);
  padding: 14px 20px;
  border-radius: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

/* Add visual separators between header sections */
.graph-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--border-dark-subtle);
}

.graph-stat-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-teal-light);
  letter-spacing: -0.02em;
}

.graph-stat-label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
}

.graph-major-progress {
  display: flex;
  padding-right: 16px;
  border-right: 1px solid var(--border-dark-subtle);
  gap: 1rem;
}

.graph-major-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.graph-major-name {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--text-light-secondary);
}

.graph-major-bar {
  width: 60px;
  height: 6px;
  background: var(--border-dark);
  border-radius: 999px;
  overflow: hidden;
}

.graph-major-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-teal-light) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.graph-major-bar-fill.complete {
  background: linear-gradient(90deg, var(--accent-green) 0%, #34D399 100%);
}

/* Graph Toggle Buttons - Enhanced */
.graph-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-light-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.graph-toggle-btn:hover {
  background: var(--bg-dark-hover);
  border-color: var(--border-dark-hover);
  color: var(--text-light);
}

.graph-toggle-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.graph-toggle-btn .toggle-icon {
  font-size: 0.9rem;
}

.conflict-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #EF4444;
  color: white;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.conflict-count-badge.hidden {
  display: none;
}

/* Mode Selector - Enhanced */
.graph-mode-selector {
  display: flex;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
  margin-left: auto;
}

.mode-btn {
  padding: 0.35rem 0.7rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 3px);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-light-muted);
  transition: all 0.2s ease;
}

.mode-btn:hover {
  background: var(--bg-dark-hover);
  color: var(--text-light-secondary);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #8B1B2B 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(163, 31, 52, 0.3);
}

.mode-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Selected Majors Display - Enhanced */
.graph-majors-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
}

.graph-majors-display.hidden {
  display: none;
}

.majors-label {
  color: var(--text-light-muted);
  font-weight: 500;
}

.selected-majors-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  max-width: 200px;
}

.major-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #005a9e 100%);
  color: white;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 71, 133, 0.35);
}

.major-tag .remove-major {
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.8rem;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.major-tag .remove-major:hover {
  opacity: 1;
}

.clear-majors-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
}

.clear-majors-btn:hover {
  color: var(--danger);
}

.no-majors-hint {
  color: var(--text-secondary);
  font-style: italic;
}

/* Major Relevance Indicators */
.major-dots {
  display: flex;
  gap: 2px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.major-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.major-dot-overflow {
  font-size: 7px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Major Highlight Glow */
.course-node.major-relevant .node-bg {
  filter: drop-shadow(0 0 4px rgba(var(--major-color-rgb, 37, 99, 235), 0.3));
}

.course-node.major-relevant .node-border {
  stroke: var(--major-highlight-color, #3b82f6);
  stroke-width: 1.5;
  stroke-opacity: 0.6;
}

.course-node.major-dimmed {
  opacity: 0.35;
}

.course-node.major-hidden {
  display: none;
}

/* Course Info Panel */
.course-info-panel {
  position: absolute;
  top: 5.5rem;
  right: 1rem;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.course-info-panel.hidden {
  display: none;
}

.info-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: sticky;
  top: 0;
}

.info-panel-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.info-panel-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.info-panel-close:hover {
  color: var(--text);
}

.info-panel-content {
  padding: 0.75rem;
}

.info-section {
  margin-bottom: 0.75rem;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h5 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.4rem 0;
}

.info-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-section li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
  background: var(--background);
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.info-section li:last-child {
  margin-bottom: 0;
}

.prereq-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.prereq-status.in-plan {
  color: var(--success);
}

.prereq-status.in-core {
  color: #6366f1;
}

.prereq-status.missing {
  color: var(--danger);
}

.add-prereq-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.65rem;
  cursor: pointer;
  font-weight: 500;
}

.add-prereq-btn:hover {
  background: var(--penn-red);
}

.unlock-course {
  color: var(--text);
}

.unlock-status {
  color: var(--text-secondary);
  font-size: 0.65rem;
}

.conflict-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.conflict-course {
  color: var(--text);
  font-weight: 500;
}

.conflict-detail {
  color: var(--text-secondary);
  font-size: 0.65rem;
}

/* Ghost Nodes */
.ghost-node {
  opacity: 0.5;
  pointer-events: auto;
  cursor: pointer;
}

.ghost-node .node-bg {
  fill: var(--background);
  stroke: #94a3b8;
  stroke-dasharray: 4 2;
}

.ghost-node .node-dept-bar {
  opacity: 0.5;
}

.ghost-node:hover {
  opacity: 0.8;
}

.ghost-node:hover .node-bg {
  stroke: var(--primary);
}

.ghost-connection {
  stroke: #94a3b8;
  stroke-dasharray: 6 4;
  opacity: 0.4;
}

/* Trash Dropzone */
.trash-dropzone {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: opacity 0.2s, transform 0.2s;
}

.trash-dropzone.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.trash-dropzone.active {
  background: #b91c1c;
  transform: translateX(-50%) scale(1.05);
}

/* Graph View Responsive */
@media (max-width: 1024px) {
  .graph-layout {
    grid-template-columns: 260px 1fr;
  }
}

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

  .graph-catalog {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 40vh;
  }

  .graph-panel {
    height: 60vh;
  }

  .graph-header-stats {
    top: auto;
    bottom: 4rem;
    right: 0.5rem;
    left: 0.5rem;
    justify-content: center;
  }

  .graph-controls {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .core-terms {
    grid-template-columns: 1fr;
  }
}

/* Node Remove Button */
.node-remove-btn {
  cursor: pointer;
  pointer-events: all;
}

.remove-btn-bg {
  fill: #94a3b8;
  transition: fill 0.15s ease;
}

.node-remove-btn:hover .remove-btn-bg {
  fill: #dc2626;
}

.remove-btn-x {
  fill: white;
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
}

/* ===== Course Evaluation Styles ===== */

/* Mini Chart on Course Cards */
.eval-mini-chart {
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: var(--background);
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.eval-mini-chart.eval-no-data {
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  font-style: italic;
}

.mini-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.mini-bar-row:last-child {
  margin-bottom: 0;
}

.mini-bar-label {
  width: 60px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.mini-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.mini-bar-score {
  width: 24px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Full Evaluation Section in Modal */
.eval-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius);
}

.eval-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.eval-professor-note {
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.eval-section .eval-no-data {
  color: var(--text-muted);
  font-style: italic;
}

.eval-category {
  margin-bottom: 1rem;
}

.eval-category:last-child {
  margin-bottom: 0;
}

.eval-category h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

.eval-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.eval-bar-row:last-child {
  margin-bottom: 0;
}

.eval-bar-label {
  width: 180px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.eval-bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

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

.eval-bar-score {
  width: 36px;
  text-align: right;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.eval-scale-note {
  margin: 1rem 0 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* Evaluation Color Classes */
.eval-excellent {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.eval-good {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.eval-average {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}

.eval-poor {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.eval-neutral {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .eval-bar-label {
    width: 120px;
    font-size: 0.75rem;
  }

  .mini-bar-label {
    width: 50px;
  }
}

/* ================================================
   Completed Block Courses Styles
   ================================================ */

/* Dashboard Card */
.block-courses-card {
  grid-column: span 2;
}

.block-courses-card .card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: -0.5rem 0 1rem 0;
}

.block-courses-summary {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #bbf7d0;
}

.block-cu-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16a34a;
}

.block-term-group {
  margin-bottom: 1.25rem;
}

.block-term-group:last-child {
  margin-bottom: 0;
}

.block-term-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.block-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.block-course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.block-course-item:hover {
  border-color: var(--primary);
}

.block-course-item.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.block-course-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.block-course-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-course-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Add/Added Button */
.block-course-btn {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.block-course-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.block-course-btn.added {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

.block-course-btn.added:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Pathway View Block Courses */
.block-courses-divider {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.block-courses-divider span {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.block-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0;
}

.block-course-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.block-course-row .course-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-course-row-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-course-row.completed .course-name {
  color: #16a34a;
}

/* Compact add button for pathway view */
.block-add-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.block-add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.block-add-btn.added {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
  font-size: 0.75rem;
}

.block-add-btn.added:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  .block-courses-card {
    grid-column: span 1;
  }

  .block-course-item {
    padding: 0.5rem;
  }

  .block-course-title {
    font-size: 0.85rem;
  }
}

/* Custom Course Modal */
.modal-medium {
  max-width: 560px;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0.25rem 0 0.5rem 0;
}

/* Slot hint showing weekend dates */
#slot-hint {
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.5rem;
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border-primary);
  margin-top: 0.5rem;
}

#slot-hint strong {
  color: var(--text-primary);
}

#term-hint,
#block-term-hint {
  color: var(--accent-teal);
  font-weight: 500;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkbox-item:hover {
  background: var(--bg-hover);
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

/* Custom course indicator in pathway */
.custom-course-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  background: var(--accent-teal);
  color: white;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Add Custom button in pathway terms */
.add-custom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: transparent;
  border: 1px dashed var(--border-secondary);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-custom-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(163, 31, 52, 0.04);
}

.add-custom-btn .plus-icon {
  font-size: 1rem;
  font-weight: 300;
}

/* Term actions wrapper for pathway view */
.term-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.term-actions .add-course-btn {
  margin-bottom: 0;
}

.term-actions .add-custom-btn {
  margin-top: 0;
}

/* Catalog custom course button in graph builder */
.catalog-custom-btn {
  margin-top: 0.75rem;
  background: var(--bg-surface);
  border-color: var(--border-primary);
}

.catalog-custom-btn:hover {
  background: var(--bg-hover);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  }
  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    min-height: 56px;
    background: transparent;
    border: none;
    color: var(--text-light-secondary);
    font-size: 0.65rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: color 0.15s ease;
    touch-action: manipulation;
  }
  .mobile-nav-tab svg { opacity: 0.7; transition: opacity 0.15s ease; }
  .mobile-nav-tab.active { color: var(--accent-teal-light); }
  .mobile-nav-tab.active svg { opacity: 1; }
  .app-main-content { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .view-content { padding-bottom: calc(24px + 56px + env(safe-area-inset-bottom)); }
}

/* Landscape mode mobile adjustments */
@media (max-width: 926px) and (max-height: 430px) and (orientation: landscape) {
  .mobile-nav { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-nav-tab { padding: 8px; min-height: 44px; }
  .app-main-content { padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
}

/* ============================================
   CONFLICT WARNING INDICATORS (Pathway View)
   ============================================ */
.term-courses li.has-conflict {
  border-left: 3px solid var(--danger);
  padding-left: 9px;
  background: var(--danger-bg) !important;
}
.conflict-icon { color: var(--danger); font-size: 0.9rem; flex-shrink: 0; }
.course-item-conflict {
  font-size: 0.65rem;
  color: var(--danger-text);
  font-weight: 500;
  margin-top: 3px;
}
@media (min-width: 769px) {
  .course-item-conflict { display: none; }
  .term-courses li.has-conflict:hover .course-item-conflict { display: block; }
}
@media (max-width: 768px) {
  .course-item-conflict { display: block; }
}

/* ============================================
   PREREQUISITE STATUS BADGES (Pathway View)
   ============================================ */
.course-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.course-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.course-item-submeta {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.course-item-badges { margin-top: 4px; }
.prereq-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--font-primary);
}
.prereq-badge--none {
  background: var(--bg-muted);
  color: var(--text-muted);
}
.prereq-badge--success {
  background: var(--success-bg);
  color: var(--success-text);
}
.prereq-badge--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}
@media (min-width: 769px) {
  .course-item-badges { display: none; }
  .term-courses li.has-prereq-badge:hover .course-item-badges { display: block; }
}
@media (max-width: 768px) {
  .course-item-badges { display: block; }
  .term-courses li.has-prereq-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================
   MAJOR FILTER BAR (Pathway View)
   ============================================ */
.pathway-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-toggle-group {
  display: flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 36px;
}
.filter-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}
.filter-context {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}
.term-courses li.major-hidden { display: none; }

/* ============================================
   INLINE COURSE CATALOG (Mobile Pathway)
   ============================================ */
.inline-catalog {
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  margin: 8px 0;
  overflow: hidden;
  background: var(--bg-surface);
}
.inline-catalog.hidden { display: none; }
.inline-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.inline-catalog-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  touch-action: manipulation;
}
.inline-catalog-empty {
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.inline-catalog-dept {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-primary);
}
.inline-catalog-dept:last-child { border-bottom: none; }
.inline-dept-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  color: var(--text-muted);
}
.inline-catalog-courses { padding: 0 6px; }
.inline-course-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  margin-bottom: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  min-height: 44px;
  font-family: var(--font-primary);
}
.inline-course-item:active {
  background: rgba(163, 31, 52, 0.05);
  border-color: var(--accent-teal);
}
.inline-course-item.major-course {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.04);
}
.inline-course-item.locked { opacity: 0.6; }
.inline-course-item.conflicted { border-left: 3px solid var(--danger); }
.inline-course-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.inline-course-code {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.inline-course-cu {
  font-size: 0.7rem;
  background: var(--bg-muted);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 999px;
}
.inline-course-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.inline-course-locked {
  font-size: 0.65rem;
  color: var(--warning-text);
  margin-top: 3px;
}
.inline-course-major {
  font-size: 0.65rem;
  color: #B45309;
  margin-top: 3px;
}
