/**
 * [AI_NETWORK_MAP & DATA_FLOW]
 * Role: Master Unified Light Liquid Glass Design System Tokens & Component Kit for Dabestan School Platform.
 * Aesthetics: Apple Light Liquid Glass (لیکویید گلس روشن), White Crystal Porcelain, Snell's Law Refraction.
 * Invariants:
 * 1. Default Light Mode: High-luminance crystal surfaces, soft ambient mesh glows.
 * 2. 90/10 Color Discipline: 90% white/crystal monochrome, 10% purposeful primary semantic chroma.
 * 3. Continuous G² squircle curves (pills = 9999px, bento = 24px, inner = 16px).
 * 4. Concentric double-bezel containment with specular top rim highlight (inset 0 1px 0 0 rgba(255,255,255,0.95)).
 * 5. Persian typography: Vazirmatn / System sans-serif with perfect legibility.
 * 6. Official 4-tier qualitative Iranian elementary grading: خیلی خوب (Emerald), خوب (Sky), قابل قبول (Amber), نیازمند تلاش (Rose).
 */

:root {
  /* Canvas & Light Liquid Glass Surfaces */
  --lg-light-bg: #f8fafc;
  --lg-light-bg-subtle: #f1f5f9;
  
  /* Crystal Frosted Glass (Snell's Law η = 1.52) */
  --lg-glass-surface: rgba(255, 255, 255, 0.76);
  --lg-glass-elevated: rgba(255, 255, 255, 0.90);
  --lg-glass-pressed: rgba(241, 245, 249, 0.85);
  
  /* Concentric Crystal Borders */
  --lg-glass-border: rgba(255, 255, 255, 0.90);
  --lg-glass-border-outer: rgba(0, 0, 0, 0.06);
  --lg-glass-border-hover: rgba(99, 102, 241, 0.35);

  /* Typography (High contrast WCAG AAA on light glass) */
  --lg-text-primary: #0f172a;    /* Slate-900 */
  --lg-text-secondary: #334155;  /* Slate-700 */
  --lg-text-muted: #64748b;      /* Slate-500 */
  --lg-text-subtle: #94a3b8;     /* Slate-400 */

  /* 4 Official Qualitative Evaluation Tiers (Light Glass Tuning) */
  --lg-grade-excellent-bg: rgba(16, 185, 129, 0.12);
  --lg-grade-excellent-border: rgba(16, 185, 129, 0.30);
  --lg-grade-excellent-text: #065f46;
  --lg-grade-excellent-active: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --lg-grade-excellent-glow: 0 4px 16px rgba(16, 185, 129, 0.30);

  --lg-grade-good-bg: rgba(14, 165, 233, 0.12);
  --lg-grade-good-border: rgba(14, 165, 233, 0.30);
  --lg-grade-good-text: #0369a1;
  --lg-grade-good-active: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --lg-grade-good-glow: 0 4px 16px rgba(14, 165, 233, 0.30);

  --lg-grade-acceptable-bg: rgba(245, 158, 11, 0.12);
  --lg-grade-acceptable-border: rgba(245, 158, 11, 0.30);
  --lg-grade-acceptable-text: #92400e;
  --lg-grade-acceptable-active: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --lg-grade-acceptable-glow: 0 4px 16px rgba(245, 158, 11, 0.30);

  --lg-grade-effort-bg: rgba(244, 63, 94, 0.12);
  --lg-grade-effort-border: rgba(244, 63, 94, 0.30);
  --lg-grade-effort-text: #9f1239;
  --lg-grade-effort-active: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --lg-grade-effort-glow: 0 4px 16px rgba(244, 63, 94, 0.30);

  /* Continuous Curvatures */
  --lg-radius-pill: 9999px;
  --lg-radius-bento: 24px;
  --lg-radius-inner: 16px;
  --lg-radius-sm: 10px;

  /* Specular Bevel & Refraction */
  --lg-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --lg-shadow-elevated: 0 20px 40px -10px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.98);
  --lg-backdrop-blur: blur(20px) saturate(180%);
}

