/* ================================================================
   InfraFix — UI REDESIGN LAYER (ADDITIVE, NON-BREAKING)
   Modern SaaS dashboard look for student-facing pages.
   Loaded AFTER style.css so it layers on top without touching any
   existing functionality or selectors used by JS.
   ================================================================ */

/* ---------- Decorative background (subtle, non-distracting) ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}
.bg-decor .blob-1 {
  width: 380px; height: 380px; top: -120px; right: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.16), transparent 65%);
}
.bg-decor .blob-2 {
  width: 300px; height: 300px; bottom: -90px; left: -90px;
  background: radial-gradient(circle at 60% 60%, rgba(6,182,212,0.14), transparent 65%);
}
.bg-decor .blob-3 {
  width: 220px; height: 220px; top: 35%; left: 55%;
  background: radial-gradient(circle at 50% 50%, rgba(30,64,175,0.10), transparent 65%);
}
.bg-decor .ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.08);
}
.bg-decor .ring-1 { width: 180px; height: 180px; top: 12%; left: -40px; }
.bg-decor .ring-2 { width: 240px; height: 240px; bottom: 8%; right: -60px; }

/* Keep real content above decoration. The header must stack ABOVE the
   dashboard (which comes later in the DOM) so its profile dropdown —
   including the fixed-position mobile variant — stays visible and clickable. */
.home-page .dashboard { position: relative; z-index: 1; }
.home-page .app-header {
  position: sticky;
  z-index: 1200;
  isolation: isolate;
}

/* ---------- Header refinement ---------- */
.app-header { gap: 12px; }
.app-header .logo { display: flex; align-items: center; gap: 8px; }
.app-header .logo .logo-mark { font-size: 1.25rem; line-height: 1; }
.app-header .nav-icons a.nav-link { display: inline-flex; align-items: center; }

/* ================================================================
   STUDENT HOME — DASHBOARD
   ================================================================ */
.dashboard {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* Hero */
.dash-hero {
  background: linear-gradient(120deg, #0F172A 0%, #134E4A 45%, #0D9488 100%);
  border-radius: var(--radius-xl);
  padding: 26px 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
}
.dash-hero-text { position: relative; z-index: 1; }
.dash-hero-text h2 { color: #fff; font-size: 1.55rem; margin: 0 0 6px; }
.dash-greeting {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.dash-sub { margin: 8px 0 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* Room badge inside hero */
.dash-room-badge {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(8px);
}
.dash-room-badge .room-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
}
.dash-room-badge .room-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

/* Dashboard sections */
.dash-section { margin-bottom: 28px; }
.dash-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* Stats strip */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 640px) {
  .dash-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-resolved .stat-value { color: var(--success); }

/* Action cards grid — mobile-first single column */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Redesigned action buttons (keeps .action-btn hook for JS/hover theme) */
.dashboard .action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px;
  border-radius: var(--radius-lg);
  position: relative;
}
.dashboard .action-btn .icon-wrap {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.dashboard .action-btn .icon { font-size: 1.6rem; display: block; margin: 0; }
.icon-primary  { background: rgba(13,148,136,0.12); }
.icon-secondary{ background: rgba(15,23,42,0.07); }
.icon-accent   { background: rgba(245,158,11,0.14); }
.dashboard .action-text { flex: 1; min-width: 0; }
.dashboard .action-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
}
.dashboard .action-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}
.dashboard .action-arrow {
  color: var(--border-strong);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.dashboard .action-btn:hover .action-arrow { transform: translateX(4px); color: var(--primary); }

/* Primary card stands out */
.dashboard .action-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,0.5);
}
.dashboard .action-primary .action-title,
.dashboard .action-primary .action-desc { color: #fff; }
.dashboard .action-primary .action-desc { color: rgba(255,255,255,0.82); }
.dashboard .action-primary .icon-primary { background: rgba(255,255,255,0.18); }
.dashboard .action-primary .action-arrow { color: rgba(255,255,255,0.85); }
.dashboard .action-primary:hover { border-color: transparent; }

/* Support card accent */
.dashboard .action-support .icon-wrap { background: rgba(245,158,11,0.14); }

/* Info strip */
.dash-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .dash-info { grid-template-columns: repeat(3, 1fr); }
}
.info-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.info-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.info-chip .info-icon { font-size: 1.3rem; line-height: 1.2; }
.info-title { font-weight: 700; font-size: 0.92rem; color: var(--secondary); }
.info-sub { font-size: 0.8rem; color: var(--text-secondary); }

/* Make sure info chips get the glass effect on mesh-gradient pages too */
body.mesh-gradient-bg .dash-info .info-chip { color: var(--text); }

/* ================================================================
   AUTH (LOGIN / SIGNUP)
   ================================================================ */
.auth-brand .brand-badge {
  width: 64px; height: 64px;
  margin: 0 auto 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,0.5);
}
.auth-card { border-radius: var(--radius-xl); }
.auth-card-head { margin-bottom: 16px; }
.auth-card-head h2 { margin-bottom: 4px; }
.auth-card-head .small { color: var(--text-secondary); }

