/* TeachUs Design System — Glass Morphism + Light & Dark */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-body: linear-gradient(145deg, #dde8ff 0%, #f0eaff 30%, #e8f4ff 65%, #f5f0ff 100%);
  --bg-body-solid: #eef2ff;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(200, 210, 240, 0.85);
  --glass-border-subtle: rgba(160, 175, 220, 0.55);
  --glass-blur: blur(22px);
  --glass-shadow: 0 8px 32px rgba(37, 99, 235, 0.10), 0 1.5px 6px rgba(37,99,235,0.06), inset 0 1px 0 rgba(255,255,255,0.85);

  /* Cards */
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(190, 200, 230, 0.75);
  --card-highlight: rgba(255, 255, 255, 0.40);
  --card-shadow: 0 4px 24px rgba(37,99,235,0.09), 0 1px 4px rgba(37,99,235,0.07), inset 0 1px 0 rgba(255,255,255,0.80);

  /* Text */
  --text-primary: #0f1629;
  --text-secondary: #3a3f52;
  --text-muted: #5c6178;

  /* Surfaces */
  --sidebar-bg: rgba(255, 255, 255, 0.88);
  --nav-bg: rgba(255, 255, 255, 0.90);
  --input-bg: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(210, 218, 245, 0.72);

  /* Misc */
  --shadow-color: rgba(37, 99, 235, 0.10);
  --nav-active-bg: linear-gradient(90deg, rgba(213, 228, 248, 0.85) 0%, rgba(238, 243, 252, 0.70) 100%);
  --chart-grid: rgba(37, 99, 235, 0.05);
  --stat-accent: #2563eb;
}

html.dark {
  /* Backgrounds */
  --bg-body: linear-gradient(145deg, #04091a 0%, #0a1128 30%, #070e20 65%, #0c0f1e 100%);
  --bg-body-solid: #070e1c;

  /* Glass */
  --glass-bg: rgba(12, 22, 48, 0.68);
  --glass-bg-strong: rgba(16, 28, 58, 0.85);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-subtle: rgba(80, 120, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 1.5px 6px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.07);

  /* Cards */
  --card-bg: rgba(13, 22, 46, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-highlight: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.40), 0 1px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);

  /* Text */
  --text-primary: #e2e8f8;
  --text-secondary: #8fa0c4;
  --text-muted: #546080;

  /* Surfaces */
  --sidebar-bg: rgba(10, 18, 40, 0.80);
  --nav-bg: rgba(6, 12, 30, 0.82);
  --input-bg: rgba(18, 28, 56, 0.70);
  --surface-muted: rgba(25, 38, 72, 0.60);

  /* Misc */
  --shadow-color: rgba(0, 0, 0, 0.40);
  --nav-active-bg: linear-gradient(90deg, rgba(30, 60, 120, 0.65) 0%, rgba(18, 32, 72, 0.45) 100%);
  --chart-grid: rgba(96, 165, 250, 0.07);
}

/* ─── Body ───────────────────────────────────────────────────── */
body {
  background: var(--bg-body);
  min-height: 100vh;
  color: var(--text-primary);
  transition: background 0.4s ease, color 0.3s ease;
}

/* Ambient orb layer applied to every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(59, 130, 246, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
}

html.dark body::before {
  background:
    radial-gradient(ellipse 55% 50% at 10% 15%, rgba(79, 70, 229, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 88% 78%, rgba(37, 99, 235, 0.20) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 55% 45%, rgba(139, 92, 246, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 30% 80%, rgba(6, 182, 212, 0.10) 0%, transparent 60%);
}

/* ─── Light mode contrast improvements ─────────────────────── */
html:not(.dark) .text-on-surface           { color: var(--text-primary) !important; }
html:not(.dark) .text-on-surface-variant   { color: var(--text-secondary) !important; }
html:not(.dark) .text-outline              { color: var(--text-muted) !important; }

html:not(.dark) .bg-surface-container-low  { background-color: rgba(238, 241, 255, 0.95) !important; }
html:not(.dark) .bg-surface-container      { background-color: rgba(228, 233, 255, 0.92) !important; }
html:not(.dark) .bg-surface                { background-color: rgba(248, 249, 255, 0.95) !important; }
html:not(.dark) .bg-surface-container-lowest { background-color: rgba(255, 255, 255, 0.98) !important; }

