/**
 * Newton Teacher's Aide - Styles
 * The Ultimate Teaching Assistant for HISD NES
 * © 2025-2026 Jared Lewis · Ada Computing Company
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Colors - Newton Theme */
  --navy: #0A1628;
  --navy-light: #1A2744;
  --blue: #1E40AF;
  --blue-light: #3B82F6;
  --sky: #38BDF8;
  --mint: #6EE7B7;
  --verified: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --slate: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --sidebar-width: 260px;
  --header-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition: 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════════ */

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--light);
  color: var(--navy);
  line-height: 1.6;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--sky);
  font-weight: 500;
}

.nav-section {
  padding: 1rem 0.75rem;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: var(--white);
}

.nav-icon {
  font-size: 1.1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 2s infinite;
}

.status-indicator.online .status-dot {
  background: var(--verified);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.version {
  font-size: 0.7rem;
  color: var(--slate);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */

.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-height: 100vh;
}

.view {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

.view-header {
  margin-bottom: 2rem;
}

.view-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.view-description {
  color: var(--slate);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════════ */

.form-container {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.label-hint {
  font-weight: 400;
  color: var(--slate);
  font-size: 0.8rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

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

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.teks-suggestions {
  margin-top: 0.5rem;
}

/* Accommodations */
.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.accommodation-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.accommodation-names {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.accommodation-names:disabled {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  font-family: inherit;
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--light);
  color: var(--navy);
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-search {
  padding: 0.875rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-search:hover {
  background: var(--blue-light);
}

.btn-icon {
  font-size: 1.1rem;
}

/* Info Banner */
.info-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

.info-banner p {
  color: var(--blue);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════════════════════════════ */

.result-container {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.result-container.hidden {
  display: none;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light);
}

.result-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--verified);
  font-weight: 600;
  background: #ECFDF5;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.result-fingerprint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}

.result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LESSON CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */

.lesson-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lesson-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate);
}

.meta-item strong {
  color: var(--navy);
}

.teks-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.teks-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.lesson-objective {
  background: #EFF6FF;
  border-left: 4px solid var(--blue);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.lesson-objective strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.lesson-phase {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.phase-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.phase-icon.opening { background: #DBEAFE; }
.phase-icon.instruction { background: #FEF3C7; }
.phase-icon.guided { background: #D1FAE5; }
.phase-icon.independent { background: #EDE9FE; }
.phase-icon.closing { background: #FCE7F3; }

.phase-title {
  flex: 1;
}

.phase-title h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.phase-title span {
  font-size: 0.8rem;
  color: var(--slate);
}

.phase-duration {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--verified);
  background: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.phase-activities {
  margin-bottom: 1rem;
}

.phase-activities h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.phase-activities ul {
  list-style: none;
  padding-left: 0;
}

.phase-activities li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.phase-activities li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
}

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

.phase-section {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
}

.phase-section h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.phase-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.phase-section li {
  padding: 0.2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ASSESSMENT RESULTS
   ═══════════════════════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--light);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.groups-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.group-card {
  background: var(--light);
  padding: 1.25rem;
  border-radius: 12px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.group-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.group-card.reteach .group-icon {
  background: #FEE2E2;
}

.group-card.approaching .group-icon {
  background: #FEF3C7;
}

.group-card.mastery .group-icon {
  background: #D1FAE5;
}

.group-title {
  font-weight: 700;
  color: var(--navy);
}

.group-count {
  font-size: 0.8rem;
  color: var(--slate);
}

.student-list {
  list-style: none;
}

.student-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.875rem;
}

.student-list li:last-child {
  border-bottom: none;
}

.student-score {
  font-family: var(--font-mono);
  font-weight: 600;
}

.group-recommendation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
  font-size: 0.8rem;
  color: var(--slate);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PLC REPORT
   ═══════════════════════════════════════════════════════════════════════════════ */

.plc-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plc-section {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
}

.plc-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
}

.insight-card.success {
  border-color: var(--verified);
}

.insight-card.attention {
  border-color: var(--warning);
}

.insight-card.concern {
  border-color: var(--danger);
}

.insight-card.action {
  border-color: var(--blue);
}

.insight-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.insight-description {
  font-size: 0.9rem;
  color: var(--slate);
}

.action-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.action-priority {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.action-priority.high {
  background: #FEE2E2;
  color: var(--danger);
}

.action-priority.medium {
  background: #FEF3C7;
  color: #B45309;
}

.action-priority.standard {
  background: #E0E7FF;
  color: var(--blue);
}

.action-content {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.action-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--slate);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEKS BROWSER
   ═══════════════════════════════════════════════════════════════════════════════ */

.search-container {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-bar input {
  flex: 1;
}

.filter-row {
  display: flex;
  gap: 1rem;
}

.filter-row select {
  flex: 1;
}

.teks-grid {
  display: grid;
  gap: 1rem;
}

.teks-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

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

.teks-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.teks-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.teks-meta span {
  font-size: 0.75rem;
  color: var(--slate);
  background: var(--light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.teks-skill {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.teks-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.teks-keyword {
  font-size: 0.7rem;
  background: #EFF6FF;
  color: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SLIDES PREVIEW
   ═══════════════════════════════════════════════════════════════════════════════ */

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

.slide-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}

.slide-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.slide-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.slide-body {
  font-size: 0.75rem;
  color: var(--slate);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   USER GUIDE
   ═══════════════════════════════════════════════════════════════════════════════ */

.guide-content {
  max-width: 800px;
}

.guide-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.guide-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.guide-section p {
  color: var(--slate);
  margin-bottom: 1rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--slate);
  margin: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light);
  border-radius: 12px;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--slate);
  margin: 0;
}

.nes-phases {
  display: grid;
  gap: 1rem;
}

.phase-card {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.phase-card.opening {
  background: #EFF6FF;
  border-color: #3B82F6;
}

.phase-card.instruction {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.phase-card.guided {
  background: #D1FAE5;
  border-color: #10B981;
}

.phase-card.independent {
  background: #EDE9FE;
  border-color: #8B5CF6;
}

.phase-card.closing {
  background: #FCE7F3;
  border-color: #EC4899;
}

.phase-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.phase-card p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
}

.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light);
  font-size: 0.9rem;
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list strong {
  color: var(--blue);
}

.newton-motto {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--verified);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════════════ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--slate);
  padding: 2rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

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

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

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

  .groups-container {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .slides-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
  }

  .sidebar-header,
  .sidebar-footer,
  .nav-label {
    display: none;
  }

  .nav-section {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .nav-item {
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .nav-text {
    display: none;
  }

  .content {
    margin-left: 0;
    margin-bottom: 70px;
    padding: 1rem;
  }

  .view-header h1 {
    font-size: 1.5rem;
  }

  .form-container,
  .result-container,
  .guide-section {
    padding: 1.5rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn-secondary {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

@media print {
  .sidebar,
  .result-actions,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  .content {
    margin: 0;
    padding: 0;
  }

  .result-container {
    box-shadow: none;
    padding: 0;
  }

  .lesson-phase,
  .plc-section {
    page-break-inside: avoid;
  }
}