/* Base Light Canvas */
body.light-liquid-glass {
  background-color: var(--lg-light-bg);
  background-image: 
    radial-gradient(at 15% 15%, rgba(14, 165, 233, 0.07) 0px, transparent 45%),
    radial-gradient(at 85% 12%, rgba(99, 102, 241, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--lg-text-primary);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* ==========================================================================
   1. LIGHT LIQUID GLASS PANELS & BENTO CONTAINERS
   ========================================================================== */
.lg-panel {
  background: var(--lg-glass-surface);
  backdrop-filter: var(--lg-backdrop-blur);
  -webkit-backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid var(--lg-glass-border-outer);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--lg-radius-bento);
  box-shadow: var(--lg-shadow-card);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-panel:hover {
  transform: translateY(-2px);
  border-color: var(--lg-glass-border-hover);
  box-shadow: var(--lg-shadow-elevated);
}

.lg-card {
  background: var(--lg-glass-elevated);
  backdrop-filter: var(--lg-backdrop-blur);
  -webkit-backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--lg-radius-inner);
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.22s ease;
}

.lg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ==========================================================================
   2. 4-LEVEL QUALITATIVE EVALUATION BUTTONS (LIGHT GLASS CHIPS)
   ========================================================================== */
.lg-rating-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lg-rating-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--lg-radius-pill);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  color: var(--lg-text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.lg-rating-chip:hover {
  transform: translateY(-1px) scale(1.02);
  color: var(--lg-text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lg-rating-chip:active {
  transform: translateY(0) scale(0.97);
}

/* 1. خیلی خوب (Very Good) - Emerald */
.lg-rating-chip.chip-excellent,
.lg-rating-chip[data-rating="خیلی خوب"] {
  background: var(--lg-grade-excellent-bg);
  border-color: var(--lg-grade-excellent-border);
  color: var(--lg-grade-excellent-text);
}
.lg-rating-chip.chip-excellent.active,
.lg-rating-chip[data-rating="خیلی خوب"].active {
  background: var(--lg-grade-excellent-active);
  border-color: #059669;
  color: #ffffff !important;
  box-shadow: var(--lg-grade-excellent-glow);
  font-weight: 800;
}

/* 2. خوب (Good) - Sky Blue */
.lg-rating-chip.chip-good,
.lg-rating-chip[data-rating="خوب"] {
  background: var(--lg-grade-good-bg);
  border-color: var(--lg-grade-good-border);
  color: var(--lg-grade-good-text);
}
.lg-rating-chip.chip-good.active,
.lg-rating-chip[data-rating="خوب"].active {
  background: var(--lg-grade-good-active);
  border-color: #0284c7;
  color: #ffffff !important;
  box-shadow: var(--lg-grade-good-glow);
  font-weight: 800;
}

/* 3. قابل قبول (Acceptable) - Warm Amber */
.lg-rating-chip.chip-acceptable,
.lg-rating-chip[data-rating="قابل قبول"] {
  background: var(--lg-grade-acceptable-bg);
  border-color: var(--lg-grade-acceptable-border);
  color: var(--lg-grade-acceptable-text);
}
.lg-rating-chip.chip-acceptable.active,
.lg-rating-chip[data-rating="قابل قبول"].active {
  background: var(--lg-grade-acceptable-active);
  border-color: #d97706;
  color: #ffffff !important;
  box-shadow: var(--lg-grade-acceptable-glow);
  font-weight: 800;
}

/* 4. نیازمند تلاش و آموزش بیشتر (Needs Effort) - Rose */
.lg-rating-chip.chip-effort,
.lg-rating-chip[data-rating="نیازمند تلاش"] {
  background: var(--lg-grade-effort-bg);
  border-color: var(--lg-grade-effort-border);
  color: var(--lg-grade-effort-text);
}
.lg-rating-chip.chip-effort.active,
.lg-rating-chip[data-rating="نیازمند تلاش"].active {
  background: var(--lg-grade-effort-active);
  border-color: #e11d48;
  color: #ffffff !important;
  box-shadow: var(--lg-grade-effort-glow);
  font-weight: 800;
}

/* ==========================================================================
   3. STUDENT BENTO CARD (LIGHT GLASS)
   ========================================================================== */
.lg-student-card {
  background: var(--lg-glass-surface);
  backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--lg-radius-bento);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--lg-shadow-card);
  transition: all 0.25s ease;
}

.lg-student-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lg-shadow-elevated);
}