html:not(.dark) .border-outline-variant\/20,
html:not(.dark) .border-outline-variant\/30 { border-color: rgba(120, 130, 170, 0.35) !important; }
html:not(.dark) .border-outline-variant\/10  { border-color: rgba(120, 130, 170, 0.25) !important; }
html:not(.dark) .border-outline-variant       { border-color: rgba(120, 130, 170, 0.45) !important; }
html:not(.dark) .hover\:bg-surface-container-low:hover { background-color: rgba(225, 230, 255, 0.95) !important; }

html:not(.dark) .bg-surface-container-low\/60 { background-color: rgba(235, 238, 255, 0.92) !important; }
html:not(.dark) .bg-surface-container-low\/50 { background-color: rgba(238, 241, 255, 0.90) !important; }
html:not(.dark) .bg-surface-container-low\/40 { background-color: rgba(240, 243, 255, 0.88) !important; }
html:not(.dark) .hover\:bg-surface-container-low\/40:hover { background-color: rgba(225, 232, 255, 0.95) !important; }

html:not(.dark) table thead tr { background-color: rgba(232, 236, 255, 0.95) !important; }
html:not(.dark) table thead th { color: #3a4060 !important; border-color: rgba(120, 130, 170, 0.30) !important; font-weight: 700; }
html:not(.dark) table tbody td { color: var(--text-primary); }
html:not(.dark) table tbody tr { border-color: rgba(120, 130, 170, 0.22) !important; }

html:not(.dark) input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']),
html:not(.dark) textarea,
html:not(.dark) select {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: rgba(120, 130, 170, 0.40);
}

html:not(.dark) input:not([type='submit']):not([type='button'])::placeholder,
html:not(.dark) textarea::placeholder { color: var(--text-muted); }

html:not(.dark) .bg-purple-100  { background-color: rgba(147, 51, 234, 0.12) !important; }
html:not(.dark) .text-purple-700 { color: #6b21a8 !important; }
html:not(.dark) .text-emerald-700 { color: #047857 !important; }
html:not(.dark) .text-blue-700   { color: #1d4ed8 !important; }
html:not(.dark) .text-red-500    { color: #dc2626 !important; }
html:not(.dark) .text-red-600    { color: #dc2626 !important; }

/* Keep card content above glass highlight overlays */
.card-3d > *,
.glass-card > *,
.ai-card > *,
.stat-3d > *,
.ai-glow-card > *,
.confirm-dialog-panel > * {
  position: relative;
  z-index: 1;
}

/* ─── Tailwind token overrides in dark mode ────────────────── */
html.dark .text-on-surface           { color: var(--text-primary) !important; }
html.dark .text-on-surface-variant   { color: var(--text-secondary) !important; }
html.dark .text-outline              { color: var(--text-muted) !important; }
html.dark .bg-surface-container-low  { background-color: rgba(18, 28, 56, 0.70) !important; }
html.dark .bg-surface-container      { background-color: rgba(25, 38, 72, 0.60) !important; }
html.dark .bg-surface                { background-color: rgba(10, 18, 40, 0.80) !important; }
html.dark .bg-surface-container-lowest { background-color: rgba(6, 12, 28, 0.75) !important; }

html.dark .border-outline-variant\/20,
html.dark .border-outline-variant\/30 { border-color: rgba(80,100,150, 0.30) !important; }
html.dark .border-outline-variant\/10  { border-color: rgba(80,100,150, 0.20) !important; }
html.dark .border-outline-variant       { border-color: rgba(80,100,150, 0.35) !important; }
html.dark .hover\:bg-surface-container-low:hover { background-color: rgba(25, 40, 75, 0.70) !important; }

/* opacity variant overrides */
html.dark .bg-surface-container-low\/60 { background-color: rgba(18, 28, 56, 0.68) !important; }
html.dark .bg-surface-container-low\/50 { background-color: rgba(18, 28, 56, 0.58) !important; }
html.dark .bg-surface-container-low\/40 { background-color: rgba(18, 28, 56, 0.48) !important; }
html.dark .hover\:bg-surface-container-low\/40:hover { background-color: rgba(28, 42, 78, 0.65) !important; }

/* Table dark mode */
html.dark table thead tr { background-color: rgba(14, 22, 48, 0.80) !important; }
html.dark table thead th { color: #8fa0c4 !important; border-color: rgba(80,100,150,0.25) !important; }
html.dark table tbody td { color: var(--text-primary); }
html.dark table tbody tr { border-color: rgba(80,100,150,0.18) !important; }

/* Inputs in dark mode */
html.dark input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']),
html.dark textarea,
html.dark select {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: rgba(80,100,160,0.25);
}

html.dark input:not([type='submit']):not([type='button'])::placeholder,
html.dark textarea::placeholder { color: var(--text-muted); }

html.dark .bg-white {
  background-color: rgba(14, 22, 46, 0.80) !important;
  color: var(--text-primary) !important;
}

/* Badge colour fixes */
html.dark .bg-emerald-100  { background-color: rgba(16,185,129,0.15) !important; }
html.dark .text-emerald-700 { color: #34d399 !important; }
html.dark .text-emerald-600 { color: #34d399 !important; }
html.dark .bg-amber-100    { background-color: rgba(245,158,11,0.15) !important; }
html.dark .text-amber-700  { color: #fbbf24 !important; }
html.dark .text-amber-900  { color: #fcd34d !important; }
html.dark .text-amber-800  { color: #fbbf24 !important; }
html.dark .text-amber-600  { color: #fbbf24 !important; }
html.dark .text-amber-300  { color: #fcd34d !important; }
html.dark .text-amber-200  { color: #fde68a !important; }
html.dark .bg-green-100    { background-color: rgba(16,185,129,0.15) !important; }
html.dark .text-green-700  { color: #34d399 !important; }
html.dark .bg-primary\/10  { background-color: rgba(37,99,235,0.18) !important; }
html.dark .bg-red-100      { background-color: rgba(239,68,68,0.15) !important; }
html.dark .text-red-600    { color: #f87171 !important; }
html.dark .text-red-500    { color: #f87171 !important; }
html.dark .bg-blue-100     { background-color: rgba(59,130,246,0.15) !important; }
html.dark .text-blue-700   { color: #93c5fd !important; }

/* ─── Core Glass Card ────────────────────────────────────────── */
.card-3d {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.35s ease, background 0.3s ease;
  position: relative;
  z-index: 1;
}

.card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--card-highlight) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.card-3d:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.15), 0 3px 12px rgba(37,99,235,0.08), inset 0 1px 0 rgba(255,255,255,0.80);
}

html.dark .card-3d:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.50), 0 3px 12px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ─── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── AI Card ────────────────────────────────────────────────── */
.ai-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(37,99,235,0.6), transparent);
  pointer-events: none;
}

.ai-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 45%);
  pointer-events: none;
}

.ai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(37,99,235,0.18), 0 4px 16px rgba(37,99,235,0.10), inset 0 1px 0 rgba(255,255,255,0.75);
}

html.dark .ai-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ─── AI Glow Card ───────────────────────────────────────────── */
.ai-glow-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.3s ease;
  z-index: 1;
}

.ai-glow-card::before { display: none; }

/* ─── Stat Card ──────────────────────────────────────────────── */
.stat-3d {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.stat-3d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-accent,#2563eb), rgba(99,102,241,0.6));
  border-radius: 3px 3px 0 0;
}

.stat-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.stat-3d:hover { transform: translateY(-4px) scale(1.02); }

/* ─── Navbar / Sidebar ───────────────────────────────────────── */
.nav-3d {
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-subtle);
  box-shadow: 0 2px 20px var(--shadow-color);
  transition: background 0.3s ease;
  position: relative;
  z-index: 50;
}

.sidebar-3d {
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border-subtle);
  box-shadow: 4px 0 32px var(--shadow-color);
  transition: background 0.3s ease;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-3d {
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 0 rgba(0,50,130,0.30), 0 6px 20px rgba(37,99,235,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(6px);
}

.btn-3d:hover  { transform: translateY(-2px); }
.btn-3d:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,50,130,0.30); }

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.40); }

/* ─── Misc ───────────────────────────────────────────────────── */
.icon-3d {
  box-shadow: 0 4px 0 rgba(0,50,130,0.22), 0 8px 20px rgba(37,99,235,0.25);
  transition: transform 0.2s ease;
}

.hero-frame-3d {
  box-shadow: 0 8px 0 rgba(0,74,198,0.08), 0 20px 60px rgba(0,74,198,0.18);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.badge-3d { box-shadow: 0 4px 16px var(--shadow-color); }

.nav-active {
  background: var(--nav-active-bg);
  color: #2563eb;
  border-left: 4px solid #2563eb;
}

html.dark .nav-active { color: #60a5fa; border-left-color: #60a5fa; }

#global-search {
  background: var(--input-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  transition: background 0.3s ease;
}

#theme-toggle { transition: background 0.2s; }
#theme-toggle:hover { background: var(--surface-muted); border-radius: 9999px; }

/* ─── Dashboard Hero ──────────────────────────────────────────── */
.dashboard-hero {
  background: linear-gradient(135deg, #004ac6 0%, #2563eb 50%, #4f46e5 100%);
  border: none;
  color: white;
  overflow: hidden;
  position: relative;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(99,102,241,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.dashboard-hero::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 50%);
}

html.dark .dashboard-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #4338ca 100%);
}

.dashboard-hero .hero-stat {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 0.75rem;
}

/* ─── Quick Actions / Suggestions ────────────────────────────── */
.quick-action {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-color);
}

.quick-action .qa-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chart-card { min-height: 380px; }

.chart-area {
  background: var(--chart-grid);
  border-radius: 0.75rem;
  padding: 1rem;
}

.progress-bar-track {
  background: var(--surface-muted);
  border-radius: 9999px;
  height: 0.5rem;
  overflow: hidden;
}

.suggestion-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.2s ease;
}

.suggestion-card:hover { transform: translateY(-2px); }

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

.activity-item:hover { background: var(--surface-muted); }

/* ─── Animations ─────────────────────────────────────────────── */
.shimmer-bg {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes floating { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes orb-pulse { 0%,100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.floating { animation: floating 6s ease-in-out infinite; }
.orb-pulse { animation: orb-pulse 8s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.6s ease both; }

.toast { animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ─── College Portal Sidebar ──────────────────────────────────── */
.college-sidebar {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.92) 0%, rgba(17, 24, 94, 0.95) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 4px 0 32px rgba(0,0,0,0.25), 8px 0 48px rgba(26,86,219,0.15);
  border-radius: 0 1rem 1rem 0;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.college-nav-item,
.college-nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.college-nav-item:hover,
.college-nav-toggle:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(2px);
}

.college-nav-active,
.college-sub-active {
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.college-nav-ai {
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.college-nav-group { border-radius: 0.75rem; overflow: hidden; }

.college-nav-sub {
  display: none;
  padding: 0.25rem 0 0.5rem 2.75rem;
}

.college-nav-sub a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.college-nav-sub a:hover { background: rgba(255,255,255,0.10); color: white; }

.college-nav-open .college-nav-sub { display: block; }
.college-nav-open .college-chevron { transform: rotate(180deg); }
.college-chevron { transition: transform 0.25s ease; }

.college-portal-switcher {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.college-portal-switcher p,
.college-portal-switcher a { color: rgba(255,255,255,0.70) !important; }

.college-portal-switcher a:hover {
  color: white !important;
  background: rgba(255,255,255,0.10) !important;
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }

/* ─── Modal glass overlay ─────────────────────────────────────── */
.modal-glass {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.20), 0 4px 16px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.60);
}

html.dark .modal-glass {
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06);
}

.confirm-dialog-panel {
  animation: confirmSlideIn 0.2s ease;
}

@keyframes confirmSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

html:not(.dark) .confirm-dialog-panel {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(160, 175, 220, 0.55);
}

/* ─── Special field/extraction cards ─────────────────────────── */
.extract-report-card {
  background: var(--input-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80,100,160,0.25);
  color: var(--text-primary);
  border-radius: 1rem;
}

.extract-report-card strong { color: var(--text-primary); }
.extract-warnings-list { color: #b45309; }
html.dark .extract-warnings-list { color: #fbbf24; }

.college-type-disclaimer {
  border: 1px solid rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.08);
  color: #92400e;
}

html.dark .college-type-disclaimer {
  background: rgba(245,158,11,0.12);
  color: #fde68a;
  border-color: rgba(251,191,36,0.40);
}

.college-type-non-affiliated {
  border-color: #f59e0b !important;
  background: rgba(245,158,11,0.08) !important;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.22);
}

html.dark .college-type-non-affiliated { background: rgba(245,158,11,0.12) !important; }

/* ─── File upload ─────────────────────────────────────────────── */
.file-upload-btn {
  background: var(--input-bg);
  border: 1px solid rgba(80,100,160,0.35);
  color: var(--text-primary);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}

.file-upload-btn:hover { background: var(--surface-muted); }
.file-name-label { color: var(--text-secondary); font-size: 0.875rem; }

.image-preview-box { position: relative; display: inline-block; }
.image-preview-box img {
  max-height: 4rem;
  width: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(80,100,160,0.25);
  background: white;
  padding: 0.25rem;
}

.image-preview-actions { position: absolute; top: -0.4rem; right: -0.4rem; display: flex; gap: 0.25rem; }

.image-preview-remove {
  width: 1.35rem; height: 1.35rem; border-radius: 9999px;
  background: #ef4444; color: white;
  border: 2px solid var(--card-bg, #fff);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.image-preview-remove:hover { background: #dc2626; }

.image-view-btn {
  width: 1.35rem; height: 1.35rem; border-radius: 9999px;
  background: #004ac6; color: white;
  border: 2px solid var(--card-bg, #fff);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.image-view-btn:hover { background: #0040aa; }

/* ─── Academic year inputs ────────────────────────────────────── */
.year-input { appearance: textfield; -moz-appearance: textfield; }
.year-input::-webkit-outer-spin-button,
.year-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ─── Floating AI chatbot (stitch design) ─────────────────────── */
#teachus-chat-panel {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

#teachus-chat-panel::after {
  display: none;
}

.teachus-chat-panel-enter {
  animation: teachus-chat-slide-up 0.3s ease;
}

@keyframes teachus-chat-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.teachus-chat-messages {
  background: rgba(248, 249, 255, 0.55);
}

html.dark .teachus-chat-messages {
  background: rgba(8, 14, 32, 0.72);
}

.teachus-chat-form {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--glass-border-subtle);
}

html.dark .teachus-chat-form {
  background: rgba(10, 18, 40, 0.92);
  border-top-color: var(--glass-border-subtle);
}

.teachus-chat-input-wrap {
  background: var(--input-bg);
  border: 1px solid var(--glass-border-subtle);
}

.teachus-chat-input {
  color: var(--text-primary);
}

.teachus-chat-input::placeholder {
  color: var(--text-muted);
}

html.dark .teachus-chat-input-wrap {
  background: rgba(18, 28, 56, 0.85);
  border-color: rgba(100, 130, 200, 0.25);
}

html.dark #teachus-chat-panel {
  background: rgba(14, 24, 50, 0.94);
  border-color: rgba(100, 130, 200, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html.dark #teachus-chat-send {
  color: #60a5fa;
}

.teachus-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.teachus-chat-row-user {
  justify-content: flex-end;
}

.teachus-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 74, 198, 0.1);
  color: #004ac6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html.dark .teachus-chat-avatar {
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
}

.teachus-chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.teachus-chat-bubble-text {
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
  font-size: 13px;
}

.teachus-chat-bubble-line {
  margin: 0 0 6px;
}

.teachus-chat-bubble-line:last-child {
  margin-bottom: 0;
}

.teachus-chat-list {
  margin: 4px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.teachus-chat-list li {
  margin-bottom: 4px;
}

.teachus-chat-list li:last-child {
  margin-bottom: 0;
}

.teachus-chat-bubble-text strong,
.teachus-chat-heading strong {
  font-weight: 700;
  color: var(--text-primary);
}

html.dark .teachus-chat-bubble-text strong,
html.dark .teachus-chat-heading strong {
  color: #e2e8f8;
}

.teachus-chat-heading {
  margin: 0 0 6px;
  font-size: 13px;
}

.teachus-chat-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.dark .teachus-chat-link {
  color: #60a5fa;
}

.teachus-chat-bubble-bot {
  background: #fff;
  border: 1px solid rgba(195, 198, 215, 0.35);
  border-top-left-radius: 4px;
}

html.dark .teachus-chat-bubble-bot {
  background: rgba(22, 34, 68, 0.95);
  border-color: rgba(100, 130, 200, 0.28);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.teachus-chat-bubble-user {
  background: #004ac6;
  color: #fff;
  border-top-right-radius: 4px;
}

html.dark .teachus-chat-bubble-user {
  background: #2563eb;
}

.teachus-chat-bubble-user .teachus-chat-bubble-text,
.teachus-chat-bubble-user p {
  color: #fff;
}

.teachus-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 18px;
}

.teachus-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--text-muted, #737686);
  animation: teachus-chat-dot 1.2s infinite ease-in-out;
}

.teachus-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.teachus-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes teachus-chat-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 480px) {
  #teachus-chat-root {
    right: 16px;
    bottom: 16px;
  }

  #teachus-chat-panel {
    width: calc(100vw - 32px);
    height: min(70vh, 500px);
  }
}

/* ─── AI Data Cleaning + Unit Cleaning excel toolbars ───────── */
.ai-clean-page .ai-excel-input,
.ai-clean-page .ai-excel-select,
.ai-clean-page select.ai-excel-select,
.unit-clean-page .ai-excel-input,
.unit-clean-page .ai-excel-select,
.unit-clean-page select.ai-excel-select {
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(100, 120, 170, 0.45) !important;
  -webkit-text-fill-color: var(--text-primary);
}

html.dark .ai-clean-page .ai-excel-input,
html.dark .ai-clean-page .ai-excel-select,
html.dark .unit-clean-page .ai-excel-input,
html.dark .unit-clean-page .ai-excel-select {
  color-scheme: dark;
  border-color: rgba(120, 150, 210, 0.38) !important;
}

.ai-clean-page .ai-excel-select option,
.unit-clean-page .ai-excel-select option {
  color: var(--text-primary);
  background-color: #1a2648;
}

html:not(.dark) .ai-clean-page .ai-excel-select option,
html:not(.dark) .unit-clean-page .ai-excel-select option {
  background-color: #f8f9ff;
}

.ai-clean-page .ai-excel-btn,
.unit-clean-page .ai-excel-btn {
  font-weight: 700;
  border-radius: 0.5rem;
}

.ai-clean-page .ai-excel-btn:not(.ai-excel-btn-primary):not(.ai-excel-btn-success):not(.ai-excel-btn-danger),
.unit-clean-page .ai-excel-btn:not(.ai-excel-btn-primary):not(.ai-excel-btn-success):not(.ai-excel-btn-danger) {
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(100, 120, 170, 0.45) !important;
}

html.dark .ai-clean-page .ai-excel-btn:not(.ai-excel-btn-primary):not(.ai-excel-btn-success):not(.ai-excel-btn-danger),
html.dark .unit-clean-page .ai-excel-btn:not(.ai-excel-btn-primary):not(.ai-excel-btn-success):not(.ai-excel-btn-danger) {
  border-color: rgba(120, 150, 210, 0.38) !important;
}

.ai-clean-page .ai-excel-btn-success,
.unit-clean-page .ai-excel-btn-success {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

html.dark .ai-clean-page .ai-excel-btn-success,
html.dark .unit-clean-page .ai-excel-btn-success {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.18) !important;
}

.ai-clean-page .ai-excel-btn-danger,
.unit-clean-page .ai-excel-btn-danger {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

html.dark .ai-clean-page .ai-excel-btn-danger,
html.dark .unit-clean-page .ai-excel-btn-danger {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.16) !important;
}

.ai-clean-page .ai-excel-btn-primary {
  color: #fff !important;
  background: #7c3aed !important;
  border: 1px solid transparent !important;
}

.ai-clean-page .ai-excel-btn-primary:hover {
  background: #6d28d9 !important;
}

.unit-clean-page .ai-excel-btn-primary {
  color: #fff !important;
  background: #0d9488 !important;
  border: 1px solid transparent !important;
}

.unit-clean-page .ai-excel-btn-primary:hover {
  background: #0f766e !important;
}

.ai-clean-page .ai-excel-page-btn,
.unit-clean-page .ai-excel-page-btn {
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(100, 120, 170, 0.45) !important;
  font-weight: 600;
}

html.dark .ai-clean-page .ai-excel-page-btn,
html.dark .unit-clean-page .ai-excel-page-btn {
  border-color: rgba(120, 150, 210, 0.38) !important;
}

.ai-clean-page .ai-excel-page-btn:disabled,
.unit-clean-page .ai-excel-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ai-clean-page .ai-excel-label-ai {
  color: #6d28d9;
  font-weight: 700;
}

.unit-clean-page .ai-excel-label-ai {
  color: #0d9488;
  font-weight: 700;
}

html.dark .ai-clean-page .ai-excel-label-ai,
html.dark .ai-clean-page .ai-excel-help summary {
  color: #c4b5fd !important;
}

html.dark .unit-clean-page .ai-excel-label-ai,
html.dark .unit-clean-page .ai-excel-help summary {
  color: #5eead4 !important;
}

.ai-clean-page .ai-excel-row-approve,
.unit-clean-page .ai-excel-row-approve {
  color: #047857 !important;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
}

html.dark .ai-clean-page .ai-excel-row-approve,
html.dark .unit-clean-page .ai-excel-row-approve {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.16);
}

.ai-clean-page .ai-excel-row-reject,
.unit-clean-page .ai-excel-row-reject {
  color: #b91c1c !important;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

html.dark .ai-clean-page .ai-excel-row-reject,
html.dark .unit-clean-page .ai-excel-row-reject {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.14);
}

.ai-clean-page .ai-section-tab-inactive,
.unit-clean-page .ai-section-tab-inactive {
  background-color: var(--input-bg) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(100, 120, 170, 0.3);
}

html.dark .ai-clean-page .ai-section-tab-inactive,
html.dark .unit-clean-page .ai-section-tab-inactive {
  color: #b8c5e0 !important;
  border-color: rgba(120, 150, 210, 0.28);
}

.ai-clean-page .ai-section-tab-inactive:hover,
.unit-clean-page .ai-section-tab-inactive:hover {
  background-color: var(--surface-muted) !important;
  color: var(--text-primary) !important;
}

.ai-clean-page .ai-clean-note {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

html.dark .ai-clean-page .ai-clean-note {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.28);
}

.ai-clean-page .ai-scroll-wrap thead tr,
.unit-clean-page .ai-scroll-wrap thead tr {
  background-color: var(--input-bg) !important;
}

.ai-clean-page .ai-scroll-wrap thead th,
.unit-clean-page .ai-scroll-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--text-secondary) !important;
  background-color: var(--input-bg) !important;
  border-color: rgba(100, 120, 170, 0.3) !important;
  backdrop-filter: blur(6px);
}

html.dark .ai-clean-page .ai-scroll-wrap thead th,
html.dark .unit-clean-page .ai-scroll-wrap thead th {
  color: #b8c5e0 !important;
  border-color: rgba(120, 150, 210, 0.25) !important;
}

.ai-clean-page .excel-editable-cell,
.unit-clean-page .excel-editable-cell {
  color: var(--text-primary) !important;
}

.ai-clean-page .excel-hit,
.unit-clean-page .excel-hit {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.45);
  color: inherit;
}

html.dark .ai-clean-page .excel-hit,
html.dark .unit-clean-page .excel-hit {
  background: rgba(251, 191, 36, 0.35);
}

.ai-clean-page .excel-row-dup,
.unit-clean-page .excel-row-dup {
  background: rgba(239, 68, 68, 0.12);
}

html.dark .ai-clean-page .excel-row-dup,
html.dark .unit-clean-page .excel-row-dup {
  background: rgba(239, 68, 68, 0.18);
}

.unit-clean-page .ai-excel-input:focus,
.unit-clean-page .ai-excel-select:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35) !important;
  border-color: rgba(20, 184, 166, 0.55) !important;
}