/* ================================================================
   MESH GRADIENT BACKGROUND  (vanilla port of shadcn ShaderBackground)
   Applied to a page by adding class="mesh-gradient-bg" to <body>.
   The WebGL <canvas> is injected as the first child by
   public/js/mesh-gradient.js and pinned behind all page content.
   ================================================================ */
.mesh-gradient-bg {
  position: relative;
  /* Dark fallback colour while the shader compiles / if WebGL is absent. */
  background: #120c31;
}

/* The base stylesheet paints an opaque page background (body + .user-app /
   .admin-app). Those layers would sit ON TOP of the fixed canvas and hide the
   shader entirely, so make every background layer transparent on opt-in pages.
   Higher specificity (.mesh-gradient-bg.user-app) beats the originals without
   needing !important on each. */
html:has(body.mesh-gradient-bg),
body.mesh-gradient-bg,
body.mesh-gradient-bg.user-app,
body.mesh-gradient-bg.admin-app {
  background: transparent !important;
  background-image: none !important;
}

/* Decorative CSS blobs / floating shapes are redundant now — hide them so the
   shader is the single source of ambience. */
.mesh-gradient-bg > .bg-decor,
.mesh-gradient-bg > .floating-shapes {
  display: none !important;
}

/* The injected canvas fills the viewport and never intercepts clicks. */
.mesh-gradient-bg > .mesh-gradient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Lift every page's real content above the canvas. The app shells use a
   handful of different root wrappers; cover them all so nothing is hidden.
   The header is excluded: it keeps its own (higher) stacking position so the
   profile dropdown inside it always renders above the page content. */
.mesh-gradient-bg > header:not(.app-header),
.mesh-gradient-bg > main,
.mesh-gradient-bg > footer,
.mesh-gradient-bg > .container,
.mesh-gradient-bg > .login-wrapper,
.mesh-gradient-bg > .page,
.mesh-gradient-bg > .page-wrap,
.mesh-gradient-bg > .app-shell,
.mesh-gradient-bg > .dashboard {
  position: relative;
  z-index: 2;
}

/* ================================================================
   CONTENT SURFACES OVER THE MESH GRADIENT (all pages)
   Frosted-glass panels so page content stays highly readable while the
   animated shader glows through. Scoped to .mesh-gradient-bg so non-opt-in
   pages keep their original opaque look.
   ================================================================ */
.mesh-gradient-bg .card,
.mesh-gradient-bg .action-btn,
.mesh-gradient-bg .grid-block,
.mesh-gradient-bg .room-btn,
.mesh-gradient-bg .item-card,
.mesh-gradient-bg .location-card:not(.disabled),
.mesh-gradient-bg .report-card,
.mesh-gradient-bg .history-card,
.mesh-gradient-bg .info-chip {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.45);
}

/* Make sure the mesh-gradient background always covers the full scrollable
   page height, not just the initial viewport. */
html:has(body.mesh-gradient-bg),
body.mesh-gradient-bg {
  min-height: 100vh;
}

/* On mesh-gradient pages, bare body text/labels sit over the dark shader and
   should be white for readability.  White glass content surfaces reset to the
   normal dark text colour so their contents remain legible. */