.lg-avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}

.lg-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
}

/* Attendance Toggle Pill */
.lg-attendance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--lg-radius-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  transition: all 0.18s ease;
}

.lg-attendance-toggle.absent {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #9f1239;
}

/* ==========================================================================
   4. DIGITAL PORTFOLIO & CHILD EMOJI SELF-ASSESSMENT (LIGHT GLASS)
   ========================================================================== */
.lg-portfolio-card {
  background: var(--lg-glass-surface);
  backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--lg-radius-bento);
  overflow: hidden;
  box-shadow: var(--lg-shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
}

.lg-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lg-shadow-elevated);
}

.lg-portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background: #e2e8f0;
  overflow: hidden;
}

.lg-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lg-portfolio-card:hover .lg-portfolio-thumb img {
  transform: scale(1.04);
}

/* Emoji Bar */
.lg-emoji-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--lg-radius-pill);
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.lg-emoji-btn {
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.18s ease;
  user-select: none;
}

.lg-emoji-btn:hover {
  transform: scale(1.25);
}

.lg-emoji-btn.active {
  background: rgba(14, 165, 233, 0.15);
  transform: scale(1.2);
}

/* ==========================================================================
   5. PBIS CRYSTAL ACHIEVEMENT BADGES (LIGHT GLASS)
   ========================================================================== */
.lg-pbis-badge {
  background: var(--lg-glass-surface);
  backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--lg-radius-bento);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--lg-shadow-card);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lg-pbis-badge:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 14px 32px rgba(234, 179, 8, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.lg-badge-medal-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(254, 240, 138, 0.6));
  border: 2px solid rgba(234, 179, 8, 0.5);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
}

/* ==========================================================================
   6. SAFE DISMISSAL & CARLINE STATUS (LIGHT GLASS)
   ========================================================================== */
.lg-dismissal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--lg-radius-pill);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: var(--lg-backdrop-blur);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.lg-dismissal-pill.waiting {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.lg-dismissal-pill.called {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #0369a1;
  animation: lgLightPulse 1.8s infinite;
}

.lg-dismissal-pill.picked_up {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
}

@keyframes lgLightPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(1.02); }
}

/* ==========================================================================
   7. INPUTS & FORM CONTROLS (LIGHT GLASS)
   ========================================================================== */
.lg-input-field {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--lg-backdrop-blur);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--lg-radius-inner);
  padding: 10px 16px;
  color: var(--lg-text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.lg-input-field:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.lg-input-field::placeholder {
  color: var(--lg-text-subtle);
}

/* ==========================================================================
   8. EXTENDED LIGHT LIQUID GLASS UI COMPONENTS (DOMAINS 1-9)
   ========================================================================== */
.lg-nav-capsule {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.05);
}

.lg-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
}

.lg-tab-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lg-tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}
.lg-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.lg-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: lgLightPulse 1.5s infinite;
}

.lg-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.lg-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.lg-notif-bell {
  position: relative;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f43f5e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg-btn-action {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}
.lg-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.lg-btn-primary {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lg-btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lg-btn-ghost {
  background: transparent;
  color: #64748b;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
}

.lg-btn-ai {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.lg-term-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 9999px;
}
.lg-term-switch button {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.lg-term-switch button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.lg-id-tag {
  font-family: monospace;
  font-size: 10px;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 6px;
}

.lg-stars-pill {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.lg-progress-wrap {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}
.lg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  border-radius: 9999px;
}

.lg-counter-chip {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}

.lg-badge-ribbon {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.lg-table-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease;
}
.lg-table-row:hover {
  background: rgba(14, 165, 233, 0.04);
}
.sticky-col {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 10;
  box-shadow: -1px 0 0 0 rgba(0, 0, 0, 0.06);
}

.lg-sida-header, .lg-sida-info-box, .lg-subject-card, .lg-narrative-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
}

.lg-homework-card, .lg-counselor-card, .lg-event-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
}

.lg-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
}
.lg-msg-bubble.teacher {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #0369a1;
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}
.lg-msg-bubble.parent {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.lg-guardian-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.lg-plate-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
}

