/* ============================================================
   Uniqueue — dashboard.css
   Student Dashboard styles
   Color palette: #C21010 (primary red), #660810 (deep maroon),
   #FFFFFF (white)
   Font: system font stack
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Fonts ──────────────────────────────────────────────────── */
/* ── Variables ──────────────────────────────────────────────── */ 
:root {
  /* Brand palette */
  --brand-primary: #660810;
  --brand-bg:      #f1ebeb;
  --brand-text:    #270707;
  --brand-accent:  #d6c0b1;

  /* Fonts */
  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --red:           #C21010;
  --red-deep:      #9a0c0c;
  --red-light:     #e84040;
  --red-glow:      rgba(194, 16, 16, 0.18);
  --red-soft:      rgba(194, 16, 16, 0.07);
  --red-border:    rgba(194, 16, 16, 0.18);

  --white:         #ffffff;
  --off-white:     #faf8f8;
  --cream:         #f7f1ea;
  --mist:          #f3eeee;
  --smoke:         #ede8e8;

  --ink:           #1a0a0a;
  --ink-mid:       #4a3333;
  --ink-light:     #8a7070;
  --ink-faint:     #c4b4b4;

  --success:       #1a8c4e;
  --success-bg:    #f0faf5;
  --success-border:#b2dfcc;

  --warning:       #b45309;
  --warning-bg:    #fffbeb;
  --warning-border:#fcd34d;

  --info-bg:       #f0f6ff;
  --info-border:   #bfdbfe;
  --info-text:     #1e4faf;

  --shadow-xs: 0 1px 4px rgba(26,10,10,0.06);
  --shadow-sm: 0 2px 12px rgba(26,10,10,0.08);
  --shadow-md: 0 6px 28px rgba(26,10,10,0.11);
  --shadow-lg: 0 16px 52px rgba(26,10,10,0.14);
  --shadow-red:0 4px 24px rgba(194,16,16,0.32);
  --shadow-maroon: 0 10px 32px rgba(102,8,16,0.28);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);

  --header-h: 64px;
  --footer-h: 45px;

  /* Deep maroon banner + card accent palette, matching the
     staff dashboard's visual language. */
  --card-brand:       #660810;
  --card-brand-light: #8a2e35;
  --card-brand-dark:  #450509;
  --card-border:      rgba(20,20,20,0.10);
  --card-border-soft: rgba(102,8,16,0.07);
  --card-shadow:       0 8px 22px rgba(102,8,16,.05);
  --card-shadow-hover: 0 8px 22px rgba(102,8,16,.09);
  --radius-xl: 20px;

  /* Queue-status modal palette — Deep Red / Stone / Dark Red / Grey Orange */
  --modal-deep-red:    #660810;
  --modal-dark-red:    #270707;
  --modal-stone:       #f1ebeb;
  --modal-clay:        #d6c0b1;
  --modal-clay-soft:   rgba(214,192,177,0.35);
  --modal-gold:        #e8b25c;
  --modal-gold-soft:   rgba(232,178,92,0.16);
}

/* ── Base ───────────────────────────────────────────────────── */
html, body { height: 100%; }