body.mesh-gradient-bg {
  color: #fff;
}
body.mesh-gradient-bg .card,
body.mesh-gradient-bg .action-btn,
body.mesh-gradient-bg .grid-block,
body.mesh-gradient-bg .room-btn,
body.mesh-gradient-bg .item-card,
body.mesh-gradient-bg .location-card:not(.disabled),
body.mesh-gradient-bg .report-card,
body.mesh-gradient-bg .history-card,
body.mesh-gradient-bg .info-chip {
  color: var(--text);
}

/* The top app header gets a translucent bar so it blends with the shader. */
.mesh-gradient-bg > .app-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Header text / links must be dark so they stay legible on the light frosted
   header. The inline `style="color:white"` on many pages is overridden here. */
.mesh-gradient-bg > .app-header .logo,
.mesh-gradient-bg > .app-header .logo a,
.mesh-gradient-bg > .app-header .nav-icons a,
.mesh-gradient-bg > .app-header .nav-icons button {
  color: var(--secondary) !important;
}

/* Nav pills switch from light translucent rings to dark translucent rings
   so they remain visible against the frosted header. */
.mesh-gradient-bg > .app-header .nav-icons a,
.mesh-gradient-bg > .app-header .nav-icons button {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}
.mesh-gradient-bg > .app-header .nav-icons a:hover,
.mesh-gradient-bg > .app-header .nav-icons button:hover {
  background: rgba(15, 23, 42, 0.14) !important;
}

/* Make primary actions across all mesh-gradient pages use the same teal-to-sand
   gradient as the shader background, so buttons look cohesive with the scene. */
.mesh-gradient-bg .btn.btn-primary,
.mesh-gradient-bg .dashboard .action-primary {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 55%, #F59E0B 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px -10px rgba(13, 148, 136, 0.45);
}
.mesh-gradient-bg .btn.btn-primary:hover,
.mesh-gradient-bg .dashboard .action-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px -10px rgba(13, 148, 136, 0.55);
}

/* Admin pages favour a slightly darker glass for contrast. */
.mesh-gradient-bg.admin-app .card,
.mesh-gradient-bg.admin-app .report-card {
  background: rgba(255, 255, 255, 0.92);
}

/* ================================================================
   LOGIN / SIGNUP — glassmorphic card over the mesh gradient
   (fixes the previous flat/plain auth layout)
   ================================================================ */
.mesh-gradient-bg.auth-page {
  min-height: 100vh;
  height: auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
}

