/* ============================================================
   CLASSROOMOS — COMPLETE PRODUCTION STYLES v2.1
   Premium Professional Design • All Components
============================================================ */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-dark: #1e3a8a;
  
  --yellow: #fbbf24;
  --yellow-light: #fef3c7;
  --yellow-dark: #92400e;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --red: #ef4444;
  --red-light: #fee2e2;
  --red-dark: #991b1b;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #065f46;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  
  --text: #1f2937;
  --text-medium: #6b7280;
  --text-light: #9ca3af;
  
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================================
   HEADER
============================================================ */

.header {
  background: white;
  border-bottom: 2px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-icon {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all 150ms;
}

.btn-icon:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   MAIN
============================================================ */

.main {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 150px);
}

/* ============================================================
   CONFIG PANEL
============================================================ */

.config-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms;
}

.panel-header:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.panel-header h2 {
  color: white;
  font-size: 1.125rem;
  margin: 0 0 4px 0;
}

.panel-header .hint {
  font-size: 0.8125rem;
  opacity: 0.9;
  font-family: var(--font-body);
  font-weight: 400;
}

.toggle {
  font-size: 0.875rem;
  transition: transform 250ms;
}

.config-form.collapsed {
  display: none;
}

.config-form {
  padding: var(--space-xl);
}