.dashboard-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: var(--off-white, #faf8f8);
  color: var(--brand-text, #270707);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Headings ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ── Header / footer / notifications ──────────────────────────
   Colors, typography, and structure are fully inherited from the
   shared header.css / footer.css (which now load the actual
   Inter only, via theme.css) — no
   page-specific overrides here, so this page matches every other
   page exactly.

   One small addition kept local to this page only: */

/* Keep the footer pinned to the bottom of the viewport, same
   as the header (which is already `position: sticky` via
   header.css and stays pinned to the top on its own). */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 150;
}

/* ── Main layout ────────────────────────────────────────────── */
.dashboard-main {
  /* Fluid: scales with the actual Window instead of stopping at a
     fixed px value, so it fills wide monitors and shrinks cleanly
     on smaller ones. 96vw keeps a small breathing margin; the
     upper cap keeps line lengths sane on ultra-wide screens. */
  width: 96vw;
  max-width: 2000px;
  margin: 0 auto;
  padding: 2rem 0 calc(4rem + var(--footer-h));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Section titles (kept for any leftover usages) ────────────── */
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--red);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Pending-feedback banner + feedback modal styles now live in
   assets/css/feedback.css so the student and parent dashboards share them. */

/* ── Banner (dash-hero) ─────────────────────────────────────────
   Deep maroon banner matching the staff dashboard: small "live"
   pill badge top-left, big name, code subtitle, and a row of
   translucent stat pills on the right instead of blocky panels. */
.dash-hero {
  background: var(--card-brand, #660810);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(26,10,10,0.08));
  animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.dash-hero::before {
  display: none;
  content: none;
}

.dash-hero__left { position: relative; z-index: 1; }

.dash-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* Same footprint as .profile-avatar / .profile-avatar--photo on the
   profile page (76px rounded square) so the student's picture reads
   as the same element in both places. */
.dash-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md, 18px);
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.dash-hero__avatar:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.2);
}

.dash-hero__avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .dash-hero__avatar {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  .dash-hero__identity {
    gap: 0.85rem;
  }
}

/* Small "live" style badge — green dot + greeting label,
   mirrors the "LIVE QUEUE" pill in the staff dashboard. */
.dash-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 0.5rem;
}

.dash-hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 3px rgba(53,208,127,0.22);
  flex-shrink: 0;
}

.dash-hero__greeting { display: none; } /* superseded by .dash-hero__badge */

.dash-hero__name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.dash-hero__code {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

/* Stat pills, right side of banner */
.dash-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  backdrop-filter: blur(4px);
}

.hero-stat__value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat__unit {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

.hero-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.68);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.hero-stat-divider { display: none; } /* pills no longer need dividers */

/* ── Nav queue ticker pill ───────────────────────────────────── */
.nav-queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
  border: 1.5px solid transparent;
}

.nav-queue-pill:hover { opacity: 0.82; transform: translateY(-1px); }

.nav-queue-pill--waiting {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.nav-queue-pill--called,
.nav-queue-pill--in_progress {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-border);
}

.nav-queue-pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: pillPulse 1.6s ease-in-out infinite;
}

.nav-queue-pill--waiting .nav-queue-pill__dot { animation: none; }

@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.nav-queue-pill__pos {
  opacity: 0.72;
  font-weight: 400;
}

/* ── Two-column dashboard grid ─────────────────────────────────
   Left: Your Current Queue. Right: Available Offices.
   Mirrors the staff dashboard's "Current Serving" / "Waiting
   Queue" two-panel arrangement. */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  animation: fadeUp 0.5s 0.1s cubic-bezier(0.4,0,0.2,1) both;
}

/* ── Panel card (shared shell for both columns) ────────────────── */
.panel-card {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1.5px solid var(--smoke);
}

.panel-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.panel-card__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.05em;
  background: var(--card-brand);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Small pill badge on the header's right side, e.g. office count */
.panel-card__count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Heuristic 1 — Visibility of system status: a small live pulse +
   timestamp so the person always knows the data on screen is
   current, without having to guess or refresh. */
.panel-card__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-light);
}

.panel-card__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pillPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* Heuristic 5 — Error prevention: a disabled, explained state for
   actions that shouldn't be taken right now (e.g. joining a second
   queue while one is already active), instead of letting the
   person hit an error after the fact. */
.btn[disabled],
.btn--disabled {
  background: var(--smoke);
  color: var(--ink-faint);
  border-color: var(--smoke);
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}
.btn--disabled:hover { background: var(--smoke); box-shadow: none; }

.office-row--disabled {
  opacity: 0.6;
}

.office-row__note {
  font-size: 0.72rem;
  color: var(--ink-light);
  font-style: italic;
}