.mesh-gradient-bg.auth-page .container,
.mesh-gradient-bg.auth-page .login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Brand block above the card */
.mesh-gradient-bg.auth-page .auth-brand {
  text-align: center;
  margin-bottom: 20px;
}
.mesh-gradient-bg.auth-page .auth-brand .brand-badge {
  width: 68px; height: 68px;
  margin: 0 auto 10px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #0D9488 0%, #F59E0B 100%);
  box-shadow: 0 16px 40px -12px rgba(13, 148, 136, 0.7);
}
.mesh-gradient-bg.auth-page .auth-brand h1 {
  color: #fff !important;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.mesh-gradient-bg.auth-page .auth-brand .small {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* The frosted glass card */
.mesh-gradient-bg.auth-page .card.auth-card,
.mesh-gradient-bg.auth-page .card {
  background: rgba(20, 16, 40, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px 26px;
  color: #fff;
}

.mesh-gradient-bg.auth-page .auth-card-head h2 {
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.mesh-gradient-bg.auth-page .auth-card-head .small {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Form fields readable on the dark glass */
.mesh-gradient-bg.auth-page .form-group { margin-bottom: 14px; }
.mesh-gradient-bg.auth-page .form-group label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.mesh-gradient-bg.auth-page .form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.mesh-gradient-bg.auth-page .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.mesh-gradient-bg.auth-page .form-group input:focus {
  outline: none;
  border-color: #2DD4BF;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}
.mesh-gradient-bg.auth-page .form-group .small {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Toggle-password icon tuned for the dark field */
.mesh-gradient-bg.auth-page .toggle-password { color: rgba(255, 255, 255, 0.65); }
.mesh-gradient-bg.auth-page .toggle-password svg { fill: currentColor; width: 20px; height: 20px; }

/* Primary CTA */
.mesh-gradient-bg.auth-page .btn.btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0D9488 0%, #F59E0B 100%);
  box-shadow: 0 14px 30px -10px rgba(13, 148, 136, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.mesh-gradient-bg.auth-page .btn.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 38px -10px rgba(13, 148, 136, 0.7);
}
.mesh-gradient-bg.auth-page .btn.btn-primary:active { transform: translateY(0); }

/* Footer link */
.mesh-gradient-bg.auth-page .card .small,
.mesh-gradient-bg.auth-page .card .mt-2 { color: rgba(255, 255, 255, 0.7) !important; }
.mesh-gradient-bg.auth-page .card a { color: #5EEAD4 !important; font-weight: 600; }
.mesh-gradient-bg.auth-page .card a:hover { color: #99F6E4 !important; text-decoration: underline; }

/* Keep the auth form fully visible on short screens */
@media (max-height: 780px) {
  .mesh-gradient-bg.auth-page { padding: 12px 16px; }
  .mesh-gradient-bg.auth-page .auth-brand { margin-bottom: 12px; }
  .mesh-gradient-bg.auth-page .auth-brand .brand-badge { width: 54px; height: 54px; font-size: 1.6rem; }
  .mesh-gradient-bg.auth-page .auth-brand h1 { font-size: 1.5rem; }
  .mesh-gradient-bg.auth-page .card { padding: 20px 22px; }
  .mesh-gradient-bg.auth-page .form-group { margin-bottom: 10px; }
}

/* Password wrapper (visual only; JS hooks unchanged) */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 46px; }
.toggle-password {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: none; background: transparent;
  cursor: pointer; padding: 6px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.toggle-password svg { width: 20px; height: 20px; fill: var(--text-secondary); }
.toggle-password:hover svg { fill: var(--primary); }

/* ================================================================
   ROOM INSPECTION — SIDE-BY-SIDE LAYER PANEL
   ================================================================ */
.container.inspection-layout {
  max-width: 1100px;
}

.inspection-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: start;
}

.inspection-grid .room-viewer {
  margin-bottom: 0;
  min-height: 420px;
}

.layer-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.layer-panel .small {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.layer-panel .item-card {
  margin-bottom: 8px;
}

.layer-panel .item-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .inspection-grid {
    grid-template-columns: 1fr;
  }
  .inspection-grid .room-viewer {
    height: 320px;
    min-height: 320px;
  }
  .layer-panel {
    max-height: none;
  }
}

/* ================================================================
   AI SUPPORT — MODERN CHATBOT
   ================================================================ */
.support-page .chat-header-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}
.support-page .assistant-avatar {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.support-page .assistant-meta h2 { margin: 0; }
.support-page .status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34D399;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
}

/* Message bubbles */
.support-page .message { border-radius: 16px; line-height: 1.55; }
.support-page .message.bot {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-top-left-radius: 4px;
}
.support-page .message.bot .bot-name { color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.support-page .message.user { border-top-right-radius: 4px; box-shadow: 0 4px 12px -4px rgba(37,99,235,0.4); }

/* Quick action chips */
.support-page .quick-reply {
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.support-page .quick-reply:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.support-page .quick-reply:active { transform: scale(0.97); }

/* Input bar */
.support-page .chat-input-area { gap: 10px; }
.support-page .chat-input { border-radius: 999px; }
.support-page .send-btn { border-radius: 50%; flex: 0 0 auto; }

/* ================================================================
   RESPONSIVE POLISH (student-facing pages)
   ================================================================ */
@media (max-width: 480px) {
  .dashboard { padding: 20px 14px 40px; }
  .dash-hero { padding: 22px 20px; }
  .dash-hero-text h2 { font-size: 1.2rem; }
  .dashboard .action-btn { padding: 16px; gap: 12px; }
  .dashboard .action-btn .icon-wrap { flex-basis: 48px; width: 48px; height: 48px; }
  .app-header .nav-icons a,
  .app-header .nav-icons button { padding: 7px 12px; font-size: 0.8rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