.section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.required {
  color: var(--red);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

.field input,
.field select,
.field textarea {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: white;
  transition: all 150ms;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.requirements-list,
.interruptions-list {
  min-height: 60px;
  margin-bottom: var(--space-md);
}

.empty-text {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.hint {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.interruption-item,
.requirement-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.int-icon {
  font-size: 1.25rem;
}

.int-details,
.req-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.int-date,
.req-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.int-type,
.req-type {
  font-size: 0.6875rem;
  color: var(--text-medium);
  text-transform: uppercase;
}

.int-notes,
.req-name {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.req-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.btn-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 var(--space-sm);
  transition: all 150ms;
}

.btn-remove:hover {
  color: var(--red);
  transform: scale(1.2);
}

.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}

.btn-secondary:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   MODAL
============================================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 200ms ease-out;
}

.modal-content.large {
  max-width: 700px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.modal-hint {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

.effectiveness-preview {
  background: var(--blue-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  border-left: 3px solid var(--primary);
}

.effectiveness-preview h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.effectiveness-preview small {
  color: var(--text-medium);
  font-size: 0.75rem;
}

/* ============================================================
   STATES
============================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.loading-state {
  text-align: center;
  padding: var(--space-2xl);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.error-card {
  background: var(--red-light);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.error-card h3 {
  color: var(--red-dark);
  margin-bottom: var(--space-md);
}

/* ============================================================
   DASHBOARD
============================================================ */

.class-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.class-info h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.stat-pills {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.stat-pill.yellow {
  background: var(--yellow-light);
  color: var(--yellow-dark);
  font-weight: 600;
}

.stat-pill.blue {
  background: var(--blue-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.stat-pill.red {
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 600;
}

.stat-pill.purple {
  background: var(--purple-light);
  color: #5b21b6;
  font-weight: 600;
}

/* ============================================================
   TODAY SNAPSHOT
============================================================ */

.today-snapshot {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.snapshot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 12px var(--space-lg);
}

.snapshot-header h3 {
  color: white;
  font-size: 0.875rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.snapshot-item {
  background: var(--yellow-light);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-item.warning {
  background: var(--yellow-light);
}

.snapshot-item.success {
  background: var(--green-light);
}

.snapshot-item .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  font-weight: 600;
}

.snapshot-item .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.snapshot-item .sublabel {
  font-size: 0.75rem;
  color: var(--text-medium);
}

/* ============================================================
   DASHBOARD GRID
============================================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================================
   CARDS
============================================================ */

.card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 200ms;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card.priority-card {
  border-color: var(--primary);
  border-width: 3px;
}

.card.win-card {
  border-color: var(--green);
  border-width: 2px;
}

.card.risk-card {
  border-color: var(--yellow);
  border-width: 2px;
}

.card-header {
  padding: 12px var(--space-lg);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-header .icon {
  font-size: 1rem;
}

.card-header h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin: 0;
  font-family: var(--font-body);
}

.card-body {
  padding: var(--space-lg);
}

.block {
  margin-bottom: var(--space-md);
}

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

.block h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.plain-list,
.strategy-list,
.defer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li,
.strategy-list li,
.defer-list li {
  padding: 4px 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.strategy-list li {
  color: var(--primary);
  font-weight: 500;
}

.defer-list li {
  color: var(--yellow-dark);
  font-weight: 500;
}

.outcome-box {
  background: var(--green-light);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
  margin-top: var(--space-md);
}

.outcome-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.outcome-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.outcome-timeframe {
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-top: 4px;
  font-style: italic;
}

.no-risks {
  color: var(--green);
  font-weight: 600;
}

.risk-item {
  padding: var(--space-md);
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--yellow);
  margin-bottom: var(--space-sm);
}

.risk-item:last-child {
  margin-bottom: 0;
}

.risk-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  margin-bottom: 4px;
}

.risk-message {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.risk-impact {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.deadline-box {
  background: var(--blue-light);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.deadline-icon {
  font-size: 1.25rem;
}

.deadline-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.deadline-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.compression-block {
  background: var(--yellow-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--yellow);
}

.compression-stats {
  margin: var(--space-md) 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
}

.stat-row .label {
  color: var(--text-medium);
}

.stat-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.stat-row .value.warning {
  color: var(--yellow-dark);
}

.compression-note {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

/* ============================================================
   SUCCESS METRICS PANEL
============================================================ */

.success-metrics-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.metric-icon {
  font-size: 1.25rem;
}

.metric-header h3 {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--primary);
}

.metric-body {
  font-size: 0.875rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}

.metric-row.highlight {
  background: var(--blue-light);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.metric-row .label {
  color: var(--text-medium);
  font-weight: 500;
}

.metric-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.metric-row .value.success {
  color: var(--green-dark);
}

.metric-row .value.warning {
  color: var(--yellow-dark);
}

.growth-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: var(--space-md) 0;
}

.growth-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  transition: width 500ms ease-out;
}

.metric-status {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.metric-status.success {
  color: var(--green-dark);
}

.metric-status.warning {
  color: var(--yellow-dark);
}

.benchmark-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
  border-radius: var(--radius-sm);
}

.benchmark-item.urgent {
  border-color: var(--red);
  background: var(--red-light);
}

.benchmark-item.warning {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.benchmark-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.benchmark-date,
.benchmark-standards {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.iep-goal-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--purple);
  background: var(--purple-light);
  border-radius: var(--radius-sm);
}

.goal-student {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
}

.goal-text {
  font-size: 0.8125rem;
  margin: 4px 0;
}

.goal-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-medium);
}

.goal-progress .arrow {
  margin: 0 4px;
}

.goal-progress .baseline,
.goal-progress .target {
  font-weight: 600;
  color: var(--purple);
}

/* ============================================================
   DEEP ANALYTICS PANEL
============================================================ */

.analytics-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.analytic-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.analytic-card.success {
  border-color: var(--green);
  background: var(--green-light);
}

.analytic-card.warning {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.analytic-card.danger {
  border-color: var(--red);
  background: var(--red-light);
}

.analytic-card h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.risk-score {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: var(--space-md) 0;
}

.risk-score.success { color: var(--green-dark); }
.risk-score.warning { color: var(--yellow-dark); }
.risk-score.danger { color: var(--red-dark); }

.risk-level {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.analytic-details {
  font-size: 0.875rem;
}

.analytic-details p {
  margin: var(--space-sm) 0;
}

.analytic-details .warning {
  color: var(--yellow-dark);
  font-weight: 600;
}

.analytic-details .success {
  color: var(--green-dark);
  font-weight: 600;
}

.gap-stat {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--yellow-dark);
  margin: var(--space-md) 0;
}

.prerequisite-box {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

.prereq-label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.prerequisite-box ul {
  margin-left: var(--space-lg);
  font-size: 0.8125rem;
}

.prerequisite-box li {
  margin: 4px 0;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.alert-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: white;
}

.alert-item.urgent {
  border-left: 3px solid var(--red);
}

.alert-item.warning {
  border-left: 3px solid var(--yellow);
}

.alert-icon {
  font-size: 1.25rem;
}

.alert-content {
  flex: 1;
}

.alert-message {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.alert-action {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.recommendation-item {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: white;
}

.recommendation-item.urgent {
  border-left: 3px solid var(--red);
}

.recommendation-item.high {
  border-left: 3px solid var(--yellow);
}

.recommendation-item.medium {
  border-left: 3px solid var(--blue);
}

.rec-priority {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.recommendation-item.urgent .rec-priority { color: var(--red-dark); }
.recommendation-item.high .rec-priority { color: var(--yellow-dark); }
.recommendation-item.medium .rec-priority { color: var(--primary); }

.rec-text {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.rec-rationale {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.iep-stat {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--purple);
  margin: var(--space-md) 0;
}

/* ============================================================
   PROGRESS TRACKING
============================================================ */

.progress-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-header .header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-header .icon {
  font-size: 1.25rem;
}

.section-header h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.chart-container {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.chart-container h3 {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.chart-container canvas {
  max-height: 280px;
}

.chart-note {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Chart Center Text for Donut Charts */
.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-text .percent {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.chart-center-text .label {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Chart Center Text for Donut Charts */
.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-text .percent {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.chart-center-text .label {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ============================================================
   INTERACTIVE CALENDAR
============================================================ */

.calendar-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.calendar-section.interactive {
  border: 2px solid var(--primary);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.week-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.calendar-day {
  background: var(--blue-light);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  position: relative; /* For absolute positioned badge */
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.calendar-day:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.calendar-day.today {
  background: var(--yellow-light);
  border-color: var(--yellow);
  border-width: 3px;
}

.calendar-day.past {
  background: #f9fafb;
  border-color: #d1d5db;
  opacity: 0.85;
}

.calendar-day.past .day-date {
  color: var(--text-medium);
}

.past-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.calendar-day.interruption {
  background: var(--red-light);
  border-color: var(--red);
}

.calendar-day.weekend {
  background: #f3f4f6;
  border-color: var(--border);
  opacity: 0.6;
  cursor: default;
}

.calendar-day.weekend:hover {
  transform: none;
  box-shadow: none;
}

.calendar-day.editable {
  border-style: dashed;
}

/* Past Days - Completed Days with Checkmark */
.calendar-day.past {
  background: #f3f4f6;
  border-color: var(--border);
  opacity: 0.85;
}

.past-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.day-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-medium);
}

.day-date {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.day-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.day-content.empty {
  justify-content: center;
  align-items: center;
}

.no-instruction {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
}

.interruption-badge {
  background: white;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--red);
}

.interruption-badge span {
  font-size: 0.75rem;
  color: var(--red-dark);
  font-weight: 600;
}

.day-standard {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.day-strategy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.strategy-icon {
  font-size: 0.875rem;
}

.day-status {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-tag.pending {
  background: var(--bg);
  color: var(--text-medium);
}

.status-tag.success {
  background: var(--green-light);
  color: var(--green-dark);
}

.status-tag.caution {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}

.status-tag.intervention {
  background: var(--red-light);
  color: var(--red-dark);
}

.calendar-legend {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.blue { background: var(--primary); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.dot.gray { background: var(--text-light); }

/* Day Detail Modal Content */
.day-detail {
  font-size: 0.875rem;
}

.day-detail h4 {
  color: var(--primary);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.day-detail h5 {
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.detail-section {
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--blue);
}

.detail-section.interruption {
  border-color: var(--red);
  background: var(--red-light);
}

.detail-section.rationale {
  border-color: var(--purple);
  background: var(--purple-light);
}

.detail-section.status-success {
  border-color: var(--green);
  background: var(--green-light);
}

.detail-section.status-caution {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.detail-section.status-intervention {
  border-color: var(--red);
  background: var(--red-light);
}

.detail-notes {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

.evidence-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
  font-size: 0.8125rem;
}

.evidence-stats .effectiveness {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: var(--space-sm);
  background: white;
  border-radius: var(--radius-sm);
}

.evidence-notes {
  font-style: italic;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

.no-evidence {
  color: var(--text-light);
  text-align: center;
  padding: var(--space-md);
}

.tradeoff {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ============================================================
   EVIDENCE TRACKING (ACCORDION STYLE)
============================================================ */

.evidence-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.badge {
  background: var(--primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: var(--space-sm);
}

.empty-state-inline {
  padding: var(--space-xl);
  text-align: center;
}

.evidence-recent {
  margin-bottom: var(--space-lg);
}

.evidence-accordion {
  border-top: 2px solid var(--border);
  padding-top: var(--space-md);
}

.accordion-toggle {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms;
}

.accordion-toggle:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 200ms;
}

.accordion-content {
  margin-top: var(--space-md);
  animation: accordionOpen 300ms ease-out;
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 800px;
  }
}

.evidence-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}

/* Custom Scrollbar */
.evidence-scroll::-webkit-scrollbar {
  width: 8px;
}

.evidence-scroll::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.evidence-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.evidence-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.evidence-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: all 200ms;
}

.evidence-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.evidence-item:last-child {
  margin-bottom: 0;
}

.evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.evidence-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.evidence-right {
  display: flex;
  align-items: center;
}

.evidence-date {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.evidence-standard {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.evidence-score {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.evidence-score.high {
  background: var(--green-light);
  color: var(--green-dark);
}

.evidence-score.medium {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}

.evidence-score.low {
  background: var(--red-light);
  color: var(--red-dark);
}

.evidence-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.evidence-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text);
}

.evidence-stats span {
  font-weight: 500;
}

.evidence-notes {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--blue-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-medium);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--primary-dark);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 300ms ease-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

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

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

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

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

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

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-sm);
  }

  .calendar-day {
    min-height: 100px;
    padding: var(--space-sm);
  }

  .day-date {
    font-size: 1.25rem;
  }

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

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

  .stat-pills {
    flex-direction: column;
  }

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

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

  .metrics-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .calendar-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PRINT STYLES
============================================================ */

@media print {
  .header-actions,
  .config-panel,
  .footer,
  .btn-primary,
  .btn-secondary,
  .calendar-controls {
    display: none;
  }

  .card {
    page-break-inside: avoid;
  }

  body {
    background: white;
  }

  .evidence-grid {
    max-height: none;
    overflow: visible;
  }
}

/* ============================================================
   PREMIUM INTERACTIVE CALENDAR STYLES
============================================================ */

.premium-calendar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

/* ============================================================
   CALENDAR HEADER & TOOLBAR
============================================================ */

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.view-switcher {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 150ms ease;
}

.view-btn:hover {
  background: var(--white);
  color: var(--text);
}

.view-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-today {
  padding: 8px 16px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

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

.current-period {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  min-width: 200px;
  text-align: center;
}

.calendar-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ============================================================
   DAILY VIEW
============================================================ */

.daily-view {
  min-height: 500px;
}

.daily-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
}

.daily-header h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.daily-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.daily-main {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.daily-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================================
   WEEKLY VIEW
============================================================ */

.weekly-view {
  min-height: 400px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.week-day-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 200px;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
}

.week-day-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.week-day-card.today {
  background: #fef3c7;
  border-color: var(--yellow);
  border-width: 3px;
}

.week-day-card.past {
  background: var(--gray-50);
  opacity: 0.9;
}

.week-day-card.non-instructional {
  background: var(--gray-100);
  border-style: dashed;
  opacity: 0.7;
}

.week-day-card.interruption {
  background: #fee2e2;
  border-color: var(--red);
}

.week-day-card.editable {
  border-style: dashed;
  border-color: var(--primary);
}

.week-day-card.editable:hover {
  background: #eff6ff;
}

/* ============================================================
   DAY CARD COMPONENTS
============================================================ */

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.day-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.today-indicator {
  background: var(--yellow);
  color: var(--text);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.complete-badge {
  width: 24px;
  height: 24px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.day-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.instructional-display,
.interruption-display,
.no-instruction-display,
.planned-display {
  text-align: center;
  padding: var(--space-md);
}

.day-standard-badge {
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.day-focus-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-top: 4px;
}

.interruption-display .int-icon,
.no-instruction-display .no-inst-icon,
.planned-display .planned-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
}

.interruption-display .int-label,
.no-instruction-display .no-inst-label,
.planned-display .planned-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
}

/* ============================================================
   STATUS BADGES (CLICKABLE)
============================================================ */

.day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1px solid transparent;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.status-badge.success {
  background: #d1fae5;
  color: var(--green);
  border-color: var(--green);
}

.status-badge.caution {
  background: #fef3c7;
  color: #d97706;
  border-color: #fbbf24;
}

.status-badge.intervention {
  background: #fee2e2;
  color: var(--red);
  border-color: var(--red);
}

.status-badge.quick-win {
  background: #dbeafe;
  color: var(--primary);
  border-color: var(--primary);
}

.status-badge.risk {
  background: #fee2e2;
  color: var(--red);
  border-color: var(--red);
}

.status-badge.missing-data {
  background: var(--gray-100);
  color: var(--text-medium);
  border-color: var(--gray-300);
}

.status-badge.trend {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #a78bfa;
}

.badge-icon {
  font-size: 0.875rem;
}

.badge-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   MONTHLY VIEW
============================================================ */

.monthly-view {
  min-height: 500px;
}

.month-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.month-day-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm);
}

.month-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.month-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-sm);
}

.month-day-cell {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.month-day-cell:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.month-day-cell.empty {
  background: var(--gray-50);
  cursor: default;
}

.month-day-cell.today {
  background: #fef3c7;
  border-color: var(--yellow);
  border-width: 2px;
}

.month-day-cell.past {
  opacity: 0.7;
}

.month-day-cell.non-instructional {
  background: var(--gray-100);
  opacity: 0.6;
}

.month-day-num {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: auto;
}

.day-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.day-indicator.success {
  background: var(--green);
  color: var(--white);
}

.day-indicator.caution {
  background: var(--yellow);
  color: var(--text);
}

.day-indicator.intervention {
  background: var(--red);
  color: var(--white);
}

.day-indicator.interruption {
  background: var(--red);
  color: var(--white);
}

/* ============================================================
   CALENDAR INSIGHTS
============================================================ */

.calendar-insights {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border);
}

.calendar-insights h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.insight-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 150ms ease;
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
}

.insight-card.success {
  border-color: var(--green);
  background: #f0fdf4;
}

.insight-card.warning {
  border-color: var(--yellow);
  background: #fefce8;
}

.insight-card.alert {
  border-color: var(--red);
  background: #fef2f2;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.insight-icon {
  font-size: 1.5rem;
}

.insight-header strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.insight-body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.insight-action-btn {
  padding: 6px 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.insight-action-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   GUIDANCE MODAL
============================================================ */

.guidance-modal .modal-content {
  max-width: 700px;
}

.guidance-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.guidance-content h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.guidance-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.wins-list,
.risks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.win-item,
.risk-item {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--primary);
}

.risk-item.urgent {
  border-left-color: var(--red);
  background: #fef2f2;
}

.risk-item.high {
  border-left-color: #f59e0b;
  background: #fefce8;
}

.win-header,
.risk-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.win-icon,
.risk-icon {
  font-size: 1.25rem;
}

.win-header strong,
.risk-header strong {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.priority-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.priority-badge.urgent {
  background: var(--red);
  color: var(--white);
}

.priority-badge.high {
  background: #f59e0b;
  color: var(--white);
}

.win-action,
.risk-detail {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.win-outcome,
.risk-impact {
  background: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.outcome-label,
.impact-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outcome-value,
.impact-value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 4px;
  display: block;
}

.win-timeframe {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-medium);
}

.risk-mitigation {
  margin-top: var(--space-sm);
}

.mitigation-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mitigation-steps {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: var(--space-md);
  margin: 0;
}

.mitigation-steps li {
  margin-bottom: 4px;
}

.guidance-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.guidance-footer p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-medium);
  font-style: italic;
}

/* ============================================================
   EDIT SCHEDULE MODAL
============================================================ */

.day-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.day-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 150ms ease;
}

.day-checkbox:hover {
  background: var(--gray-50);
}

.day-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.day-checkbox span {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   CALENDAR LEGEND
============================================================ */

.calendar-legend {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.legend-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-medium);
}

.legend-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-item .dot.blue {
  background: var(--primary);
}

.legend-item .dot.yellow {
  background: var(--yellow);
}

.legend-item .dot.gray {
  background: var(--gray-300);
}

.legend-item .dot.red {
  background: var(--red);
}

.legend-item .status-tag {
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

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

@media (max-width: 1200px) {
  .week-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .daily-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .view-switcher,
  .calendar-nav,
  .calendar-actions {
    justify-content: center;
  }
  
  .week-grid {
    grid-template-columns: 1fr;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PREMIUM CALENDAR SYSTEM - COMPLETE STYLING
   Append to bottom of styles.css
============================================================ */

/* Monthly View - Match Weekly Visual Language */
.month-day-cell {
  min-height: 100px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.month-day-cell:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.month-day-cell.empty {
  background: #f9fafb;
  cursor: default;
}

.month-day-cell.empty:hover {
  transform: none;
  box-shadow: none;
}

.month-day-cell.today {
  background: #fef3c7;
  border-color: #f59e0b;
  font-weight: 600;
}

.month-day-cell.past {
  background: #f9fafb;
  opacity: 0.7;
}

.month-day-cell.non-instructional {
  background: #f3f4f6;
}

.month-day-cell.has-plan {
  background: #eff6ff;
}

.month-day-num {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.month-day-cell.today .month-day-num {
  color: #f59e0b;
}

/* FIXED: Standard Badge in Month View */
.month-day-standard {
  background: #3b82f6;
  color: white !important; /* FIXED: White text on blue */
  font-size: 10px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Milestone Badge in Month View */
.month-day-milestone {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Interruption Badge in Month View */
.month-day-interruption {
  background: #ef4444;
  color: white !important;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  text-align: center;
  margin-top: 2px;
}

/* No Class Badge in Month View */
.month-day-no-class {
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
}

/* FIXED: Week Day Standard Badge - White Text */
.day-standard-badge {
  background: #3b82f6;
  color: white !important; /* FIXED: White text on blue */
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* User Override Indicator */
.day-standard-badge.user-override {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  position: relative;
}

.day-standard-badge.user-override::after {
  content: '✏️';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 10px;
}

/* Milestone Badges on Calendar Days */
.day-milestone-badge {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* Risk/Success Evolution Indicators */
.day-trend-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
}

.day-trend-indicator.improving {
  content: '📈';
}

.day-trend-indicator.declining {
  content: '📉';
}

.day-trend-indicator.stable {
  content: '➡️';
}

/* Status Badge - FIXED Colors */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.success {
  background: #d1fae5;
  color: #065f46 !important;
}

.status-badge.caution {
  background: #fef3c7;
  color: #92400e !important;
}

.status-badge.intervention {
  background: #fee2e2;
  color: #991b1b !important;
}

.status-badge.pending {
  background: #f3f4f6;
  color: #4b5563 !important;
}

/* Instructional Display - FIXED Blue Pills */
.instructional-display {
  padding: 8px;
  text-align: center;
}

.instructional-display .day-standard-badge {
  background: #3b82f6;
  color: white !important; /* CRITICAL FIX */
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Planned State - Should Show Standard or "No Assignment" */
.planned-display {
  padding: 12px;
  text-align: center;
  color: #9ca3af;
}

.planned-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.planned-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

/* Empty Assignment State */
.no-assignment-display {
  padding: 12px;
  text-align: center;
  background: #fef3c7;
  border-radius: 6px;
}

.no-assignment-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.no-assignment-label {
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
}

/* Calendar Day Cards - Premium Grade */
.week-day-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 140px;
}

.week-day-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.week-day-card.today {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.week-day-card.past {
  opacity: 0.75;
  background: #f9fafb;
}

.week-day-card.non-instructional {
  background: #f3f4f6;
  border-style: dashed;
  opacity: 0.6;
}

.week-day-card.interruption {
  background: #fee2e2;
  border-color: #ef4444;
}

.week-day-card.editable:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

/* Day Card Header */
.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.day-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-name {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-num {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.today-indicator {
  background: #f59e0b;
  color: white !important;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.complete-badge {
  background: #10b981;
  color: white !important;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Day Card Body */
.day-card-body {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interruption Display */
.interruption-display {
  text-align: center;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

.int-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.int-label {
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
}

/* No Instruction Display */
.no-instruction-display {
  text-align: center;
  padding: 8px;
}

.no-inst-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
  opacity: 0.5;
}

.no-inst-label {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

/* Day Badges Container */
.day-badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* Calendar Legend - Enhanced */
.calendar-legend {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.legend-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
}

.legend-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-item .dot.blue {
  background: #3b82f6;
}

.legend-item .dot.yellow {
  background: #fbbf24;
}

.legend-item .dot.gray {
  background: #9ca3af;
}

.legend-item .dot.red {
  background: #ef4444;
}

.legend-item .dot.green {
  background: #10b981;
}

/* Monthly View Header Row */
.month-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.month-day-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Monthly View Grid */
.month-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.month-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Weekly View Grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 16px;
}

/* Calendar Toolbar */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-switcher {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
}

.view-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: white;
  color: #3b82f6;
}

.view-btn.active {
  background: #3b82f6;
  color: white !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-today {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-today:hover {
  background: #3b82f6;
  color: white !important;
}

.current-period {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  padding: 6px 12px;
  background: #f9fafb;
  border-radius: 6px;
}

.calendar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Risk/Success Evolution Panel */
.evolution-indicators {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.evolution-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.evolution-badge.trend-up {
  background: #d1fae5;
  color: #065f46 !important;
}

.evolution-badge.trend-down {
  background: #fee2e2;
  color: #991b1b !important;
}

.evolution-badge.trend-stable {
  background: #e0f2fe;
  color: #075985 !important;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Chart Empty State */
.chart-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.chart-empty-state .empty-text {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.chart-empty-state .hint {
  font-size: 13px;
  color: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .month-week-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .month-header-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .month-week-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .month-header-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .calendar-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================
   CLASSROOMOS — COMPLETE PRODUCTION STYLES v2.1
   Premium Professional Design • All Components
============================================================ */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #93c5fd;
  --primary-dark: #1e3a8a;
  
  --yellow: #fbbf24;
  --yellow-light: #fef3c7;
  --yellow-dark: #92400e;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --red: #ef4444;
  --red-light: #fee2e2;
  --red-dark: #991b1b;
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #065f46;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  
  --text: #1f2937;
  --text-medium: #6b7280;
  --text-light: #9ca3af;
  
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================================
   HEADER
============================================================ */

.header {
  background: white;
  border-bottom: 2px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-icon {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all 150ms;
}

.btn-icon:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   MAIN
============================================================ */

.main {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 150px);
}

/* ============================================================
   CONFIG PANEL
============================================================ */

.config-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms;
}

.panel-header:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.panel-header h2 {
  color: white;
  font-size: 1.125rem;
  margin: 0 0 4px 0;
}

.panel-header .hint {
  font-size: 0.8125rem;
  opacity: 0.9;
  font-family: var(--font-body);
  font-weight: 400;
}

.toggle {
  font-size: 0.875rem;
  transition: transform 250ms;
}

.config-form.collapsed {
  display: none;
}

.config-form {
  padding: var(--space-xl);
}

.section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.required {
  color: var(--red);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

.field input,
.field select,
.field textarea {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: white;
  transition: all 150ms;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.field textarea {
  resize: vertical;
  min-height: 60px;
}

.requirements-list,
.interruptions-list {
  min-height: 60px;
  margin-bottom: var(--space-md);
}

.empty-text {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.hint {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.interruption-item,
.requirement-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.int-icon {
  font-size: 1.25rem;
}

.int-details,
.req-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.int-date,
.req-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.int-type,
.req-type {
  font-size: 0.6875rem;
  color: var(--text-medium);
  text-transform: uppercase;
}

.int-notes,
.req-name {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.req-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.btn-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 var(--space-sm);
  transition: all 150ms;
}

.btn-remove:hover {
  color: var(--red);
  transform: scale(1.2);
}

.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}

.btn-secondary:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   MODAL
============================================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 200ms ease-out;
}

.modal-content.large {
  max-width: 700px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.modal-hint {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

.effectiveness-preview {
  background: var(--blue-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  border-left: 3px solid var(--primary);
}

.effectiveness-preview h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.effectiveness-preview small {
  color: var(--text-medium);
  font-size: 0.75rem;
}

/* ============================================================
   STATES
============================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.loading-state {
  text-align: center;
  padding: var(--space-2xl);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.error-card {
  background: var(--red-light);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.error-card h3 {
  color: var(--red-dark);
  margin-bottom: var(--space-md);
}

/* ============================================================
   DASHBOARD
============================================================ */

.class-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.class-info h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.stat-pills {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.stat-pill.yellow {
  background: var(--yellow-light);
  color: var(--yellow-dark);
  font-weight: 600;
}

.stat-pill.blue {
  background: var(--blue-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.stat-pill.red {
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 600;
}

.stat-pill.purple {
  background: var(--purple-light);
  color: #5b21b6;
  font-weight: 600;
}

/* ============================================================
   TODAY SNAPSHOT
============================================================ */

.today-snapshot {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.snapshot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 12px var(--space-lg);
}

.snapshot-header h3 {
  color: white;
  font-size: 0.875rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.snapshot-item {
  background: var(--yellow-light);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snapshot-item.warning {
  background: var(--yellow-light);
}

.snapshot-item.success {
  background: var(--green-light);
}

.snapshot-item .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  font-weight: 600;
}

.snapshot-item .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.snapshot-item .sublabel {
  font-size: 0.75rem;
  color: var(--text-medium);
}

/* ============================================================
   DASHBOARD GRID
============================================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================================
   CARDS
============================================================ */

.card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 200ms;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card.priority-card {
  border-color: var(--primary);
  border-width: 3px;
}

.card.win-card {
  border-color: var(--green);
  border-width: 2px;
}

.card.risk-card {
  border-color: var(--yellow);
  border-width: 2px;
}

.card-header {
  padding: 12px var(--space-lg);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-header .icon {
  font-size: 1rem;
}

.card-header h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin: 0;
  font-family: var(--font-body);
}

.card-body {
  padding: var(--space-lg);
}

.block {
  margin-bottom: var(--space-md);
}

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

.block h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.plain-list,
.strategy-list,
.defer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li,
.strategy-list li,
.defer-list li {
  padding: 4px 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.strategy-list li {
  color: var(--primary);
  font-weight: 500;
}

.defer-list li {
  color: var(--yellow-dark);
  font-weight: 500;
}

.outcome-box {
  background: var(--green-light);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
  margin-top: var(--space-md);
}

.outcome-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.outcome-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.outcome-timeframe {
  font-size: 0.75rem;
  color: var(--text-medium);
  margin-top: 4px;
  font-style: italic;
}

.no-risks {
  color: var(--green);
  font-weight: 600;
}

.risk-item {
  padding: var(--space-md);
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--yellow);
  margin-bottom: var(--space-sm);
}

.risk-item:last-child {
  margin-bottom: 0;
}

.risk-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow-dark);
  margin-bottom: 4px;
}

.risk-message {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.risk-impact {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.deadline-box {
  background: var(--blue-light);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.deadline-icon {
  font-size: 1.25rem;
}

.deadline-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.deadline-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.compression-block {
  background: var(--yellow-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--yellow);
}

.compression-stats {
  margin: var(--space-md) 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
}

.stat-row .label {
  color: var(--text-medium);
}

.stat-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.stat-row .value.warning {
  color: var(--yellow-dark);
}

.compression-note {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

/* ============================================================
   SUCCESS METRICS PANEL
============================================================ */

.success-metrics-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.metric-icon {
  font-size: 1.25rem;
}

.metric-header h3 {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--primary);
}

.metric-body {
  font-size: 0.875rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}

.metric-row.highlight {
  background: var(--blue-light);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.metric-row .label {
  color: var(--text-medium);
  font-weight: 500;
}

.metric-row .value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.metric-row .value.success {
  color: var(--green-dark);
}

.metric-row .value.warning {
  color: var(--yellow-dark);
}

.growth-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: var(--space-md) 0;
}

.growth-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  transition: width 500ms ease-out;
}

.metric-status {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.metric-status.success {
  color: var(--green-dark);
}

.metric-status.warning {
  color: var(--yellow-dark);
}

.benchmark-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
  border-radius: var(--radius-sm);
}

.benchmark-item.urgent {
  border-color: var(--red);
  background: var(--red-light);
}

.benchmark-item.warning {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.benchmark-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.benchmark-date,
.benchmark-standards {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.iep-goal-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--purple);
  background: var(--purple-light);
  border-radius: var(--radius-sm);
}

.goal-student {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
}

.goal-text {
  font-size: 0.8125rem;
  margin: 4px 0;
}

.goal-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-medium);
}

.goal-progress .arrow {
  margin: 0 4px;
}

.goal-progress .baseline,
.goal-progress .target {
  font-weight: 600;
  color: var(--purple);
}

/* ============================================================
   DEEP ANALYTICS PANEL
============================================================ */

.analytics-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.analytic-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.analytic-card.success {
  border-color: var(--green);
  background: var(--green-light);
}

.analytic-card.warning {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.analytic-card.danger {
  border-color: var(--red);
  background: var(--red-light);
}

.analytic-card h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.risk-score {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: var(--space-md) 0;
}

.risk-score.success { color: var(--green-dark); }
.risk-score.warning { color: var(--yellow-dark); }
.risk-score.danger { color: var(--red-dark); }

.risk-level {
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.analytic-details {
  font-size: 0.875rem;
}

.analytic-details p {
  margin: var(--space-sm) 0;
}

.analytic-details .warning {
  color: var(--yellow-dark);
  font-weight: 600;
}

.analytic-details .success {
  color: var(--green-dark);
  font-weight: 600;
}

.gap-stat {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--yellow-dark);
  margin: var(--space-md) 0;
}

.prerequisite-box {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

.prereq-label {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.prerequisite-box ul {
  margin-left: var(--space-lg);
  font-size: 0.8125rem;
}

.prerequisite-box li {
  margin: 4px 0;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.alert-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: white;
}

.alert-item.urgent {
  border-left: 3px solid var(--red);
}

.alert-item.warning {
  border-left: 3px solid var(--yellow);
}

.alert-icon {
  font-size: 1.25rem;
}

.alert-content {
  flex: 1;
}

.alert-message {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.alert-action {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.recommendation-item {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: white;
}

.recommendation-item.urgent {
  border-left: 3px solid var(--red);
}

.recommendation-item.high {
  border-left: 3px solid var(--yellow);
}

.recommendation-item.medium {
  border-left: 3px solid var(--blue);
}

.rec-priority {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.recommendation-item.urgent .rec-priority { color: var(--red-dark); }
.recommendation-item.high .rec-priority { color: var(--yellow-dark); }
.recommendation-item.medium .rec-priority { color: var(--primary); }

.rec-text {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.rec-rationale {
  font-size: 0.75rem;
  color: var(--text-medium);
}

.iep-stat {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--purple);
  margin: var(--space-md) 0;
}

/* ============================================================
   PROGRESS TRACKING
============================================================ */

.progress-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-header .header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-header .icon {
  font-size: 1.25rem;
}

.section-header h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-medium);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.chart-container {
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.chart-container h3 {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.chart-container canvas {
  max-height: 280px;
}

.chart-note {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Chart Center Text for Donut Charts */
.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-text .percent {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.chart-center-text .label {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Chart Center Text for Donut Charts */
.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.chart-center-text .percent {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.chart-center-text .label {
  font-size: 0.75rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ============================================================
   INTERACTIVE CALENDAR
============================================================ */

.calendar-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.calendar-section.interactive {
  border: 2px solid var(--primary);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.week-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.calendar-day {
  background: var(--blue-light);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  position: relative; /* For absolute positioned badge */
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.calendar-day:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.calendar-day.today {
  background: var(--yellow-light);
  border-color: var(--yellow);
  border-width: 3px;
}

.calendar-day.past {
  background: #f9fafb;
  border-color: #d1d5db;
  opacity: 0.85;
}

.calendar-day.past .day-date {
  color: var(--text-medium);
}

.past-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.calendar-day.interruption {
  background: var(--red-light);
  border-color: var(--red);
}

.calendar-day.weekend {
  background: #f3f4f6;
  border-color: var(--border);
  opacity: 0.6;
  cursor: default;
}

.calendar-day.weekend:hover {
  transform: none;
  box-shadow: none;
}

.calendar-day.editable {
  border-style: dashed;
}

/* Past Days - Completed Days with Checkmark */
.calendar-day.past {
  background: #f3f4f6;
  border-color: var(--border);
  opacity: 0.85;
}

.past-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.day-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-medium);
}

.day-date {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.day-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.day-content.empty {
  justify-content: center;
  align-items: center;
}

.no-instruction {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
}

.interruption-badge {
  background: white;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--red);
}

.interruption-badge span {
  font-size: 0.75rem;
  color: var(--red-dark);
  font-weight: 600;
}

.day-standard {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.day-strategy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.strategy-icon {
  font-size: 0.875rem;
}

.day-status {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-tag.pending {
  background: var(--bg);
  color: var(--text-medium);
}

.status-tag.success {
  background: var(--green-light);
  color: var(--green-dark);
}

.status-tag.caution {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}

.status-tag.intervention {
  background: var(--red-light);
  color: var(--red-dark);
}

.calendar-legend {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.blue { background: var(--primary); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.dot.gray { background: var(--text-light); }

/* Day Detail Modal Content */
.day-detail {
  font-size: 0.875rem;
}

.day-detail h4 {
  color: var(--primary);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.day-detail h5 {
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.detail-section {
  padding: var(--space-md);
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--blue);
}

.detail-section.interruption {
  border-color: var(--red);
  background: var(--red-light);
}

.detail-section.rationale {
  border-color: var(--purple);
  background: var(--purple-light);
}

.detail-section.status-success {
  border-color: var(--green);
  background: var(--green-light);
}

.detail-section.status-caution {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.detail-section.status-intervention {
  border-color: var(--red);
  background: var(--red-light);
}

.detail-notes {
  font-size: 0.8125rem;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

.evidence-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
  font-size: 0.8125rem;
}

.evidence-stats .effectiveness {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: var(--space-sm);
  background: white;
  border-radius: var(--radius-sm);
}

.evidence-notes {
  font-style: italic;
  color: var(--text-medium);
  margin-top: var(--space-sm);
}

.no-evidence {
  color: var(--text-light);
  text-align: center;
  padding: var(--space-md);
}

.tradeoff {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ============================================================
   EVIDENCE TRACKING (ACCORDION STYLE)
============================================================ */

.evidence-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.badge {
  background: var(--primary);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: var(--space-sm);
}

.empty-state-inline {
  padding: var(--space-xl);
  text-align: center;
}

.evidence-recent {
  margin-bottom: var(--space-lg);
}

.evidence-accordion {
  border-top: 2px solid var(--border);
  padding-top: var(--space-md);
}

.accordion-toggle {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms;
}

.accordion-toggle:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 200ms;
}

.accordion-content {
  margin-top: var(--space-md);
  animation: accordionOpen 300ms ease-out;
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 800px;
  }
}

.evidence-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}

/* Custom Scrollbar */
.evidence-scroll::-webkit-scrollbar {
  width: 8px;
}

.evidence-scroll::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.evidence-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.evidence-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.evidence-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: all 200ms;
}

.evidence-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.evidence-item:last-child {
  margin-bottom: 0;
}

.evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.evidence-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.evidence-right {
  display: flex;
  align-items: center;
}

.evidence-date {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.evidence-standard {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.evidence-score {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.evidence-score.high {
  background: var(--green-light);
  color: var(--green-dark);
}

.evidence-score.medium {
  background: var(--yellow-light);
  color: var(--yellow-dark);
}

.evidence-score.low {
  background: var(--red-light);
  color: var(--red-dark);
}

.evidence-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.evidence-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text);
}

.evidence-stats span {
  font-weight: 500;
}

.evidence-notes {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--blue-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-medium);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--primary-dark);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 300ms ease-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

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

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

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

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

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

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-sm);
  }

  .calendar-day {
    min-height: 100px;
    padding: var(--space-sm);
  }

  .day-date {
    font-size: 1.25rem;
  }

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

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

  .stat-pills {
    flex-direction: column;
  }

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

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

  .metrics-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .calendar-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PRINT STYLES
============================================================ */

@media print {
  .header-actions,
  .config-panel,
  .footer,
  .btn-primary,
  .btn-secondary,
  .calendar-controls {
    display: none;
  }

  .card {
    page-break-inside: avoid;
  }

  body {
    background: white;
  }

  .evidence-grid {
    max-height: none;
    overflow: visible;
  }
}

/* ============================================================
   PREMIUM CALENDAR SYSTEM - COMPLETE FIXES
   All calendar styling with proper text colors and badges
============================================================ */

/* Monthly View - Premium Badges */
.month-day-cell {
  min-height: 100px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.month-day-cell:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.month-day-cell.empty {
  background: #f9fafb;
  cursor: default;
}

.month-day-cell.today {
  background: #fef3c7;
  border-color: #f59e0b;
  font-weight: 600;
}

.month-day-cell.past {
  background: #f9fafb;
  opacity: 0.7;
}

.month-day-cell.non-instructional {
  background: #f3f4f6;
}

.month-day-cell.has-plan {
  background: #eff6ff;
}

.month-day-num {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.month-day-cell.today .month-day-num {
  color: #f59e0b;
}

/* CRITICAL FIX: Month Day Standard Badge - WHITE TEXT */
.month-day-standard {
  background: #3b82f6;
  color: white !important;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 4px;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Month Day Milestone Badge */
.month-day-milestone {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  text-align: center;
  margin-top: 2px;
}

/* Month Day Interruption Badge */
.month-day-interruption {
  background: #ef4444;
  color: white !important;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  text-align: center;
  margin-top: 2px;
}

/* Month Day No Class */
.month-day-no-class {
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
}

/* CRITICAL FIX: Week Day Standard Badge - WHITE TEXT */
.day-standard-badge {
  background: #3b82f6;
  color: white !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.day-standard-badge.user-override {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  position: relative;
}

.day-standard-badge.user-override::after {
  content: '✏️';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 10px;
}

/* Week Day Milestone Badge */
.day-milestone-badge {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* Trend Indicators */
.day-trend-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
  z-index: 10;
}

/* No Assignment State */
.no-assignment-display {
  padding: 12px;
  text-align: center;
  background: #fef3c7;
  border-radius: 6px;
}

.no-assignment-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.no-assignment-label {
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
}

/* Instructional Display - CRITICAL FIX */
.instructional-display {
  padding: 8px;
  text-align: center;
}

.instructional-display .day-standard-badge {
  background: #3b82f6;
  color: white !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.success {
  background: #d1fae5;
  color: #065f46 !important;
}

.status-badge.caution {
  background: #fef3c7;
  color: #92400e !important;
}

.status-badge.intervention {
  background: #fee2e2;
  color: #991b1b !important;
}

.status-badge.pending {
  background: #f3f4f6;
  color: #4b5563 !important;
}

/* Week Day Cards */
.week-day-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 140px;
}

.week-day-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.week-day-card.today {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.week-day-card.past {
  opacity: 0.75;
  background: #f9fafb;
}

.week-day-card.non-instructional {
  background: #f3f4f6;
  border-style: dashed;
  opacity: 0.6;
}

.week-day-card.interruption {
  background: #fee2e2;
  border-color: #ef4444;
}

.week-day-card.editable:hover {
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

/* Day Card Components */
.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.day-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-name {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-num {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.today-indicator {
  background: #f59e0b;
  color: white !important;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.complete-badge {
  background: #10b981;
  color: white !important;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.day-card-body {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.day-badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* Interruption Display */
.interruption-display {
  text-align: center;
  padding: 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

.int-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.int-label {
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
}

/* No Instruction Display */
.no-instruction-display {
  text-align: center;
  padding: 8px;
}

.no-inst-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
  opacity: 0.5;
}

.no-inst-label {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Chart Empty State */
.chart-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.chart-empty-state .empty-text {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.chart-empty-state .hint {
  font-size: 13px;
  color: #9ca3af;
}
/* ============================================================
   PREMIUM CALENDAR FIXES - APPEND TO BOTTOM OF styles.css
   100% Aligned • Production Grade • December 27, 2025
============================================================ */

/* CRITICAL FIX: Blue Pills with WHITE Text */
.day-standard-badge,
.month-day-standard,
.instructional-display .day-standard-badge {
  background: #3b82f6 !important;
  color: white !important; /* CRITICAL: White text on blue */
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Monthly View - Match Weekly Visual Language */
.month-day-cell {
  min-height: 110px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.month-day-cell:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.month-day-cell.empty {
  background: #f9fafb;
  cursor: default;
}

.month-day-cell.empty:hover {
  transform: none;
  box-shadow: none;
}

.month-day-cell.today {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  font-weight: 600;
}

.month-day-cell.past {
  background: #fafafa;
  opacity: 0.8;
}

.month-day-cell.non-instructional {
  background: #f3f4f6;
  border-style: dashed;
}

.month-day-cell.has-plan {
  background: #eff6ff;
}

.month-day-num {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.month-day-cell.today .month-day-num {
  color: #f59e0b;
}

/* Month Day Content - STYLED BADGES */
.month-day-standard {
  background: #3b82f6 !important;
  color: white !important; /* WHITE TEXT */
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 5px;
  text-align: center;
  margin-top: 6px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
  letter-spacing: 0.3px;
}

.month-day-milestone {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.month-day-interruption {
  background: #ef4444;
  color: white !important;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 4px;
}

.month-day-no-class {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  margin-top: 12px;
}

.month-day-unassigned {
  color: #ef4444;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  background: #fee2e2;
  padding: 4px;
  border-radius: 4px;
}

/* Week Day Standard Badge - WHITE TEXT FIX */
.day-standard-badge {
  background: #3b82f6 !important;
  color: white !important; /* CRITICAL FIX */
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.day-standard-badge.user-override {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
  position: relative;
}

.day-standard-badge.user-override::after {
  content: '✏️';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  background: white;
  border-radius: 50%;
  padding: 2px;
}

/* Milestone Badges */
.day-milestone-badge {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(251, 191, 36, 0.3);
}

/* Trend Indicators */
.day-trend-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  z-index: 10;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Status Badges - FIXED Colors */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.status-badge.success {
  background: #d1fae5;
  color: #065f46 !important;
  border: 1px solid #10b981;
}

.status-badge.caution {
  background: #fef3c7;
  color: #92400e !important;
  border: 1px solid #fbbf24;
}

.status-badge.intervention {
  background: #fee2e2;
  color: #991b1b !important;
  border: 1px solid #ef4444;
}

.status-badge.pending {
  background: #f3f4f6;
  color: #4b5563 !important;
  border: 1px solid #d1d5db;
}

/* No Assignment State */
.no-assignment-display {
  padding: 14px;
  text-align: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  border: 2px dashed #f59e0b;
}

.no-assignment-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.no-assignment-label {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Instructional Display - ENSURE WHITE TEXT */
.instructional-display {
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.instructional-display .day-standard-badge {
  background: #3b82f6 !important;
  color: white !important; /* CRITICAL */
  width: 100%;
  max-width: 120px;
}

/* Planned State - REMOVED (Shows Standards Instead) */
.planned-display {
  display: none; /* DEPRECATED */
}

/* Week Day Cards - Premium Grade */
.week-day-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.week-day-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-6px);
}

.week-day-card.today {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.week-day-card.past {
  opacity: 0.75;
  background: #fafafa;
}

.week-day-card.non-instructional {
  background: #f3f4f6;
  border-style: dashed;
  opacity: 0.65;
}

.week-day-card.interruption {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
}

.week-day-card.editable:hover {
  border-color: #8b5cf6;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

/* Day Card Header */
.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.day-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.day-name {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.day-num {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
}

.today-indicator {
  background: #f59e0b;
  color: white !important;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.complete-badge {
  background: #10b981;
  color: white !important;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Day Card Body */
.day-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

/* Interruption Display */
.interruption-display {
  text-align: center;
  padding: 10px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.int-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.int-label {
  font-size: 11px;
  font-weight: 700;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* No Instruction Display */
.no-instruction-display {
  text-align: center;
  padding: 10px;
}

.no-inst-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
  opacity: 0.4;
}

.no-inst-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Day Badges Container */
.day-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

/* Calendar Legend */
.calendar-legend {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.legend-title {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.legend-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-item .dot.blue { background: #3b82f6; }
.legend-item .dot.yellow { background: #fbbf24; }
.legend-item .dot.gray { background: #9ca3af; }
.legend-item .dot.red { background: #ef4444; }
.legend-item .dot.green { background: #10b981; }

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white !important;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Chart Empty State */
.chart-empty-state {
  text-align: center;
  padding: 50px 30px;
  background: #f9fafb;
  border-radius: 10px;
  border: 2px dashed #e5e7eb;
}

.chart-empty-state .empty-text {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 10px;
}

.chart-empty-state .hint {
  font-size: 14px;
  color: #9ca3af;
}

/* Monthly View Grid System */
.month-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.month-day-label {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.month-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.month-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Weekly View Grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* Calendar Toolbar */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.view-switcher {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 5px;
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-btn:hover {
  background: white;
  color: #3b82f6;
}

.view-btn.active {
  background: #3b82f6;
  color: white !important;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-today {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #3b82f6;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-today:hover {
  background: #3b82f6;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.current-period {
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.calendar-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .month-week-row,
  .month-header-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .month-week-row,
  .month-header-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .calendar-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* Federal Holiday Styling */
.month-day-cell.federal-holiday {
  background: #fef3c7;
  border-color: #fbbf24;
}

.week-day-card.federal-holiday {
  background: #fef3c7;
  border-color: #fbbf24;
}

.federal-holiday-badge {
  background: #fbbf24;
  color: #78350f !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* ============================================================
   CLASSROOMOS v2.3 — CSS ADDITIONS FOR LESSON CONTEXT
   Add these styles to your styles.css file
============================================================ */

/* Lesson Context Banner - appears in class info when context is provided */
.lesson-context-banner {
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.context-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.context-label {
  font-weight: 600;
  color: #1e40af;
  flex-shrink: 0;
}

.context-text {
  color: #1e3a8a;
  line-height: 1.5;
}

/* Context highlight in Priority Decision lists */
.context-highlight {
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 4px;
  color: #1e40af;
  font-weight: 500;
  border-left: 3px solid #3b82f6;
  margin-left: 4px;
}

/* Enhanced field hint styling */
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lesson-context-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .context-label::after {
    content: '';
  }
}

/* ============================================================
   CLASSROOMOS v2.3 — PREMIUM EDUCATOR STYLES
   100% Light Theme • Zero Dark Elements • Append to styles.css
   
   PREMIUM PROFESSIONAL DESIGN FOR EDUCATORS
   Rivals Best-in-Class EdTech Platforms
   December 28, 2025 • Production Grade
============================================================ */

/* ============================================================
   AI CONTEXT ANALYSIS - LESSON CONTEXT DISPLAY
   Premium Blue Theme • User Input Section
============================================================ */

.lesson-context-display {
  margin-top: 20px;
  padding: 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-context-display:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.context-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.context-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.context-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.context-user-input {
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #1e3a8a;
  background: white;
  border-radius: 0 0 10px 10px;
  font-weight: 500;
  position: relative;
  min-height: 60px;
}

.context-user-input::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: #bfdbfe;
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
}

.context-user-input::after {
  content: '"';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: #bfdbfe;
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   AI STRATEGIC ANALYSIS - PURPLE PREMIUM THEME
   Intelligence Output Section
============================================================ */

.context-ai-analysis {
  margin-top: 20px;
  padding: 0;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-ai-analysis:hover {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.analysis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.ai-icon {
  font-size: 20px;
  animation: pulse-glow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.ai-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex: 1;
}

/* CONFIDENCE BADGE - Premium Quality Indicator */
.confidence-badge {
  padding: 5px 12px;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.confidence-badge.confidence-high {
  background: #10b981;
  color: white;
}

.confidence-badge.confidence-medium {
  background: #fbbf24;
  color: #78350f;
}

.confidence-badge.confidence-low {
  background: #f59e0b;
  color: white;
}

/* ANALYSIS SUMMARY - Strategic Overview */
.analysis-summary {
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #581c87;
  background: white;
  font-weight: 500;
  border-bottom: 1px solid #e9d5ff;
  position: relative;
}

.analysis-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 0 2px 2px 0;
}

.analysis-summary strong,
.analysis-summary b {
  font-weight: 800;
  color: #6b21a8;
}

/* ============================================================
   RECOMMENDED ADJUSTMENTS - STRUCTURED CARDS
   Time-Bound Execution Guidance
============================================================ */

.analysis-adjustments {
  padding: 24px;
  background: white;
}

.adjustments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e9d5ff;
}

.adjustments-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #6b21a8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-source-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  font-style: italic;
}

.adjustments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ADJUSTMENT ITEM - Premium Card Design */
.adjustment-item {
  position: relative;
  padding: 16px 20px;
  background: #fafafa;
  border-left: 4px solid #8b5cf6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.adjustment-item:hover {
  background: white;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.2);
  transform: translateX(8px);
  border-left-width: 6px;
}

/* URGENT ADJUSTMENT - Yellow Alert */
.adjustment-item.urgent {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
  border-left-width: 5px;
}

.adjustment-item.urgent:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

/* CRITICAL ADJUSTMENT - Red Alert with Pulse */
.adjustment-item.critical {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
  border-left-width: 6px;
  animation: critical-pulse 2.5s ease-in-out infinite;
}

@keyframes critical-pulse {
  0%, 100% {
    border-left-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
  }
  50% {
    border-left-color: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  }
}

.adjustment-item.critical:hover {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

/* ADJUSTMENT ACTION - Main Instruction */
.adjustment-action {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 12px;
}

.adjustment-action strong,
.adjustment-action b {
  font-weight: 800;
  color: #6b21a8;
}

.adjustment-item.urgent .adjustment-action strong,
.adjustment-item.urgent .adjustment-action b {
  color: #92400e;
}

.adjustment-item.critical .adjustment-action strong,
.adjustment-item.critical .adjustment-action b {
  color: #991b1b;
}

/* ADJUSTMENT META - Time & Execution Details */
.adjustment-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.adjustment-item.urgent .adjustment-meta {
  border-top-color: rgba(245, 158, 11, 0.3);
}

.adjustment-item.critical .adjustment-meta {
  border-top-color: rgba(239, 68, 68, 0.3);
}

.adjustment-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.adjustment-execution {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.6;
}

/* ============================================================
   ASSUMPTIONS SECTION - Transparency Footer
   Shows Data Sources for Trust Building
============================================================ */

.analysis-assumptions {
  padding: 18px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-top: 1px solid #e9d5ff;
  border-radius: 0 0 10px 10px;
}

.assumptions-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.assumptions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assumption-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.assumption-tag:hover {
  background: #faf5ff;
  border-color: #8b5cf6;
  color: #6b21a8;
  box-shadow: 0 3px 8px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* ============================================================
   CONTEXT HIGHLIGHT IN PRIORITY DECISION
   Integration with Main Dashboard
============================================================ */

.context-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 6px 14px;
  border-radius: 8px;
  color: #1e40af;
  font-weight: 600;
  border-left: 3px solid #3b82f6;
  margin-left: 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
  transition: all 0.2s ease;
}

.context-highlight:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
  transform: translateX(3px);
}

/* ============================================================
   ENHANCED FIELD HINTS - CLEAN LIGHT THEME
   Educational Guidance Text
============================================================ */

.field-hint {
  display: block;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  background: #f9fafb;
  border-left: 3px solid #e5e7eb;
  border-radius: 6px;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.field-hint:hover {
  background: #f3f4f6;
  border-left-color: #3b82f6;
  color: #374151;
}

.field-hint strong {
  font-weight: 600;
  color: #1f2937;
  font-style: normal;
}

.field-hint code {
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #3b82f6;
  border: 1px solid #e5e7eb;
}

/* ============================================================
   FORM ELEMENTS - CLEAN LIGHT THEME ENFORCEMENT
   100% White Backgrounds • No Dark Mode
============================================================ */

/* Force Light Color Scheme Globally */
:root {
  color-scheme: light only !important;
}

/* All Input Elements - Light Theme */
input,
textarea,
select {
  background: white !important;
  color: #1f2937 !important;
  border: 1.5px solid #e5e7eb !important;
}

input:focus,
textarea:focus,
select:focus {
  background: white !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Placeholder Text - Light Gray */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-style: italic;
}

/* Disabled/Readonly Fields */
input[readonly],
input[disabled],
textarea[readonly],
textarea[disabled],
select[readonly],
select[disabled] {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Dropdown Arrow - Light Theme */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right 0.5rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.5em 1.5em !important;
  padding-right: 2.5rem !important;
}

select option {
  background: white !important;
  color: #1f2937 !important;
}

/* Autofill Fix - Keep Light Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #1f2937 !important;
  border: 1.5px solid #e5e7eb !important;
}

/* ============================================================
   SYSTEM DARK MODE OVERRIDE - CRITICAL
   Prevents OS Dark Mode from Affecting UI
============================================================ */

@media (prefers-color-scheme: dark) {
  * {
    color-scheme: light !important;
  }
  
  body,
  input,
  textarea,
  select,
  button,
  .config-panel,
  .config-form,
  .section,
  .field,
  .modal-content,
  .card,
  .card-body {
    background: white !important;
    color: #1f2937 !important;
  }
  
  input::placeholder,
  textarea::placeholder {
    color: #9ca3af !important;
  }
  
  .field-hint {
    background: #f9fafb !important;
    color: #6b7280 !important;
  }
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   Maintains Premium Quality on All Devices
============================================================ */

@media (max-width: 768px) {
  .lesson-context-display,
  .context-ai-analysis {
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }

  .context-header,
  .analysis-header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .confidence-badge {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .adjustments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .context-label,
  .ai-label {
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .context-user-input,
  .analysis-summary {
    padding: 16px 18px;
    font-size: 13px;
  }

  .context-user-input::before,
  .context-user-input::after {
    font-size: 36px;
  }

  .analysis-adjustments {
    padding: 18px;
  }

  .adjustment-item {
    padding: 14px 16px;
  }

  .adjustment-action {
    font-size: 12px;
  }

  .adjustment-meta {
    gap: 6px;
  }

  .adjustment-time,
  .adjustment-execution {
    font-size: 10px;
  }

  .adjustments-label {
    font-size: 10px;
  }

  .data-source-label {
    font-size: 9px;
  }

  .analysis-assumptions {
    padding: 16px 18px;
  }

  .assumption-tag {
    font-size: 10px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .context-icon,
  .ai-icon {
    font-size: 18px;
  }

  .adjustment-item:hover {
    transform: translateX(4px);
  }

  .context-highlight {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ============================================================
   ACCESSIBILITY - WCAG 2.1 AA COMPLIANT
   High Contrast • Keyboard Navigation • Screen Readers
============================================================ */

/* Focus States for Keyboard Navigation */
.lesson-context-display:focus-within,
.context-ai-analysis:focus-within {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

.adjustment-item:focus-within {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .context-header,
  .analysis-header {
    border-bottom: 3px solid white;
  }

  .adjustment-item {
    border: 2px solid #8b5cf6;
  }

  .confidence-badge {
    border: 2px solid white;
  }
  
  input,
  textarea,
  select {
    border: 2px solid #1f2937 !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .lesson-context-display,
  .context-ai-analysis,
  .adjustment-item,
  .ai-icon,
  .adjustment-item.critical {
    animation: none !important;
    transition: none !important;
  }

  .lesson-context-display:hover,
  .context-ai-analysis:hover,
  .adjustment-item:hover,
  .assumption-tag:hover {
    transform: none !important;
  }
}

/* ============================================================
   PRINT STYLES - PROFESSIONAL DOCUMENTATION
   Clean White Pages • Black Text • Essential Info Only
============================================================ */

@media print {
  .lesson-context-display,
  .context-ai-analysis {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    page-break-inside: avoid;
  }

  .context-header,
  .analysis-header {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .confidence-badge {
    border: 2px solid #000 !important;
  }

  .ai-icon {
    animation: none !important;
  }

  .adjustment-item:hover,
  .assumption-tag:hover {
    transform: none !important;
  }

  .adjustment-item.critical {
    animation: none !important;
    border: 2px solid #000 !important;
  }

  input,
  textarea,
  select {
    border: 1px solid #000 !important;
  }
}

/* ============================================================
   TOOLTIPS - LIGHT THEME ENFORCEMENT
   Clean White Tooltips with Dark Text
============================================================ */

[title]:hover::after,
.tooltip {
  background: white !important;
  color: #1f2937 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================================
   BUTTON CONSISTENCY - LIGHT THEME
   Ensures All Buttons Follow Light Theme
============================================================ */

.btn-secondary {
  background: #f9fafb !important;
  color: #1f2937 !important;
  border: 1px solid #e5e7eb !important;
}

.btn-secondary:hover {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
}

/* ============================================================
   MODAL CONSISTENCY - LIGHT THEME
   All Modals Follow Clean White Design
============================================================ */

.modal-content {
  background: white !important;
  color: #1f2937 !important;
}

.modal-hint {
  color: #6b7280 !important;
  background: transparent !important;
}

/* ============================================================
   END OF PREMIUM EDUCATOR STYLES
   100% Light Theme • Zero Dark Elements • Production Ready
============================================================ */

/* ============================================================
   STRATEGY CONTINUITY LAYER — UI STYLES
   Append to bottom of styles.css
============================================================ */

/* Strategy Drawer */
.strategy-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.strategy-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e40af;
}

.drawer-role-badge {
  padding: 8px 20px;
  margin: 12px 20px;
  background: #f3f4f6;
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
}

.drawer-body {
  flex: 1;
  padding: 20px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.snapshot-card {
  padding: 14px;
  margin-bottom: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.snapshot-card:hover {
  background: #f9fafb;
  border-left-color: #1e40af;
  transform: translateX(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.snapshot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.snapshot-time {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
}

.snapshot-type-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  font-weight: 600;
}

.snapshot-signals {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.signal-pill {
  font-size: 11px;
  padding: 3px 8px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 12px;
  font-weight: 500;
}

.signal-pill.high { background: #fee2e2; color: #991b1b; }
.signal-pill.moderate { background: #fef3c7; color: #92400e; }
.signal-pill.low { background: #dbeafe; color: #1e40af; }
.signal-pill.ahead { background: #d1fae5; color: #065f46; }
.signal-pill.on_track { background: #dbeafe; color: #1e40af; }
.signal-pill.behind { background: #fee2e2; color: #991b1b; }
.signal-pill.strong { background: #d1fae5; color: #065f46; }
.signal-pill.mixed { background: #fef3c7; color: #92400e; }
.signal-pill.needs_support { background: #fee2e2; color: #991b1b; }

.snapshot-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #6b7280;
}

.priority-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #dc2626;
}

.drawer-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.drawer-empty .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.drawer-create-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drawer-create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Strategy View Modal */
.strategy-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.strategy-view-header h3 {
  margin: 0;
  font-size: 20px;
}

.role-badge {
  padding: 6px 12px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.substitute { background: #fef3c7; color: #92400e; }
.role-badge.tutor { background: #d1fae5; color: #065f46; }
.role-badge.coach { background: #e0e7ff; color: #3730a3; }

.strategy-view-body {
  padding: 20px 0;
}

.strategy-section {
  margin-bottom: 24px;
}

.strategy-section h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.strategy-guidance {
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  padding: 16px;
  border-radius: 6px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.strategy-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.meta-item {
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.priority-students-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.priority-students-list li {
  padding: 10px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  margin-bottom: 8px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.priority-students-list strong {
  color: #92400e;
  font-weight: 700;
}

/* Strategy Create Modal */
.priority-student-item {
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
}

.priority-student-item .btn-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.priority-student-item .btn-remove:hover {
  background: #fecaca;
  transform: scale(1.1);
}

.char-count {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  float: right;
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading state for drawer */
.drawer-loading {
  text-align: center;
  padding: 60px 20px;
}

.drawer-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .strategy-drawer {
    width: 100%;
    max-width: 100vw;
  }
  
  .modal-content.large {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ============================================================
   ACCORDION STYLES - PREMIUM EDITION
============================================================ */

.drawer-section-title.accordion,
.drawer-subsection-title.accordion {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.drawer-section-title.accordion:hover,
.drawer-subsection-title.accordion:hover {
  background: #f3f4f6;
}

.accordion-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.accordion-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.collapsed {
  max-height: 0;
}

.drawer-subsection {
  margin-bottom: 16px;
}

.drawer-subsection-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* ============================================================
   MODAL FORCE-CLOSE STATES - v2.6.5
============================================================ */

.modal.closed {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal {
  pointer-events: auto;
}

.modal-content {
  pointer-events: auto;
}

/* Role-aware support level styling */
.support-level-low {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
}

.support-level-partial {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.support-level-full {
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
}

.support-level-meta {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  font-style: italic;
}

.support-note {
  margin-top: 16px;
  padding: 12px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  font-size: 13px;
  color: #92400e;
}

.role-badge-header button:hover {
  background: rgba(255,255,255,0.3);
}

.role-option:hover {
  background: #f9fafb !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

/* ============================================================
   PREMIUM GLOWING DRAWER ICONS - ATTENTION MAGNETS
   Soft Blue Glow • Strategic Intelligence Completion Celebration
   January 2026 • Production Grade • APPEND TO BOTTOM OF STYLES.CSS
============================================================ */

/* ============================================================
   BASE DRAWER ICON GLOW - SOFT BLUE PULSE
   Draws educator attention to Strategy Continuity feature
============================================================ */

.header-actions .btn-icon {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Strategy Drawer Icon - Persistent Soft Blue Glow */
.header-actions .btn-icon.drawer-icon-glow {
  animation: soft-blue-pulse 3s ease-in-out infinite;
}

@keyframes soft-blue-pulse {
  0%, 100% {
    box-shadow: 
      0 0 8px rgba(59, 130, 246, 0.4),
      0 0 16px rgba(59, 130, 246, 0.2),
      inset 0 0 8px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(239, 246, 255, 0.5);
  }
  50% {
    box-shadow: 
      0 0 16px rgba(59, 130, 246, 0.6),
      0 0 24px rgba(59, 130, 246, 0.3),
      0 0 32px rgba(59, 130, 246, 0.1),
      inset 0 0 12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(219, 234, 254, 0.7);
  }
}

/* Hover State - Intensify Glow */
.header-actions .btn-icon.drawer-icon-glow:hover {
  animation: soft-blue-pulse-intense 1.5s ease-in-out infinite;
  transform: translateY(-2px) scale(1.05);
}

@keyframes soft-blue-pulse-intense {
  0%, 100% {
    box-shadow: 
      0 0 12px rgba(59, 130, 246, 0.6),
      0 0 24px rgba(59, 130, 246, 0.4),
      0 0 36px rgba(59, 130, 246, 0.2),
      inset 0 0 12px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.8);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(59, 130, 246, 0.8),
      0 0 32px rgba(59, 130, 246, 0.5),
      0 0 48px rgba(59, 130, 246, 0.3),
      inset 0 0 16px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 1);
  }
}

/* ============================================================
   CELEBRATION GLOW - STRATEGIC INTELLIGENCE COMPLETION
   Triggered after educator completes strategy snapshot
============================================================ */

/* Success Celebration - Green/Gold Glow */
.header-actions .btn-icon.celebration-glow {
  animation: celebration-pulse 2s ease-in-out 3;
  /* Plays 3 times then stops */
}

@keyframes celebration-pulse {
  0% {
    box-shadow: 
      0 0 8px rgba(16, 185, 129, 0.4),
      0 0 16px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(209, 250, 229, 0.5);
    transform: scale(1);
  }
  25% {
    box-shadow: 
      0 0 20px rgba(251, 191, 36, 0.6),
      0 0 32px rgba(251, 191, 36, 0.4),
      0 0 48px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.8);
    background: rgba(254, 243, 199, 0.7);
    transform: scale(1.15);
  }
  50% {
    box-shadow: 
      0 0 24px rgba(16, 185, 129, 0.8),
      0 0 40px rgba(16, 185, 129, 0.5),
      0 0 56px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.9);
    background: rgba(209, 250, 229, 0.8);
    transform: scale(1.2) rotate(5deg);
  }
  75% {
    box-shadow: 
      0 0 20px rgba(251, 191, 36, 0.6),
      0 0 32px rgba(251, 191, 36, 0.4);
    border-color: rgba(251, 191, 36, 0.7);
    background: rgba(254, 243, 199, 0.6);
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    box-shadow: 
      0 0 12px rgba(16, 185, 129, 0.5),
      0 0 20px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(209, 250, 229, 0.4);
    transform: scale(1);
  }
}

/* Evidence Logging Icon - Gentle Purple Glow (when new snapshots exist) */
.header-actions .btn-icon.evidence-available-glow {
  animation: evidence-pulse 4s ease-in-out infinite;
}

@keyframes evidence-pulse {
  0%, 100% {
    box-shadow: 
      0 0 6px rgba(139, 92, 246, 0.3),
      0 0 12px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(237, 233, 254, 0.4);
  }
  50% {
    box-shadow: 
      0 0 12px rgba(139, 92, 246, 0.5),
      0 0 20px rgba(139, 92, 246, 0.25),
      0 0 28px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(237, 233, 254, 0.6);
  }
}

/* ============================================================
   NOTIFICATION BADGE - NEW SNAPSHOTS INDICATOR
   Numerical badge showing unread snapshot count
============================================================ */

.btn-icon-with-badge {
  position: relative;
}

.btn-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 2px 8px rgba(239, 68, 68, 0.4),
    0 0 0 2px white,
    0 0 0 3px rgba(239, 68, 68, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 2px 8px rgba(239, 68, 68, 0.4),
      0 0 0 2px white,
      0 0 0 3px rgba(239, 68, 68, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 
      0 4px 12px rgba(239, 68, 68, 0.6),
      0 0 0 2px white,
      0 0 0 4px rgba(239, 68, 68, 0.5);
  }
}

/* High Priority Badge (5+ new snapshots) */
.btn-icon-badge.high-priority {
  animation: badge-urgent-pulse 1s ease-in-out infinite;
}

@keyframes badge-urgent-pulse {
  0%, 100% {
    transform: scale(1);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  }
  25% {
    transform: scale(1.2);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  50% {
    transform: scale(1.25);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  }
  75% {
    transform: scale(1.2);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
}

/* ============================================================
   DRAWER OPEN STATE - STOP GLOW WHEN ACTIVE
   Prevents visual noise when drawer is already open
============================================================ */

.strategy-drawer.open ~ header .drawer-icon-glow {
  animation: none;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  background: #dbeafe;
}

/* ============================================================
   MOBILE RESPONSIVENESS - SCALE GLOWS APPROPRIATELY
   Ensures effects work on all screen sizes
============================================================ */

@media (max-width: 768px) {
  .btn-icon-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    border-radius: 8px;
  }
  
  @keyframes soft-blue-pulse {
    0%, 100% {
      box-shadow: 
        0 0 6px rgba(59, 130, 246, 0.4),
        0 0 12px rgba(59, 130, 246, 0.2);
      border-color: rgba(59, 130, 246, 0.4);
    }
    50% {
      box-shadow: 
        0 0 12px rgba(59, 130, 246, 0.6),
        0 0 18px rgba(59, 130, 246, 0.3);
      border-color: rgba(59, 130, 246, 0.6);
    }
  }
}

/* ============================================================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   Respects user preference for reduced animations
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .drawer-icon-glow,
  .celebration-glow,
  .evidence-available-glow {
    animation: none !important;
  }
  
  .btn-icon-badge {
    animation: none !important;
  }
  
  .header-actions .btn-icon.drawer-icon-glow {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(219, 234, 254, 0.3);
  }
  
  .btn-icon-badge {
    box-shadow: 
      0 0 0 2px white,
      0 0 0 3px rgba(239, 68, 68, 0.5);
  }
}

/* ============================================================
   PRINT STYLES - REMOVE ALL GLOWS
   Clean professional output for printing
============================================================ */

@media print {
  .drawer-icon-glow,
  .celebration-glow,
  .evidence-available-glow {
    animation: none !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
    background: white !important;
  }
  
  .btn-icon-badge {
    display: none !important;
  }
}

/* ============================================================
   FOCUS STATES - KEYBOARD NAVIGATION
   Enhanced visibility for accessibility
============================================================ */

.header-actions .btn-icon.drawer-icon-glow:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
  animation: none;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.3),
    0 0 12px rgba(59, 130, 246, 0.5);
}

.header-actions .btn-icon.celebration-glow:focus {
  outline: 3px solid #10b981;
  outline-offset: 3px;
}

.header-actions .btn-icon.evidence-available-glow:focus {
  outline: 3px solid #8b5cf6;
  outline-offset: 3px;
}

/* ============================================================
   HIGH CONTRAST MODE - ENSURE VISIBILITY
   Maintains accessibility in high contrast settings
============================================================ */

@media (prefers-contrast: high) {
  .drawer-icon-glow {
    border: 3px solid #3b82f6 !important;
    background: white !important;
  }
  
  .celebration-glow {
    border: 3px solid #10b981 !important;
    background: white !important;
  }
  
  .evidence-available-glow {
    border: 3px solid #8b5cf6 !important;
    background: white !important;
  }
  
  .btn-icon-badge {
    border: 2px solid white !important;
    box-shadow: none !important;
  }
}

/* ============================================================
   DARK MODE OVERRIDE - FORCE LIGHT THEME
   Ensures glows work in light theme only
============================================================ */

@media (prefers-color-scheme: dark) {
  .header-actions .btn-icon {
    background: white !important;
    border-color: #e5e7eb !important;
  }
  
  .drawer-icon-glow {
    background: rgba(239, 246, 255, 0.5) !important;
  }
  
  .celebration-glow {
    background: rgba(209, 250, 229, 0.5) !important;
  }
  
  .evidence-available-glow {
    background: rgba(237, 233, 254, 0.5) !important;
  }
}

/* ============================================================
   TOOLTIP ENHANCEMENT - GLOW CONTEXT
   Explains why icon is glowing
============================================================ */

.drawer-icon-glow[title]::after {
  content: ' (New snapshots available)';
}

.celebration-glow[title]::after {
  content: ' (Strategy saved!)';
}

.evidence-available-glow[title]::after {
  content: ' (Ready to log evidence)';
}

/* ============================================================
   COMPOSITE GLOW STATES - MULTIPLE ACTIVE STATES
   Handles when multiple conditions trigger simultaneously
============================================================ */

/* Drawer glow + badge */
.drawer-icon-glow.btn-icon-with-badge {
  animation: soft-blue-pulse-with-badge 3s ease-in-out infinite;
}

@keyframes soft-blue-pulse-with-badge {
  0%, 100% {
    box-shadow: 
      0 0 10px rgba(59, 130, 246, 0.5),
      0 0 20px rgba(59, 130, 246, 0.25),
      0 0 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(239, 246, 255, 0.6);
  }
  50% {
    box-shadow: 
      0 0 18px rgba(59, 130, 246, 0.7),
      0 0 28px rgba(59, 130, 246, 0.4),
      0 0 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(219, 234, 254, 0.8);
  }
}

/* ============================================================
   PERFORMANCE OPTIMIZATIONS
   GPU acceleration for smooth animations
============================================================ */

.drawer-icon-glow,
.celebration-glow,
.evidence-available-glow,
.btn-icon-badge {
  will-change: transform, box-shadow, border-color, background;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================================
   JAVASCRIPT TRIGGER CLASSES
   Add these classes via JS to activate effects
============================================================ */

/*
USAGE IN JAVASCRIPT:

// Activate drawer glow
document.querySelector('.btn-icon[title*="Strategy"]').classList.add('drawer-icon-glow');

// Activate celebration after snapshot save
const drawerIcon = document.querySelector('.btn-icon[title*="Strategy"]');
drawerIcon.classList.remove('drawer-icon-glow');
drawerIcon.classList.add('celebration-glow');
setTimeout(() => {
  drawerIcon.classList.remove('celebration-glow');
  drawerIcon.classList.add('drawer-icon-glow');
}, 6000); // 3 celebrations × 2s = 6s

// Add notification badge
const wrapper = document.createElement('div');
wrapper.className = 'btn-icon-with-badge';
drawerIcon.parentNode.insertBefore(wrapper, drawerIcon);
wrapper.appendChild(drawerIcon);
const badge = document.createElement('span');
badge.className = 'btn-icon-badge';
badge.textContent = '3'; // number of new snapshots
wrapper.appendChild(badge);

// High priority badge (5+)
if (snapshotCount >= 5) {
  badge.classList.add('high-priority');
}

// Remove badge when drawer opens
wrapper.querySelector('.btn-icon-badge').remove();
*/

/* ============================================================
   VISUAL HIERARCHY ENHANCEMENT
   Ensures glowing icons don't overwhelm other UI elements
============================================================ */

.header-actions .btn-icon:not(.drawer-icon-glow):not(.celebration-glow):not(.evidence-available-glow) {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.header-actions .btn-icon:not(.drawer-icon-glow):not(.celebration-glow):not(.evidence-available-glow):hover {
  opacity: 1;
}

/* Active glow takes visual priority */
.header-actions:has(.drawer-icon-glow) .btn-icon:not(.drawer-icon-glow),
.header-actions:has(.celebration-glow) .btn-icon:not(.celebration-glow),
.header-actions:has(.evidence-available-glow) .btn-icon:not(.evidence-available-glow) {
  opacity: 0.7;
}

/* ============================================================
   ANIMATION TIMING CONTROLS
   CSS custom properties for easy adjustment
============================================================ */

:root {
  --glow-duration: 3s;
  --glow-intensity-soft: 0.4;
  --glow-intensity-medium: 0.6;
  --glow-intensity-strong: 0.8;
  --celebration-duration: 2s;
  --celebration-iterations: 3;
  --badge-pulse-duration: 2s;
}

/* Apply custom properties */
.drawer-icon-glow {
  animation-duration: var(--glow-duration);
}

.celebration-glow {
  animation-duration: var(--celebration-duration);
  animation-iteration-count: var(--celebration-iterations);
}

.btn-icon-badge {
  animation-duration: var(--badge-pulse-duration);
}

/* ============================================================
   END OF PREMIUM GLOWING DRAWER ICONS
   Production Ready • 100% Educator Grade • Fully Responsive
============================================================ */

/* ============================================================
   PREMIUM CARD REDESIGN v3.0.1
   Teacher-Tone Color Differentiation
   Clean, Professional, Executive-Grade Layout
   APPEND THIS TO BOTTOM OF styles.css
============================================================ */

/* ============================================================
   GLOBAL CARD BASE STYLES
============================================================ */

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 20px 0;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

/* ============================================================
   AI SYNTHESIS PANEL - PURPLE GRADIENT
============================================================ */

.ai-synthesis-panel {
  border: 2px solid #8b5cf6 !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15) !important;
  margin: 32px 0 !important;
  overflow: hidden;
}

.ai-synthesis-panel .card-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
  padding: 20px 24px !important;
  margin: -24px -24px 24px -24px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-synthesis-panel .card-header h3 {
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 15px !important;
}

.ai-synthesis-panel .card-header .icon {
  font-size: 22px;
}

.ai-synthesis-panel .card-header .role-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ai-synthesis-panel .card-header .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
  transition: all 0.2s ease;
}

.ai-synthesis-panel .card-header .btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.ai-synthesis-panel .card-body {
  background: #faf5ff;
  padding: 28px !important;
  margin: -24px !important;
  margin-top: 24px !important;
}

.synthesis-content {
  line-height: 1.8;
  color: #581c87;
  font-size: 14px;
}

.synthesis-content h3,
.synthesis-content h4 {
  color: #6b21a8;
  font-weight: 700;
  margin: 20px 0 12px 0;
}

.synthesis-content strong {
  color: #6b21a8;
  font-weight: 700;
}

.synthesis-content p {
  margin: 12px 0;
  color: #581c87;
}

.synthesis-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 16px;
}

.synthesis-meta strong {
  font-weight: 700;
  color: #7c3aed;
}

/* ============================================================
   PRIORITY DECISION CARD - TRAFFIC LIGHT SYSTEM
============================================================ */

.priority-decision {
  border-left: 5px solid #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.priority-decision.moderate {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.priority-decision.high {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.priority-decision h3 {
  color: #065f46;
}

.priority-decision.moderate h3 {
  color: #92400e;
}

.priority-decision.high h3 {
  color: #991b1b;
}

.decision-title {
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
  margin: 16px 0;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.5px;
}

.priority-decision.moderate .decision-title {
  color: #92400e;
  background: rgba(245, 158, 11, 0.1);
}

.priority-decision.high .decision-title {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
}

.decision-reasoning {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin: 16px 0;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #10b981;
}

.priority-decision.moderate .decision-reasoning {
  border-left-color: #f59e0b;
}

.priority-decision.high .decision-reasoning {
  border-left-color: #ef4444;
}

.decision-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.decision-metrics .metric {
  text-align: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.decision-metrics .metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.decision-metrics .metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
}

.priority-decision.moderate .metric-value {
  color: #f59e0b;
}

.priority-decision.high .metric-value {
  color: #ef4444;
}

/* ============================================================
   QUICK WIN CARD - SUCCESS GREEN
============================================================ */

.quick-win {
  border-left: 5px solid #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.quick-win h3 {
  color: #065f46;
}

.win-action {
  font-size: 16px;
  font-weight: 700;
  color: #047857;
  margin: 16px 0;
  padding: 14px 18px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.win-steps {
  margin: 20px 0;
  padding: 0;
}

.win-step {
  padding: 12px 16px;
  margin: 8px 0;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #10b981;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  transition: all 0.2s ease;
}

.win-step:hover {
  background: #f0fdf4;
  transform: translateX(4px);
}

.win-why {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #059669;
  font-weight: 700;
  margin: 20px 0 8px 0;
}

.win-outcome {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  padding: 14px;
  background: white;
  border-radius: 6px;
  margin: 12px 0;
  border-left: 3px solid #10b981;
}

.win-time {
  font-size: 12px;
  color: #6b7280;
  background: white;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

.support-level {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.support-level-normal {
  background: #dbeafe;
  color: #1e40af;
}

.support-level-moderate {
  background: #fef3c7;
  color: #92400e;
}

.support-level-high {
  background: #fee2e2;
  color: #991b1b;
}

.support-note {
  margin-top: 16px;
  padding: 14px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #1e40af;
  font-style: italic;
}

/* ============================================================
   SUBSTITUTE MODE - YELLOW TONES
============================================================ */

.quick-win.substitute-mode {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.quick-win.substitute-mode h3 {
  color: #92400e;
}

.quick-win.substitute-mode .win-action {
  background: rgba(245, 158, 11, 0.15);
  border-left-color: #f59e0b;
  color: #b45309;
}

.quick-win.substitute-mode .win-step {
  border-left-color: #f59e0b;
}

.quick-win.substitute-mode .win-step:hover {
  background: #fffbeb;
}

.quick-win.substitute-mode .win-why {
  color: #d97706;
}

.quick-win.substitute-mode .win-outcome {
  border-left-color: #f59e0b;
}

.substitute-confidence {
  background: #fffbeb !important;
  border-left-color: #f59e0b !important;
  color: #92400e !important;
}

/* ============================================================
   TUTOR MODE - TEAL TONES
============================================================ */

.quick-win.role-tutor {
  border-left-color: #14b8a6;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.quick-win.role-tutor h3 {
  color: #115e59;
}

.quick-win.role-tutor .win-action {
  background: rgba(20, 184, 166, 0.15);
  border-left-color: #14b8a6;
  color: #0f766e;
}

.quick-win.role-tutor .win-step {
  border-left-color: #14b8a6;
}

.quick-win.role-tutor .win-step:hover {
  background: #f0fdfa;
}

/* ============================================================
   COACH MODE - PURPLE TONES
============================================================ */

.quick-win.role-coach {
  border-left-color: #8b5cf6;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.quick-win.role-coach h3 {
  color: #6b21a8;
}

.quick-win.role-coach .win-action {
  background: rgba(139, 92, 246, 0.15);
  border-left-color: #8b5cf6;
  color: #7c3aed;
}

.quick-win.role-coach .win-step {
  border-left-color: #8b5cf6;
}

.quick-win.role-coach .win-step:hover {
  background: #faf5ff;
}

/* ============================================================
   NEXT STEPS CARD - CLEAN PRIORITIZATION
============================================================ */

.next-steps {
  border-left: 5px solid #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.next-steps h3 {
  color: #1e40af;
}

.steps-list {
  margin-top: 16px;
}

.step-item {
  padding: 16px;
  margin: 12px 0;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  transition: all 0.2s ease;
}

.step-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.step-item.priority-high {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.step-item.priority-high:hover {
  background: #fee2e2;
}

.step-item.priority-medium {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.step-item.priority-medium:hover {
  background: #fef3c7;
}

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

.step-priority {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
}

.step-item.priority-high .step-priority {
  background: #fee2e2;
  color: #991b1b;
}

.step-item.priority-medium .step-priority {
  background: #fef3c7;
  color: #92400e;
}

.step-timeline {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.step-action {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.step-detail {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* ============================================================
   RISK FLAGS CARD - WARNING TONES
============================================================ */

.risk-flags {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.risk-flags h3 {
  color: #92400e;
}

.flags-list {
  margin-top: 16px;
}

.flag-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin: 12px 0;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  transition: all 0.2s ease;
}

.flag-item:hover {
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.flag-item.severity-critical {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.flag-item.severity-critical:hover {
  background: #fee2e2;
}

.flag-severity {
  font-size: 20px;
  line-height: 1;
}

.flag-content {
  flex: 1;
}

.flag-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.flag-description {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  line-height: 1.5;
}

.flag-action {
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 4px;
  display: inline-block;
}

.flag-item.severity-critical .flag-action {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
}

.no-risks {
  text-align: center;
  padding: 32px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.no-risks p {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0;
}

/* ============================================================
   GOALS CARD - PROGRESS TONES
============================================================ */

.goals {
  border-left: 5px solid #8b5cf6;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.goals h3 {
  color: #6b21a8;
}

.goal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin: 10px 0;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #e5e7eb;
  transition: all 0.2s ease;
}

.goal-item:hover {
  background: #faf5ff;
  border-left-color: #8b5cf6;
}

.goal-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.goal-value {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  font-family: 'JetBrains Mono', monospace;
}

.goal-value.highlight {
  color: #8b5cf6;
}

.goal-value.success {
  color: #10b981;
}

.goal-value.warning {
  color: #f59e0b;
}

.goal-progress {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
}

.progress-bar {
  height: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
}

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

@media (max-width: 768px) {
  .card {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .card h3 {
    font-size: 12px;
  }
  
  .decision-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   PRINT STYLES - CLEAN PROFESSIONAL OUTPUT
============================================================ */

@media print {
  .card {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
  
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .ai-synthesis-panel .card-header {
    background: #8b5cf6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ============================================================
   END OF PREMIUM CARD STYLES v3.0.1
   PRODUCTION READY - TEACHER-TONE COLOR DIFFERENTIATION
============================================================ */

/* ============================================================
   SECURE LOGIN PAGE STYLES — v3.1.0
   Premium-grade authentication interface
   APPEND TO EXISTING styles.css
============================================================ */

/* ============================================================
   LOGIN PAGE BODY OVERRIDE
   Only applies when .login-page class is present
============================================================ */
body.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
}

/* ============================================================
   LOGIN CONTAINER
============================================================ */
.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   LOGIN HEADER WITH GLOWING C LOGO
============================================================ */
.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 24px 32px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.login-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.login-logo svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.5));
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.5));
  }
  50% {
    filter: drop-shadow(0 8px 30px rgba(59, 130, 246, 0.8));
  }
}

/* Animated pulse ring around C logo */
.login-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.login-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   LOGIN BODY
============================================================ */
.login-body {
  padding: 32px 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* ============================================================
   LOGIN BUTTON
============================================================ */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-login:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-login.loading {
  position: relative;
  color: transparent;
}

.btn-login.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  z-index: 1;
}

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

/* ============================================================
   ERROR MESSAGE
============================================================ */
.error-message {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  animation: slideDown 0.3s ease;
}

.error-message.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   LOGIN FOOTER
============================================================ */
.login-footer {
  background: #f9fafb;
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.login-footer p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.login-footer strong {
  color: #374151;
}

/* ============================================================
   DEMO HINT
============================================================ */
.demo-hint {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.demo-hint strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE DESIGN
============================================================ */
@media (max-width: 480px) {
  .login-header h1 {
    font-size: 26px;
  }

  .login-header p {
    font-size: 12px;
  }

  .login-body {
    padding: 24px 20px;
  }

  .login-logo svg {
    width: 60px;
    height: 60px;
  }

  .login-logo::before {
    width: 80px;
    height: 80px;
  }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
.btn-login:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

.form-group input:focus-visible {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   END OF LOGIN PAGE STYLES
============================================================ */

/* ============================================================
   CLASSROOMOS v8.2.0 — Intent-First Experience Styles
   Append to bottom of styles.css
   All selectors prefixed cos- to prevent collisions.
   Design tone: warm, calm, educator-first — scannable mid-lesson.
============================================================ */

/* ══════════════════════════════════════════════════════
   INTENT SCREEN LAYOUT
══════════════════════════════════════════════════════ */
#cos-intent-screen {
  padding: 16px 0 36px;
}
.cos-intent-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Greeting */
.cos-intent-greet { text-align: center; padding: 6px 0; }
.cos-intent-hi  { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.cos-intent-sub { font-size: 13px; color: #6b7280; }

/* ══════════════════════════════════════════════════════
   INTENT TILES
══════════════════════════════════════════════════════ */
.cos-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .cos-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .cos-tiles { grid-template-columns: 1fr; } }

.cos-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .13s, background .13s, box-shadow .13s;
  line-height: 1;
}
.cos-tile:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  box-shadow: 0 2px 10px rgba(99,102,241,.12);
}
.cos-tile.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: 0 2px 12px rgba(99,102,241,.2);
}
.cos-tile-icon  { font-size: 22px; }
.cos-tile-label { font-size: 13px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.cos-tile-desc  { font-size: 11px; color: #6b7280; line-height: 1.4; }

/* ══════════════════════════════════════════════════════
   ADAPTIVE FORM
══════════════════════════════════════════════════════ */
.cos-af {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.cos-af-inner { padding: 20px 22px; }

.cos-af-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.cos-af-icon    { font-size: 26px; line-height: 1; }
.cos-af-title   { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 3px; }
.cos-af-sub     { font-size: 12px; color: #6b7280; }

.cos-af-fields  { display: flex; flex-direction: column; gap: 14px; }
.cos-af-field   { display: flex; flex-direction: column; gap: 5px; }
.cos-af-lbl     { font-size: 11px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .5px; }
.cos-opt        { font-weight: 400; color: #9ca3af; text-transform: none; }

.cos-af-inp {
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color .12s, background .12s;
}
.cos-af-inp:focus { border-color: #6366f1; background: #fff; }
.cos-af-inp-sm  { max-width: 160px; }

.cos-no-sec { font-size: 12px; color: #6b7280; }
.cos-link-btn { background:none;border:none;color:#6366f1;font-size:12px;font-weight:600;cursor:pointer;padding:0;text-decoration:underline;font-family:inherit; }

.cos-plan-note {
  font-size: 12px; color: #6b7280;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 7px; padding: 8px 12px; margin-top: 10px;
}
.cos-af-err {
  font-size: 12px; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 7px; padding: 8px 12px; margin-top: 8px;
}
.cos-af-loading {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #6b7280;
  padding: 10px 0;
}

.cos-af-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.cos-af-cta {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none; border-radius: 9px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 10px rgba(99,102,241,.28);
  transition: opacity .14s;
  white-space: nowrap;
}
.cos-af-cta:hover    { opacity: .88; }
.cos-af-cta:disabled { opacity: .5; cursor: wait; }
.cos-af-back {
  padding: 10px 16px;
  background: none; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: #6b7280;
  cursor: pointer; transition: all .12s; font-family: inherit;
}
.cos-af-back:hover { background: #f9fafb; color: #374151; }

/* ══════════════════════════════════════════════════════
   PILLS — shared (role / signal / section)
══════════════════════════════════════════════════════ */
.cos-pills     { display: flex; flex-wrap: wrap; gap: 7px; }
.cos-pills-sec { gap: 7px; }
.cos-pill {
  padding: 6px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 12px; font-weight: 600; color: #374151;
  transition: all .12s;
  font-family: inherit;
}
.cos-pill:hover { border-color: #8b5cf6; color: #6d28d9; }
.cos-pill-role.active { border-color: #7c3aed; background: #f5f3ff; color: #6d28d9; }
.cos-pill-sig.active  { border-color: #0891b2; background: #e0f7fa; color: #0369a1; }
.cos-pill-sec.active  { border-color: #6366f1; background: #eef2ff; color: #4338ca; }

/* ══════════════════════════════════════════════════════
   SPINNER
══════════════════════════════════════════════════════ */
.cos-spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid rgba(99,102,241,.15);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: cosSpin .8s linear infinite;
}
@keyframes cosSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   ALWAYS-AVAILABLE BAR
══════════════════════════════════════════════════════ */
.cos-always-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.cos-always-lbl {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap; margin-right: 2px;
}
.cos-always-btn {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .12s;
  border: 1px solid;
}
.cos-btn-log  { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.cos-btn-log:hover  { background: #fef3c7; }
.cos-btn-snap { background: #f0fdf4; border-color: #6ee7b7; color: #065f46; }
.cos-btn-snap:hover { background: #d1fae5; }
.cos-btn-dash { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.cos-btn-dash:hover { background: #dbeafe; }
.cos-btn-adv  { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
.cos-btn-adv:hover  { background: #f1f5f9; }

/* ══════════════════════════════════════════════════════
   RESULT AREA
══════════════════════════════════════════════════════ */
.cos-result {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cos-result-hd {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
}
.cos-result-title { font-size: 14px; font-weight: 700; color: #1f2937; flex: 1; }
.cos-result-ts    { font-size: 10px; color: #9ca3af; }
.cos-cache-badge  { font-size: 10px; background: #f3f4f6; border-radius: 10px; padding: 2px 8px; color: #6b7280; }
.cos-regen-btn {
  padding: 4px 11px;
  background: none; border: 1px solid #e5e7eb; border-radius: 20px;
  font-size: 11px; font-weight: 600; color: #6b7280;
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.cos-regen-btn:hover { border-color: #8b5cf6; color: #7c3aed; }

/* Quick Win cards */
.cos-qw-cards { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cos-qw-card {
  border-left: 4px solid var(--qc, #6366f1);
  border-radius: 0 8px 8px 0;
  background: #fafafa;
  padding: 12px 14px;
}
.cos-qw-title { font-size: 13px; font-weight: 700; color: var(--qc, #6366f1); margin-bottom: 4px; }
.cos-qw-rat   { font-size: 12px; color: #374151; line-height: 1.6; margin-bottom: 7px; }
.cos-qw-steps { margin: 0 0 7px; padding-left: 18px; }
.cos-qw-steps li { font-size: 12px; color: #374151; line-height: 1.6; margin-bottom: 3px; }
.cos-qw-time  { font-size: 10px; color: #9ca3af; }

/* Continuity */
.cos-cont-body  { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.cos-cont-empty { padding: 16px; font-size: 12px; color: #6b7280; line-height: 1.7; }
.cos-cont-date  { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; }
.cos-cont-note  { font-size: 13px; color: #1f2937; background: #f8fafc; border-left: 3px solid #6366f1; border-radius: 0 6px 6px 0; padding: 8px 12px; line-height: 1.6; }
.cos-cont-focus { font-size: 12px; color: #374151; }
.cos-cont-sigs  { display: flex; flex-wrap: wrap; gap: 6px; }
.cos-sig { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.cos-sig-e { background: #fffbeb; color: #92400e; }
.cos-sig-p { background: #eff6ff; color: #1d4ed8; }
.cos-sig-g { background: #f0fdf4; color: #065f46; }

/* Result actions */
.cos-result-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.cos-act-btn {
  padding: 7px 13px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: #374151;
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.cos-act-btn:hover { background: #f5f3ff; border-color: #6366f1; color: #6366f1; }
.cos-act-sec {
  padding: 7px 13px; background: none; border: none;
  font-size: 12px; color: #9ca3af; cursor: pointer;
  margin-left: auto; font-family: inherit;
}
.cos-act-sec:hover { color: #374151; text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 580px) {
  .cos-af-footer  { flex-direction: column; }
  .cos-af-cta     { width: 100%; }
  .cos-always-bar { gap: 6px; }
}

/* END ClassroomOS v8.2.0 styles */