.panel-card__body {
  padding: 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Active ticket panel (left column) ─────────────────────────── */
.active-ticket-section { display: contents; } /* legacy wrapper, layout now owned by .dashboard-grid */

.student-queue-tickets { gap: 1.5rem; }
.student-queue-tickets > .ticket-box--has-ticket + .ticket-box--has-ticket {
  border-top: 1px solid var(--card-border-soft);
  padding-top: 1.5rem;
}
.ticket-reservation-note { margin: 0 0 1rem; line-height: 1.5; }
.ticket-reservation-note.hidden { display: none; }

.ticket-box {
  background: var(--cream);
  border: 1.5px solid var(--card-border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

/* Once there's an active ticket, .status-card is already a fully
   styled card (its own header, border, shadow) — drop the outer
   .ticket-box chrome so we're not nesting a card inside a card. */
.ticket-box--has-ticket {
  background: transparent;
  border: none;
  padding: 0;
  min-height: unset;
}

.ticket-box--empty {
  border-style: dashed;
  border-color: var(--ink-faint);
  align-items: center;
  text-align: center;
  color: var(--ink-light);
  font-size: 0.9rem;
  gap: 0.6rem;
}

.active-ticket-card__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.active-ticket-card__number {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--card-brand);
  line-height: 1;
  letter-spacing: -1.2px;
}

.active-ticket-card__office {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.active-ticket-card__footer {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.6rem;
}

/* ── Offices panel (right column) ───────────────────────────────
   Vertical list of office rows instead of a separate card grid,
   matching the "Waiting Queue" list treatment in the reference. */
.offices-section { display: contents; } /* legacy wrapper */

.offices-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.office-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--cream);
  border: 1.5px solid var(--card-border-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.office-row:hover {
  border-color: var(--card-brand-light);
  background: var(--white);
}

.office-row__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--card-border-soft);
  color: var(--card-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.office-row__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.office-row__name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.office-row__hours {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.office-row__hours::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.offices-list__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-light);
  font-size: 0.88rem;
}

/* Legacy classes kept so nothing else in the codebase breaks if
   still referenced elsewhere */
.offices-grid { display: none; }
.office-card { display: none; }

/* ── Badges ─────────────────────────────────────────────────── */
.ticket-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.26rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.ticket-status-badge--waiting {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.ticket-status-badge--called,
.ticket-status-badge--in_progress {
  background: var(--card-border-soft);
  color: var(--card-brand);
  border: 1px solid var(--card-border);
  animation: pulseBadge 1.8s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.ticket-status-badge--done {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.ticket-status-badge--cancelled {
  background: var(--mist);
  color: var(--ink-light);
  border: 1px solid var(--smoke);
}

.ticket-type-badge {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.26rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticket-type-badge--walkin {
  background: var(--card-border-soft);
  color: var(--card-brand);
  border: 1px solid var(--card-border);
}
.ticket-type-badge--appointment {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}

/* ── Link action ────────────────────────────────────────────── */
.link-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  padding: 0.26rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--red-soft);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.link-action:hover {
  background: var(--red);
  color: var(--white);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  background: var(--white);
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius);
  padding: 2.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-light);
  font-size: 0.9rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Sizes */
.btn         { font-size: 0.9rem;  padding: 0.6rem 1.2rem; height: 40px; }
.btn--lg     { font-size: 0.95rem; padding: 0.7rem 1.5rem; height: 46px; border-radius: var(--radius-sm); }
.btn--sm     { font-size: 0.84rem; padding: 0.42rem 0.9rem; height: 34px; }
.btn--xs     { font-size: 0.78rem; padding: 0.3rem 0.7rem; height: 28px; border-radius: var(--radius-xs); }

/* Variants */
.btn--primary {
  background: var(--card-brand);
  color: var(--white);
  box-shadow: none;
}
.btn--primary:hover {
  background: #270707;
  box-shadow: none;
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

#trackQueueBtn,
#openFeedbackModal,
#feedbackSubmitBtn,
.feedback-pending-banner__cta {
  background: #660810;
  color: #f1ebeb;
  border: 1px solid #d6c0b1;
}

#trackQueueBtn:hover,
#openFeedbackModal:hover,
#feedbackSubmitBtn:hover,
.feedback-pending-banner__cta:hover {
  background: #270707;
}

.btn--outline {
  background: var(--white);
  color: var(--card-brand);
  border: 1.5px solid var(--card-brand);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover {
  background: var(--card-border-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cancel confirmation modal ──────────────────────────────────
   Self-contained overlay (doesn't depend on queue-status.css's
   .queue-modal styles) so it's safe regardless of what that file
   contains. Matches the card-brand palette used across this file. */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-modal.is-open { display: flex; }

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39,7,7,0.45);
  backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
  animation: fadeSlideUp 0.2s ease both;
}

.confirm-modal__icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal__mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.confirm-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.confirm-modal__text {
  font-size: 0.87rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.confirm-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.confirm-modal__actions .btn { min-width: 130px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .dashboard-main { padding: 1.6rem 1rem calc(3rem + var(--footer-h)); }
  .dash-hero { padding: 1.5rem 1.6rem; flex-wrap: wrap; }
  .dash-hero__name { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .dashboard-main { padding: 1.2rem 0.8rem calc(2.5rem + var(--footer-h)); }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-hero__stats { width: 100%; }
  .hero-stat { flex: 1; justify-content: center; }
  .active-ticket-card__number { font-size: 2.2rem; }
  .active-ticket-card__footer { flex-wrap: wrap; }
  .active-ticket-card__footer .btn { flex: 1; }
}

@media (max-width: 380px) {
  .btn { font-size: 0.85rem; }
}

/* ============================================================
   Queue Status Card — merged in from student-queue-status.css
   Now rendered inline in the "Your Current Queue" dashboard
   panel instead of a separate modal/page. Palette vars
   (--qs-*) reuse the --brand--font-* vars defined above.
   ============================================================ */

:root {
  --qs-deep-red:  var(--brand-primary, #660810);
  --qs-dark-red:  var(--brand-text, #270707);
  --qs-stone:     var(--brand-bg, #f1ebeb);
  --qs-clay:      var(--brand-accent, #d6c0b1);
  --qs-clay-soft: rgba(214,192,177,0.32);
  --qs-gold:      #e8b25c;
  --qs-gold-soft: rgba(232,178,92,0.15);

  --qs-font-display: 'Inter', sans-serif;
  --qs-font-body:    'Inter', sans-serif;
}

/* ============================================================
   Status Card — clean, flat, no gradients/stripes
   Solid maroon header, solid white body, clear typographic
   hierarchy instead of decoration doing the work.
   ============================================================ */

.status-card {
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: none;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: none;
}

/* It sits inside .panel-card, which already supplies the border and
   shadow — no need for a second nested card here. */
.status-card--inline {
  border: none;
  box-shadow: none;
}

/* ── Header ────────────────────────────────────────────────── */
.status-card__header {
  background: var(--qs-deep-red);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.status-card__header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.status-card__header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-card__header .ticket-status-badge {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.66rem;
  padding: 0.3rem 0.75rem;
}
.status-card__header .ticket-status-badge--waiting {
  background: var(--qs-gold);
  color: #4a2e00;
  border-color: transparent;
}

.status-card__header .ticket-status-badge--reserved {
  background: #eee6f4;
  color: #58336e;
  border-color: #d8c7e3;
}
.status-card__header .ticket-status-badge--next {
  background: #fff0c4;
  color: #715000;
  border-color: #e6c86d;
}
.status-card__header .ticket-status-badge--called,
.status-card__header .ticket-status-badge--in_progress {
  background: #ffffff;
  color: var(--qs-deep-red);
  border-color: transparent;
}
.status-card__header .ticket-status-badge--done {
  background: #22c774;
  color: #ffffff;
  border-color: transparent;
}
.status-card__header .ticket-status-badge--cancelled {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.24);
}

/* ── Seam ──────────────────────────────────────────────────── */
.status-card__main {
  border-top: 1px solid var(--qs-clay-soft);
}

/* ── Body ──────────────────────────────────────────────────── */
.status-card__main {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #ffffff;
}

.waiting-info { transition: opacity var(--transition, 0.22s); }
.waiting-info.hidden { display: none; }

/* ── Ticket number ─────────────────────────────────────────── */
.queue-number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--qs-clay-soft);
}

.queue-number-display small {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-light, #8a7070);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.queue-number-display strong {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--qs-deep-red);
}

/* ── Detail rows ───────────────────────────────────────────── */
/* Flat label/value list — no boxed card here, since it already sits
   inside the status card, which sits inside the panel card. Divider
   lines between rows (below) carry the structure instead. */
.details-card {
  background: transparent;
  border: none;
  border-radius: 0;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--qs-clay-soft);
}

.detail-row__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-light, #8a7070);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-row__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--qs-stone);
  color: var(--qs-deep-red);
  padding: 6px;
  box-sizing: border-box;
}

.detail-row__value {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--qs-dark-red);
  letter-spacing: -0.2px;
  line-height: 1;
  white-space: nowrap;
}

/* Assigned Window — the one fact that matters most once called.
   Solid maroon fill, no gradient, so it's unmistakably the most
   important row without any decorative effects. */
.detail-row--highlight {
  background: var(--qs-deep-red);
}
.detail-row--highlight .detail-row__label {
  color: rgba(255,255,255,0.75);
}
.detail-row--highlight .detail-row__icon {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}
.detail-row--highlight .detail-row__value {
  color: #ffffff;
  font-size: 1.4rem;
}

/* ── Called alert ──────────────────────────────────────────── */
.called-info { transition: opacity var(--transition, 0.22s); }
.called-info.hidden { display: none; }

.called-alert {
  background: var(--qs-deep-red);
  border-radius: var(--radius, 16px);
  padding: 1.5rem 1.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.called-alert__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--qs-gold);
  color: #4a2e00;
}

.called-alert__icon svg { width: 18px; height: 18px; }

.called-alert h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.called-alert p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
}

.Window-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--qs-deep-red);
  background: #ffffff;
  border-radius: 100px;
  padding: 0.45rem 1.4rem;
  margin-top: 0.1rem;
  letter-spacing: -0.2px;
}

/* ── Footer ────────────────────────────────────────────────── */
.status-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid var(--qs-clay-soft);
  background: var(--qs-stone);
  gap: 0.6rem;
  flex-wrap: wrap;
}

.text-muted {
  font-size: 0.7rem;
  color: var(--ink-light, #8a7070);
}

.text-muted span {
  font-weight: 700;
  color: var(--ink-mid, #4a3333);
}

.status-card__actions {
  display: flex;
  gap: 0.5rem;
}

.status-card__actions .btn--outline {
  color: var(--qs-deep-red);
  border-color: var(--qs-deep-red);
  background: #ffffff;
  border-radius: 100px;
}
.status-card__actions .btn--outline:hover {
  background: var(--qs-deep-red);
  color: #ffffff;
}
.status-card__actions .btn--outline:active { transform: scale(0.97); }

#refreshQueueStatus.is-refreshing {
  pointer-events: none;
  opacity: 0.7;
}
#refreshQueueStatus.is-refreshing::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.4rem;
  border: 2px solid var(--qs-clay);
  border-top-color: var(--qs-deep-red);
  border-radius: 50%;
  animation: refreshSpin 0.6s linear infinite;
}

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

@media (max-width: 480px) {
  .status-card__header { padding: 1.3rem 1.2rem; }
  .status-card__main   { padding: 1.2rem 1rem; gap: 1rem; }
  .queue-number-display strong { font-size: 3rem; }
  .detail-row { padding: 0.8rem 0.9rem; }
  .detail-row__value { font-size: 1.25rem; }
  .detail-row--highlight .detail-row__value { font-size: 1.4rem; }
  .called-alert { padding: 1.4rem 1.1rem; }
  .called-alert h2 { font-size: 1.1rem; }
  .status-card__footer { padding: 0.8rem 1.1rem; }
}

/* ==========================================================
   RE-QUEUE NOTIFICATION MODAL
========================================================== */

.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.confirm-modal.is-open {
    display: flex;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.confirm-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.8rem;
    max-width: 440px;
    width: calc(100% - 2rem);
    box-shadow: none;
    animation: modal-pop 0.18s ease;
}

@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.93) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Re-queue specific box overrides */
.requeue-modal__box {
    text-align: center;
    padding: 2.2rem 1.8rem 1.8rem;
}

.requeue-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff3e0;
    color: #e65100;
    margin: 0 auto 1.2rem;
}