.lg-job-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  text-align: center;
}
.lg-job-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}

.lg-select-field {
  width: 100%;
  min-height: 40px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
}

.lg-textarea-field {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 12px;
}


/* ==========================================================================
   10. SPECIALIZED STYLES FOR 1:1 EXACT AI CONCEPT SHEET REPLICAS
   ========================================================================== */

/* --- 10.1 3D Crystal PBIS Medals (light_pbis_sheet.jpg) --- */
.crystal-medal-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crystal-medal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.crystal-medal-gem {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}
.crystal-medal-gem.diamond {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e0f2fe 50%, #bae6fd 100%);
  border: 2px solid #7dd3fc;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28), inset 0 3px 6px #fff;
}
.crystal-medal-gem.emerald {
  background: radial-gradient(circle at 35% 30%, #ecfdf5 0%, #6ee7b7 50%, #10b981 100%);
  border: 2px solid #34d399;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28), inset 0 3px 6px #fff;
}
.crystal-medal-gem.gold {
  background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #fcd34d 50%, #f59e0b 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28), inset 0 3px 6px #fff;
}
.crystal-medal-gem.ruby {
  background: radial-gradient(circle at 35% 30%, #fff1f2 0%, #fda4af 50%, #f43f5e 100%);
  border: 2px solid #fb7185;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28), inset 0 3px 6px #fff;
}
.crystal-medal-gem.sapphire {
  background: radial-gradient(circle at 35% 30%, #eef2ff 0%, #a5b4fc 50%, #6366f1 100%);
  border: 2px solid #818cf8;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28), inset 0 3px 6px #fff;
}
.crystal-ribbon-tail {
  width: 28px;
  height: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
  margin: -6px auto 10px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 50% 70%, 15% 100%);
}
.streak-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  border: 1px solid #fdba74;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15);
}

/* --- 10.2 Safe Dismissal & Carline Board (light_dismissal_sheet.jpg) --- */
.carline-board-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.carline-lane-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}
.carline-lane-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
}
.carline-lane-badge {
  background: #0284c7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  shrink: 0;
}
.iran-license-plate {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  background: #f8fafc;
  border: 2px solid #0f172a;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.plate-flag {
  background: #003399;
  color: #ffffff;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  border-right: 1.5px solid #0f172a;
}
.plate-numbers {
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 2px;
}
.plate-city {
  background: #e2e8f0;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  border-left: 1.5px solid #0f172a;
  text-align: center;
}
.guardian-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
}

/* --- 10.3 3D Emoji Child Self-Assessment (light_portfolio_sheet.jpg) --- */
.child-reflection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 10px 14px;
}
.child-emoji-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.child-emoji-btn:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  color: #0f172a;
}
.child-emoji-btn.active-great {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.child-emoji-btn.active-good {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.child-emoji-btn.active-practice {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.teacher-approval-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px dashed rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

/* --- 10.4 Student Attendance Radial Progress Ring (light_student_bento_sheet.jpg) --- */
.radial-progress-ring-box {
  width: 68px;
  height: 68px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radial-progress-ring-box svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.radial-ring-bg {
  stroke: rgba(0, 0, 0, 0.08);
  fill: none;
}
.radial-ring-val {
  stroke: #10b981;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.radial-ring-label {
  position: absolute;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}
.att-pill-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9999px;
  gap: 2px;
}
.att-pill-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}
.att-pill-btn.active-present {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.att-pill-btn.active-late {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.att-pill-btn.active-absent {
  background: #f43f5e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.3);
}

/* --- 10.5 Official Sida Report Card Document Certificate (light_report_card_sheet.jpg) --- */
.sida-official-certificate {
  background: #ffffff;
  border: 2px solid #0f172a;
  outline: 1.5px solid #cbd5e1;
  outline-offset: 4px;
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}
.sida-certificate-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sida-legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin: 14px 0;
  text-align: center;
}
.sida-legend-table th, .sida-legend-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
}
.sida-legend-table th {
  background: #f8fafc;
  font-weight: 800;
}
.sida-official-seal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px dashed #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 1.3;
  margin: 0 auto;
  opacity: 0.85;
}