.unit-clean-page .excel-toolbar {
  background: rgba(20, 184, 166, 0.04) !important;
  border-color: rgba(20, 184, 166, 0.12) !important;
}

html.dark .unit-clean-page .excel-toolbar {
  background: rgba(20, 184, 166, 0.06) !important;
  border-color: rgba(45, 212, 191, 0.15) !important;
}

.unit-clean-page #excel-status-units,
.unit-clean-page #excel-status-faculty {
  color: var(--text-secondary) !important;
}

html.dark .unit-clean-page #excel-status-units,
html.dark .unit-clean-page #excel-status-faculty {
  color: #b8c5e0 !important;
}

.unit-clean-page #excel-status-units.text-red-600,
.unit-clean-page #excel-status-faculty.text-red-600 {
  color: #f87171 !important;
}

.ai-clean-page .verify-banner.pending,
.unit-clean-page .verify-banner.pending {
  color: #b45309;
  background: rgba(251, 191, 36, 0.12);
}

.ai-clean-page .verify-banner.done,
.unit-clean-page .verify-banner.done {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

html.dark .ai-clean-page .verify-banner.pending,
html.dark .unit-clean-page .verify-banner.pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

html.dark .ai-clean-page .verify-banner.done,
html.dark .unit-clean-page .verify-banner.done {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

/* Single-entity import modal — same excel table as AI Data Cleaning */
.ai-import-excel .ai-scroll-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(50vh, 480px);
  min-height: 220px;
}

.ai-import-excel .ai-scroll-wrap tbody td,
.ai-import-excel .ai-scroll-wrap tbody tr {
  color: var(--text-primary);
}

.ai-import-excel .ai-excel-input,
.ai-import-excel .ai-excel-select,
.ai-import-excel select.ai-excel-select {
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(100, 120, 170, 0.45) !important;
}

.ai-import-excel .ai-excel-btn-primary {
  color: #fff !important;
  background: #7c3aed !important;
}

.ai-import-excel .ai-excel-page-btn {
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(100, 120, 170, 0.45) !important;
}

/* ─── Mobile navigation drawer ───────────────────────────────── */
.app-sidebar {
  transform: translateX(-105%);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}

body.mobile-nav-open .app-sidebar {
  transform: translateX(0);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 14, 32, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.mobile-nav-open .mobile-nav-backdrop {
  display: block;
  opacity: 1;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-sidebar {
    transform: none !important;
  }

  .mobile-nav-backdrop,
  body.mobile-nav-open .mobile-nav-backdrop {
    display: none !important;
  }

  body.mobile-nav-open {
    overflow: unset;
  }
}

/* ─── Mobile layout polish ───────────────────────────────────── */
@media (max-width: 767px) {
  main.md\:ml-\[280px\] {
    margin-left: 0 !important;
  }

  main > .p-md,
  main > .p-lg,
  main > .p-xl,
  main .p-md.lg\:p-lg,
  main .p-md.lg\:p-lg.xl\:p-xl {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .ai-clean-page .excel-toolbar,
  .unit-clean-page .excel-toolbar,
  .ai-import-excel .excel-toolbar {
    padding: 12px !important;
  }

  .ai-clean-page .ai-scroll-wrap,
  .unit-clean-page .ai-scroll-wrap,
  .ai-import-excel .ai-scroll-wrap {
    max-height: min(60vh, 420px);
    -webkit-overflow-scrolling: touch;
  }

  .ai-clean-page table,
  .unit-clean-page table,
  .ai-import-excel table {
    min-width: 640px;
  }

  .modal-glass {
    max-width: calc(100vw - 1rem) !important;
    margin: 0.5rem;
  }

  #confirm-dialog .confirm-dialog-panel {
    max-width: calc(100vw - 1.5rem);
  }

  h1.text-2xl,
  h1.text-3xl {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .card-3d {
    border-radius: 1rem;
  }
}

@media (max-width: 767px) {
  #teachus-chat-root {
    bottom: 1rem !important;
    right: 1rem !important;
  }

  #teachus-chat-root .teachus-chat-panel,
  #teachus-chat-root [class*="w-"] {
    max-width: calc(100vw - 2rem);
  }
}