.confirm-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a0a0a;
    margin: 0 0 0.7rem;
}

.confirm-modal__text {
    font-size: 0.92rem;
    color: #5a4a4a;
    line-height: 1.65;
    margin: 0 0 1.4rem;
}

.confirm-modal__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.requeue-modal__actions {
    flex-direction: column;
}

.requeue-modal__actions .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    font-size: 0.97rem;
}

.requeue-modal__note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #9a8a8a;
}

/* Status badge re-queued state */
.ticket-status-badge--re_queued,
.ticket-status-badge--waiting {
    background: #fff3e0;
    color: #c75f00;
}

/* Parent/student account linking */
.parent-link-request { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:1rem; border:1px solid var(--border-color,#d9dde5); background:#fff; }
.parent-link-request + .parent-link-request { border-top:0; }
.parent-link-request p { margin:.3rem 0; }
.parent-link-request small { color:#667085; }
.parent-link-request__actions { display:flex; gap:.5rem; flex-shrink:0; }
@media (max-width:700px){.parent-link-request{flex-direction:column;align-items:stretch}.parent-link-request__actions{width:100%}.parent-link-request__actions form{flex:1}.parent-link-request__actions .btn{width:100%}}

.unavailable-services-panel{width:100%;max-width:900px;margin:1.25rem auto 0;box-sizing:border-box;}
.unavailable-services-body{display:flex;flex-direction:column;gap:1rem;}
.unavailable-office-group h3{font-size:1rem;margin-bottom:.5rem;}
.unavailable-service-list{display:flex;flex-direction:column;border:1px solid var(--card-border);border-radius:var(--radius-sm);overflow:hidden;}
.unavailable-service-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-bottom:1px solid var(--card-border-soft);background:#fff;}
.unavailable-service-row:last-child{border-bottom:0;}
.unavailable-service-row div{display:flex;flex-direction:column;gap:.2rem;min-width:0;}
.unavailable-service-row div span{font-size:.78rem;color:var(--ink-light);}
.service-need-done{font-size:.78rem;font-weight:600;color:var(--success);white-space:nowrap;}
@media(max-width:700px){.unavailable-service-row{align-items:flex-start;flex-direction:column;}.unavailable-service-row .btn{width:100%;}}

#dashboard-service-need-modal[hidden],#parent-service-need-modal[hidden]{display:none!important;}

/* Join Queue — solid maroon border */
.office-row .btn--outline {
  border-color: var(--card-brand, #660810) !important;
  color: var(--card-brand, #660810) !important;
  background: var(--white) !important;
}
.office-row .btn--outline:hover {
  background: var(--card-brand, #660810) !important;
  color: #fff !important;
}

.office-row__note--closed{font-weight:600}.office-row__note--cutoff{font-weight:600}.office-row--disabled{opacity:.72}.office-row--disabled .office-row__icon{filter:grayscale(1)}

/* Use the same centered dialog, mascot and actions as queue confirmations. */
.prequeue-conflict .confirm-modal__dialog {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.prequeue-conflict__times {
    margin: 0 0 1.4rem;
    padding: .25rem .85rem;
    border-radius: var(--radius-md, 8px);
    background: var(--surface, #f8f5f5);
    text-align: left;
}
.prequeue-conflict__times > div { padding: .65rem 0; }
.prequeue-conflict__times > div + div { border-top: 1px solid var(--border, #eee5e5); }
.prequeue-conflict__times dt { color: var(--ink-light); font-size: .8rem; margin-bottom: .2rem; }
.prequeue-conflict__times dd { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
    .prequeue-conflict .confirm-modal__dialog { animation: none; }
}
