/* ============================================================
   SLAM Space Reservations — Stylesheet v5
   Notion-style 3-column app layout
   SLAM! Nevada Brand: PMS Black / PMS 802C Green / Cool Gray 8C / PMS 186C Red
   Fonts: Barlow Condensed + Dancing Script + Inter
   ============================================================ */

:root {
  --primary:        #C8102E;   /* PMS 186C — Red */
  --primary-hover:  #A50D25;
  --primary-light:  #FFF0F1;
  --slam-green:     #A8D400;   /* PMS 802C — Fluorescent Green */
  --slam-red:       #C8102E;
  --slam-gray:      #888B8D;   /* Cool Gray 8C */
  --slam-black:     #0B0B0B;
  --slam-white:     #FFFFFF;
  --gray-dark:      #2D2D2D;
  --gray-medium:    #888B8D;
  --gray-light:     #F4F4F4;
  --gray-border:    #E8E8E8;
  --gray-card:      #FFFFFF;
  --status-pending: #F59E0B;
  --status-approved:#A8D400;
  --status-denied:  #C8102E;
  --space-cafegym:  #C8102E;
  --space-es-turf:  #A8D400;
  --space-kinder:   #888B8D;
  --radius:         16px;
  --radius-sm:      10px;
  --shadow:         0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --transition:     0.18s ease;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-light);
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Impact', sans-serif;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1.1;
}

/* ============================================================
   AUTH OVERLAY — glass login
   ============================================================ */
.auth-overlay {
  position: fixed; inset: 0;
  background: #07080d;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(40, 48, 72, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 16, 46, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(168, 212, 0, 0.12) 0%, transparent 40%);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 24px;
}
.auth-overlay.hidden { display: none; }

.auth-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(2px);
  animation: authFloat 14s ease-in-out infinite;
}
.auth-orb-a {
  width: 220px; height: 220px; left: 8%; top: 18%;
  background: radial-gradient(circle at 30% 30%, rgba(200,16,46,0.45), rgba(200,16,46,0.05) 65%, transparent 70%);
}
.auth-orb-b {
  width: 280px; height: 280px; right: 6%; bottom: 10%;
  background: radial-gradient(circle at 40% 40%, rgba(168,212,0,0.28), rgba(168,212,0,0.04) 65%, transparent 70%);
  animation-delay: -4s;
}
.auth-orb-c {
  width: 160px; height: 160px; right: 22%; top: 12%;
  background: radial-gradient(circle at 40% 40%, rgba(120,140,200,0.35), transparent 70%);
  animation-delay: -8s;
}
.auth-ring {
  position: absolute; border-radius: 50%;
  border: 18px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 40px rgba(255,255,255,0.03);
  animation: authFloat 18s ease-in-out infinite reverse;
}
.auth-ring-a {
  width: 140px; height: 140px; left: 18%; bottom: 16%;
  border-color: rgba(200,16,46,0.18);
}
.auth-ring-b {
  width: 90px; height: 90px; right: 16%; top: 28%;
  border-width: 12px;
  border-color: rgba(168,212,0,0.16);
  animation-delay: -6s;
}
@keyframes authFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.auth-box {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 32px;
  padding: 40px 36px 32px;
  max-width: 400px; width: 100%;
  text-align: center;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  animation: fadeSlideUp 0.35s ease;
}
.auth-login-card { text-align: left; }
.auth-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 18px;
}
/* Light badge so black "NEVADA" in the logo stays readable on dark glass */
.auth-brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px 22px 12px;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.65);
}
.auth-brand-logo {
  height: 52px; width: auto; object-fit: contain;
  display: block;
}
.auth-brand-divider { display: none; }
.auth-brand-sub {
  font-family: 'Manrope', sans-serif;
  font-weight: 500; font-size: 14px; color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em; line-height: 1;
  text-transform: none;
}
.login-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 28px; font-weight: 700;
  color: #fff; text-align: center;
  text-transform: none; letter-spacing: -0.02em;
  margin: 4px 0 22px;
}
.auth-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.auth-logo-bull { height: 100px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 20px rgba(168,212,0,0.40)); }
.auth-title { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; color: var(--slam-white); margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: #888; margin-bottom: 32px; line-height: 1.6; }
.auth-subtitle strong { color: var(--slam-green); }
.auth-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 24px 0; }
.auth-note {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 22px; text-align: center; line-height: 1.4;
}

.login-label {
  display: block;
  font-size: 13px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: rgba(255,255,255,0.88); margin-bottom: 8px;
}
.login-select,
.login-input {
  width: 100%;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  margin-bottom: 16px;
  color-scheme: light;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.login-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: #fff;
  padding-right: 40px;
  cursor: pointer;
}
.login-select:focus,
.login-input:focus {
  border-color: rgba(200,16,46,0.45);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.16), 0 2px 10px rgba(0,0,0,0.08);
}
.login-input::placeholder { color: #9CA3AF; font-weight: 400; }
.login-form { display: flex; flex-direction: column; }
.login-password-wrap {
  position: relative;
  margin-bottom: 16px;
}
.login-password-wrap .login-input {
  margin-bottom: 0;
  padding-right: 46px;
}
.login-eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #9CA3AF; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.login-eye-btn:hover { color: #4B5563; background: rgba(0,0,0,0.04); }
.login-btn {
  width: 100%;
  background: #141824;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.login-btn:hover {
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(200,16,46,0.35);
}
.login-btn:active { transform: translateY(1px); }
.login-hint {
  font-size: 12px; color: rgba(255,255,255,0.5);
  line-height: 1.45; margin-top: 14px; text-align: center;
}
.login-error {
  margin-top: 14px;
  background: rgba(200,16,46,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  color: #FECACA;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(8px);
}
.google-signin-wrap {
  display: flex; justify-content: center;
  margin-top: 14px;
}
.google-signin-wrap[hidden] { display: none !important; }

.auth-denied {
  background: rgba(20,22,30,0.72);
  text-align: center;
}
.auth-denied .denied-email {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  border-radius: 14px;
  color: rgba(255,255,255,0.75);
}
.try-again-btn { border-radius: 16px; }

.auth-loading-screen {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.auth-spinner-ring {
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.07);
  border-top-color: var(--primary);
  border-right-color: var(--slam-green);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.auth-loading-label { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #444; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-denied .auth-denied-icon { font-size: 48px; margin-bottom: 16px; }
.auth-denied h2 { color: var(--slam-red); font-size: 28px; margin-bottom: 8px; }
.auth-denied p { color: #888; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.denied-email { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 10px 16px; font-size: 13px; color: #aaa; margin-bottom: 24px; word-break: break-all; }
.try-again-btn { background: var(--primary); color: white; border: none; padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 600; transition: background var(--transition); }
.try-again-btn:hover { background: var(--primary-hover); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #EBEBEB;
  position: sticky; top: 0; z-index: 100;
  height: 50px;
}
.header-inner {
  max-width: 100%; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 16px; overflow: hidden;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.header-logo-img { display: block; height: 34px; width: auto; object-fit: contain; }
.header-logo-text {
  font-family: 'Barlow Condensed', 'Impact', sans-serif;
  font-weight: 700; font-size: 14px; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.14em; line-height: 1;
  border-left: 1.5px solid #E5E7EB; padding-left: 10px;
}
.header-logo-text span { color: #111; }
.header-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 500; color: #BBBBBB;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover { background: #F4F4F4; color: #555; }
.nav-link.active { background: #F0F0F0; color: #333; }

.header-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid #E0E0E0; }
.user-name { font-size: 11px; color: #AAAAAA; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout-btn { background: none; border: 1px solid #EBEBEB; color: #BBBBBB; font-size: 11px; padding: 4px 10px; border-radius: 6px; transition: all var(--transition); }
.signout-btn:hover { border-color: #CCC; color: #666; }
.nav-toggle { display: none; background: none; border: none; color: #999; font-size: 20px; padding: 4px; }

/* ============================================================
   APP LAYOUT — 3-column Notion-style
   ============================================================ */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr 268px;
  height: calc(100vh - 50px); /* full height minus header only */
  overflow: hidden;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.sidebar-left {
  background: #F0F0F0;
  border-right: 1px solid #E0E0E0;
  overflow-y: auto;
  padding: 18px 14px 24px;
  display: flex; flex-direction: column; gap: 0;
}
.sidebar-left::-webkit-scrollbar { width: 4px; }
.sidebar-left::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 2px; }

/* Mini calendar */
.mini-cal-widget { margin-bottom: 16px; }
.mini-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.mini-cal-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #2D2D2D;
}
.mini-nav-btn {
  background: none; border: none; color: #888B8D;
  font-size: 15px; padding: 3px 7px; cursor: pointer;
  border-radius: 5px; line-height: 1; transition: all 0.12s;
}
.mini-nav-btn:hover { background: #E0E0E0; color: #2D2D2D; }

.mini-cal-days-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
}
.mini-cal-days-header span {
  text-align: center; font-size: 9px; font-weight: 700;
  color: #AAAAAA; text-transform: uppercase; padding: 2px 0;
}
.mini-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.mini-day {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin: 1px auto;
  font-size: 11px; font-weight: 500; color: #444;
  border-radius: 50%; cursor: pointer;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.mini-day:hover { background: #E0E0E0; }
.mini-day.empty, .mini-day.other-month { color: #CCCCCC; cursor: default; }
.mini-day.empty:hover, .mini-day.other-month:hover { background: transparent; }
.mini-day.today { background: var(--primary); color: white !important; font-weight: 700; }
.mini-day.has-events::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 3px; height: 3px;
  border-radius: 50%; background: var(--slam-green);
}
.mini-day.today.has-events::after { background: rgba(255,255,255,0.8); }

/* Sidebar divider */
.sidebar-divider { height: 1px; background: #E0E0E0; margin: 14px 0; }

/* Sidebar section */
.sidebar-section-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #AAAAAA; margin-bottom: 8px;
}
.sidebar-legend-item {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 8px; border-radius: 7px; cursor: default;
  margin-bottom: 2px;
}
.sidebar-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.sidebar-legend-name { font-size: 12px; font-weight: 500; color: #333; }

/* Reserve button in sidebar — SLAM red, white text, dynamic */
.reserve-btn-sidebar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; margin-top: 16px;
  background: linear-gradient(135deg, #C8102E 0%, #A00020 60%, #C8102E 100%);
  background-size: 200% 200%;
  color: white;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 16px rgba(200,16,46,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.25s;
  position: relative; overflow: hidden;
  animation: sidebar-pulse 3s ease-in-out infinite, sidebar-gradient 4s ease infinite;
}
.reserve-btn-sidebar::before {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: sidebar-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
.reserve-btn-sidebar:hover {
  background: linear-gradient(135deg, #E01535 0%, #B00025 60%, #E01535 100%);
  box-shadow: 0 0 28px rgba(200,16,46,0.55), inset 0 1px 0 rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.25);
  color: white;
  transform: translateY(-1px);
}
@keyframes sidebar-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(200,16,46,0.35), inset 0 1px 0 rgba(255,255,255,0.15); }
  50%       { box-shadow: 0 0 28px rgba(200,16,46,0.55), inset 0 1px 0 rgba(255,255,255,0.18); }
}
@keyframes sidebar-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes sidebar-shimmer {
  0%        { left: -120%; }
  45%, 100% { left: 150%; }
}
.reserve-btn-icon { font-size: 17px; line-height: 1; }

/* ============================================================
   MAIN CALENDAR AREA (middle column)
   ============================================================ */
.calendar-main {
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--slam-white);
  border-right: 1px solid #E0E0E0;
  position: relative;
}

/* Mobile-only "Reserve a Space" bar — hidden on desktop */
.mobile-reserve-bar {
  display: none;
}
.calendar-loading-overlay {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid #E8E8E8;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.loading-text { font-size: 13px; color: var(--slam-gray); }
.calendar-error-bar {
  display: none; background: #FEF2F2; border-bottom: 1px solid #FECACA;
  color: #B91C1C; padding: 10px 16px; font-size: 13px;
}
#calendar { flex: 1; overflow: hidden; min-height: 0; }

/* FullCalendar — light theme overrides */
.fc { font-family: 'Inter', sans-serif; height: 100% !important; }

.fc .fc-toolbar {
  padding: 10px 16px !important;
  border-bottom: 1px solid #EBEBEB !important;
  background: #FAFAFA !important;
  margin-bottom: 0 !important;
  align-items: flex-start !important;
}
.fc .fc-toolbar-chunk:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.fc .fc-toolbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px !important; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: #1a1a1a;
}
.fc .fc-button {
  background: white !important; border: 1px solid #E0E0E0 !important;
  color: #555 !important; font-size: 11px !important; font-weight: 600 !important;
  padding: 5px 13px !important; border-radius: 7px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
  transition: all 0.12s !important;
}
.fc .fc-button:hover { background: #F4F4F4 !important; border-color: #CCC !important; color: #111 !important; }
.fc .fc-button-active { background: var(--slam-black) !important; border-color: var(--slam-black) !important; color: white !important; }
.fc .fc-today-button { background: var(--primary) !important; border-color: var(--primary) !important; color: white !important; }
.fc .fc-today-button:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.fc .fc-today-button:disabled { background: #E0E0E0 !important; border-color: #E0E0E0 !important; color: #999 !important; }
.fc .fc-subPrev-button,
.fc .fc-subToday-button,
.fc .fc-subNext-button {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 1px 5px !important;
  color: #888B8D !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.fc .fc-subPrev-button:hover,
.fc .fc-subToday-button:hover,
.fc .fc-subNext-button:hover {
  background: transparent !important;
  color: var(--primary) !important;
}

/* Grid lines — very subtle */
.fc-theme-standard td, .fc-theme-standard th { border-color: #F0F0F0 !important; }
.fc-theme-standard .fc-scrollgrid { border-color: #EBEBEB !important; }

/* Column headers */
.fc .fc-col-header-cell {
  background: #FAFAFA !important;
  border-bottom: 1px solid #EBEBEB !important;
  padding: 8px 0;
}
.fc .fc-col-header-cell-cushion {
  font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #AAAAAA !important; text-decoration: none !important;
  padding: 4px 8px;
}
.fc .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion { color: var(--primary) !important; }

/* Time axis */
.fc .fc-timegrid-slot { height: 48px !important; }
.fc .fc-timegrid-slot-label-cushion { font-size: 10px !important; font-weight: 500; color: #BBBBBB !important; }
.fc .fc-timegrid-axis-cushion { color: #BBBBBB !important; font-size: 10px !important; }

/* Today column */
.fc .fc-day-today { background: rgba(200,16,46,0.04) !important; }

/* Current time line — red line + red dot */
.fc .fc-timegrid-now-indicator-line {
  border-color: var(--primary) !important;
  border-width: 2px !important;
  z-index: 5;
  overflow: visible;
}
.fc .fc-timegrid-now-indicator-line::before {
  content: '';
  position: absolute;
  left: 0; top: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(200,16,46,0.55);
}
.fc .fc-timegrid-now-indicator-arrow { display: none !important; }

/* Event CARDS in timeline view */
.fc .fc-timegrid-event {
  border-radius: 6px !important;
  border-left-width: 3px !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
  cursor: pointer !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}
.fc .fc-timegrid-event:hover {
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16) !important;
  z-index: 10 !important;
}
.fc .fc-event-main { padding: 3px 7px !important; overflow: hidden; }
.fc .fc-event-title { font-size: 12px !important; font-weight: 700 !important; line-height: 1.3 !important; }
.fc .fc-event-time { font-size: 10px !important; font-weight: 500 !important; opacity: 0.85; }
.fc .fc-timegrid-event-short .fc-event-title { font-size: 11px !important; }

/* Compact custom event content — used by eventContent renderer */
.fc-clean {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.fc-clean-time  { font-size: 10px; font-weight: 700; opacity: 0.9; flex-shrink: 0; }
.fc-clean-title { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fc-clean-dot   { display: none; }
/* Month view: colored dot + time + title, transparent background */
.fc-clean-month { align-items: center; gap: 6px; }
.fc-clean-month .fc-clean-dot {
  display: inline-block; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.fc-daygrid-event .fc-clean-time  { font-size: 11px; }
.fc-daygrid-event .fc-clean-title { font-size: 12px; }

/* List view */
.fc .fc-list-day-cushion { background: #FAFAFA; }
.fc .fc-list-day-text, .fc .fc-list-day-side-text { color: #888; }
.fc .fc-list-event:hover td { background: #F9F9F9 !important; }
.fc .fc-list-event-title { color: #1a1a1a; }
.fc .fc-list-empty { background: transparent; color: #AAA; }
.fc .fc-list-table td { border-color: #F0F0F0 !important; }

/* ============================================================
   RIGHT DETAIL PANEL
   ============================================================ */
.sidebar-right {
  background: #F0F0F0;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-right::-webkit-scrollbar { width: 4px; }
.sidebar-right::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 2px; }

.detail-panel {
  flex: 1; padding: 20px 16px;
  display: flex; flex-direction: column;
}
.detail-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px 16px; gap: 10px; min-height: 200px;
}
.detail-empty-icon { font-size: 30px; opacity: 0.3; }
.detail-empty-title { font-size: 14px; font-weight: 600; color: #666; }
.detail-empty-sub { font-size: 12px; color: #AAAAAA; line-height: 1.5; }

/* When an event is selected */
.detail-color-bar { height: 4px; border-radius: 2px; margin-bottom: 16px; }
.detail-event-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700; color: #111;
  margin-bottom: 16px; line-height: 1.2; text-transform: uppercase;
}
.detail-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #E4E4E4;
  font-size: 13px;
}
.detail-row:last-of-type { border-bottom: none; }
.detail-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; opacity: 0.5; }
.detail-label { font-weight: 600; color: #AAAAAA; width: 46px; flex-shrink: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.8; }
.detail-value { color: #1a1a1a; line-height: 1.5; flex: 1; font-weight: 500; }
.detail-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; border: 1px solid;
}
.detail-chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.detail-close-btn {
  width: 100%; padding: 10px; margin-top: 20px;
  background: #E8E8E8; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #555;
  cursor: pointer; transition: background 0.15s;
}
.detail-close-btn:hover { background: #DEDEDE; }

/* Right panel section header */
.detail-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #AAAAAA; margin-bottom: 10px;
}

/* Upcoming events list in right panel */
.upcoming-panel-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid #EBEBEB;
  cursor: pointer; transition: background 0.12s;
  border-radius: 6px; margin: 0 -4px; padding-left: 4px; padding-right: 4px;
}
.upcoming-panel-item:last-child { border-bottom: none; }
.upcoming-panel-item:hover { background: #EBEBEB; }
.upcoming-panel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.upcoming-panel-body { flex: 1; min-width: 0; }
.upcoming-panel-title { font-size: 12px; font-weight: 600; color: #2D2D2D; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcoming-panel-meta { font-size: 10px; color: #AAAAAA; margin-bottom: 3px; }
.upcoming-panel-tag {
  display: inline-block; padding: 1px 6px; border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; border: 1px solid;
}

/* Hover "+" to reserve on time slots */
.fc .fc-timegrid-slot-lane {
  position: relative; cursor: pointer;
  transition: background 0.12s;
}
.fc .fc-timegrid-slot-lane:hover { background: rgba(200,16,46,0.04) !important; }
.fc .fc-timegrid-slot-lane:hover::after {
  content: '+ Reserve';
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(200,16,46,0.45);
  background: rgba(200,16,46,0.06);
  padding: 2px 8px; border-radius: 4px;
  pointer-events: none; white-space: nowrap;
}
/* Hover on month view day cells — "Reserve" badge at bottom */
.fc .fc-daygrid-day-frame { position: relative; cursor: pointer; }
.fc .fc-daygrid-day-frame:hover::after {
  content: '+ Reserve';
  position: absolute; bottom: 5px; right: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(200,16,46,0.50);
  background: rgba(200,16,46,0.07);
  padding: 2px 6px; border-radius: 4px;
  pointer-events: none; white-space: nowrap;
}

/* ============================================================
   RESERVE PAGE — 2-column layout with live preview
   ============================================================ */
/* Reserve page: bull mascot as a subtle watermark behind content */
body.reserve-page { background: var(--gray-light); }
body.reserve-page::before {
  content: '';
  position: fixed; inset: 0;
  background: url('../images/slam-bull-mascot.png') no-repeat center center / min(720px, 70vw) auto;
  opacity: 0.05;
  filter: grayscale(0.4);
  z-index: 0; pointer-events: none;
}
body.reserve-page .site-header,
body.reserve-page .page-content,
body.reserve-page .site-footer { position: relative; z-index: 1; }
@media (max-width: 900px) {
  body.reserve-page::before { display: none; }
}

.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 280px;
  gap: 32px;
  align-items: start;
  justify-content: center;
  max-width: 1040px;
  margin: 0 auto;
}
.reserve-layout.step-review {
  display: flex;
  justify-content: center;
}
.reserve-layout.step-review .preview-card { display: none; }
.reserve-layout.step-review .form-wrapper {
  max-width: 680px;
  width: 100%;
  margin: 0;
}

/* Form fills its column fully — no internal centering */
.reserve-layout .form-wrapper { max-width: 100%; margin: 0; width: 100%; }
.reserve-layout .form-card { width: 100%; }

/* Live preview card */
.preview-card {
  position: sticky; top: 80px;
  background: var(--slam-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  overflow: hidden;
}
.preview-card-header {
  background: var(--slam-black); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.preview-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #666;
}
.preview-card-status {
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #F59E0B;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  padding: 2px 8px; border-radius: 20px;
}
.preview-event-bar { height: 5px; background: var(--gray-border); transition: background 0.3s; }
.preview-body { padding: 16px; }
.preview-event-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; color: #111;
  text-transform: uppercase; margin-bottom: 12px; line-height: 1.2;
  min-height: 28px;
}
.preview-empty-title { color: #CCC; }
.preview-field {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #F4F4F4;
  font-size: 12px;
}
.preview-field:last-child { border-bottom: none; }
.preview-field-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #CCCCCC; width: 50px; flex-shrink: 0;
}
.preview-field-value { color: #333; font-weight: 500; flex: 1; }
.preview-field-empty { color: #DDDDDD; }
.preview-space-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; border: 1px solid;
}
.preview-space-dot-sm { width: 6px; height: 6px; border-radius: 50%; }

/* Back to calendar link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: #AAAAAA;
  margin-bottom: 14px; transition: color 0.15s;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--primary); }

/* ============================================================
   MODAL (mobile fallback + reserve.html uses the same modal)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--slam-white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-width: 420px; width: 100%;
  overflow: hidden; animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-space-bar { height: 5px; }
.modal-body { padding: 28px; }
.modal-title { font-size: 22px; color: #111827; margin-bottom: 20px; line-height: 1.2; font-family: 'Inter', sans-serif; font-weight: 700; }
.modal-detail { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--gray-border); font-size: 14px; }
.modal-detail:last-of-type { border-bottom: none; margin-bottom: 20px; }
.modal-label { color: var(--gray-medium); font-weight: 500; flex-shrink: 0; }
.modal-value { font-weight: 600; color: #111827; text-align: right; }
.modal-close-btn {
  width: 100%; padding: 12px; background: var(--gray-light);
  border: 1px solid var(--gray-border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--gray-dark);
  transition: background var(--transition);
}
.modal-close-btn:hover { background: var(--gray-border); }

/* ============================================================
   PAGE LAYOUT — used by reserve.html form
   ============================================================ */
.page-content { max-width: 1200px; margin: 0 auto; padding: 36px 24px 72px; }
.page-header { margin-bottom: 28px; text-align: center; max-width: 1040px; margin-left: auto; margin-right: auto; }
.page-header .back-link { display: inline-block; margin-bottom: 12px; }
.page-title {
  font-family: 'Bebas Neue', 'Barlow Condensed', 'Impact', sans-serif;
  font-size: 56px; font-weight: 400; color: var(--slam-black);
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
}
.page-title span { color: var(--primary); }
.page-subtitle { font-size: 15px; color: var(--gray-medium); margin-top: 6px; }

/* ============================================================
   RESERVATION FORM WIZARD (reserve.html)
   ============================================================ */
.form-wrapper { max-width: 680px; margin: 0 auto; }

.form-progress {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; margin-bottom: 40px; padding: 0 8px;
}
.progress-line { position: absolute; top: 16px; left: 8%; right: 8%; height: 2px; background: var(--gray-border); z-index: 0; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.35s ease; width: 0%; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; flex: 1; }
.progress-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--slam-white); border: 2px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gray-medium);
  transition: all 0.25s ease;
}
.progress-step.active .progress-dot { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(200,16,46,0.18); }
.progress-step.completed .progress-dot { background: var(--slam-green); border-color: var(--slam-green); color: #0B0B0B; font-size: 0; }
.progress-step.completed .progress-dot::before { content: '✓'; font-size: 14px; color: #0B0B0B; }
.progress-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-medium); text-align: center; }
.progress-step.active .progress-label { color: var(--primary); }
.progress-step.completed .progress-label { color: var(--slam-green); }

.form-card {
  background: var(--slam-white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px;
  margin-bottom: 20px; border: 1px solid var(--gray-border);
}
.form-step { display: none; }
.form-step.active { display: block; }
.step-title { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; color: #111827; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.step-subtitle { font-size: 15px; color: var(--gray-medium); margin-bottom: 28px; }

.field-group { margin-bottom: 24px; }
.field-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-dark); margin-bottom: 10px; }
.text-input {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--gray-border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: 'Inter', sans-serif; color: #111827; background: var(--slam-white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
  accent-color: var(--primary);
  color-scheme: light;
}
.text-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,0.10); }
.text-input.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
/* Time/date inputs — tighter padding so the native picker icon doesn't crowd */
input[type="time"].text-input, input[type="date"].text-input {
  padding: 12px 14px;
  letter-spacing: 0.02em;
  accent-color: var(--primary);
  color-scheme: light;
}

.bubble-group { display: flex; flex-wrap: wrap; gap: 10px; }
.bubble-btn {
  padding: 10px 20px; border: 2px solid var(--gray-border); border-radius: 50px;
  font-size: 14px; font-weight: 600; color: var(--gray-dark);
  background: var(--slam-white); transition: all var(--transition);
}
.bubble-btn:hover { border-color: var(--primary); color: var(--primary); }
.bubble-btn.selected { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 2px 8px rgba(200,16,46,0.25); }

.space-bubble-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.space-bubble-btn {
  display: flex; align-items: center; gap: 12px; padding: 20px;
  border: 2px solid var(--gray-border); border-radius: var(--radius);
  font-size: 16px; font-weight: 700; color: var(--gray-dark);
  background: var(--slam-white); transition: all var(--transition); text-align: left;
}
.space-bubble-btn:hover { border-color: var(--space-color, var(--primary)); transform: translateY(-1px); box-shadow: var(--shadow); }
.space-bubble-btn.selected { border-color: var(--space-color, var(--primary)); background: var(--space-color, var(--primary)); color: white; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.space-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.space-bubble-btn.selected .space-dot { background: rgba(255,255,255,0.8) !important; }

.suggestion-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.chip-label { font-size: 11px; font-weight: 700; color: var(--gray-medium); text-transform: uppercase; letter-spacing: 0.06em; }
.suggestion-chip {
  padding: 5px 14px; border: 1.5px solid var(--gray-border); border-radius: 50px;
  font-size: 12px; font-weight: 600; color: var(--gray-medium);
  background: var(--slam-white); transition: all var(--transition);
}
.suggestion-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Multi-Entry Date/Time Chips ---- */
.entries-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-medium); margin-bottom: 10px;
}
.entry-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 8px;
  background: var(--slam-white); border: 2px solid var(--gray-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.entry-chip:hover { border-color: var(--gray-medium); }
.entry-chip-info { flex: 1; }
.entry-chip-date {
  font-size: 14px; font-weight: 600; color: #111827;
}
.entry-chip-time {
  font-size: 12px; color: var(--gray-medium); margin-top: 2px;
}
.entry-chip-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--gray-border); background: var(--slam-white);
  color: var(--gray-medium); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0; margin-left: 12px;
}
.entry-chip-remove:hover {
  background: #FEF2F2; border-color: #FECACA; color: #B91C1C;
}

/* Review entries section */
.review-entries-section {
  padding: 14px 20px;
  border-top: 2px solid var(--gray-border);
}
.review-entries-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray-medium); margin-bottom: 10px;
}
.review-entry-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-border);
}
.review-entry-item:last-child { border-bottom: none; }
.review-entry-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.review-entry-info { flex: 1; }
.review-entry-date {
  font-size: 14px; font-weight: 600; color: #111827;
}
.review-entry-time {
  font-size: 12px; color: var(--gray-medium); margin-top: 1px;
}
.tp {
  display: flex; align-items: center; gap: 4px;
  border: 2px solid var(--gray-border); border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--slam-white); width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tp:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,0.10); }
.tp-sel {
  border: none; outline: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: #111;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 0; text-align: center; width: 2.2ch;
}
.tp-colon { font-size: 22px; font-weight: 700; color: #111; line-height: 1; }
.tp-ampm {
  margin-left: auto; display: flex;
  border: 1.5px solid var(--gray-border); border-radius: 7px; overflow: hidden;
}
.tp-ampm-btn {
  padding: 5px 10px; border: none; background: transparent;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #BBBBBB; cursor: pointer; transition: all 0.15s; line-height: 1.3;
}
.tp-ampm-btn.active { background: var(--primary); color: white; }
.tp-ampm-btn:not(.active):hover { background: #F4F4F4; color: #555; }

.review-card { border: 2px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--gray-border); }
.review-row:last-child { border-bottom: none; }
.review-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-medium); flex-shrink: 0; }
.review-value { font-size: 15px; font-weight: 600; color: #111827; text-align: right; display: flex; align-items: center; gap: 8px; }
.review-space-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.submit-note { font-size: 13px; color: var(--gray-medium); line-height: 1.5; padding: 12px 0; }

.form-nav { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border: none; cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.nav-btn.primary { background: var(--primary); color: white; }
.nav-btn.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(200,16,46,0.30); transform: translateY(-1px); }
.nav-btn.secondary { background: var(--slam-white); color: var(--gray-dark); border: 2px solid var(--gray-border); }
.nav-btn.secondary:hover { border-color: var(--gray-dark); background: var(--gray-light); }
.nav-btn.submit { background: var(--primary); color: white; min-width: 180px; }
.nav-btn.submit:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(200,16,46,0.35); transform: translateY(-1px); }
.nav-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.form-message { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 16px; line-height: 1.5; }
.form-message.error   { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.form-message.warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

.confirmation-screen { text-align: center; padding: 40px 24px 20px; }
.confirm-icon {
  width: 72px; height: 72px; background: var(--slam-green); color: #0B0B0B;
  border-radius: 50%; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(168,212,0,0.40);
}
.confirm-title { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; color: #111827; margin-bottom: 12px; }
.confirm-msg { font-size: 15px; color: var(--gray-medium); max-width: 420px; margin: 0 auto 24px; line-height: 1.6; }
.confirm-summary { max-width: 420px; margin: 0 auto; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Footer hidden */
.site-footer { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 210px 1fr 240px; }
}
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; }
  .sidebar-left { display: none; }
  .sidebar-right { display: none; }
  .calendar-main { height: calc(100vh - 50px); }
}
@media (max-width: 700px) {
  .header-inner { padding: 0 16px; }
  .header-nav { display: none; flex-direction: column; gap: 4px; }
  .header-nav.open {
    display: flex; position: absolute; top: 50px; left: 0; right: 0;
    background: white; padding: 10px 16px 14px;
    border-bottom: 1px solid #EBEBEB; z-index: 99;
  }
  .nav-link { padding: 10px 12px; width: 100%; }
  .nav-toggle { display: block; }
  .user-name { display: none; }
  .page-content { padding: 16px 14px 40px; }
  .page-title { font-size: 30px; }
  .form-card { padding: 20px 16px; }
  .step-title { font-size: 22px; }
  .time-row { grid-template-columns: 1fr; }
  .space-bubble-group { grid-template-columns: 1fr 1fr; }
  .progress-label { display: none; }
  .progress-dot { width: 26px; height: 26px; font-size: 11px; }
  .form-nav { justify-content: stretch; }
  .nav-btn { flex: 1; }

  /* Mobile reserve button — show at top of calendar */
  .mobile-reserve-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #C8102E 0%, #A00020 60%, #C8102E 100%);
    background-size: 200% 200%;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.10em;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
    animation: sidebar-gradient 4s ease infinite;
    position: relative; overflow: hidden;
  }
  .mobile-reserve-bar::before {
    content: '';
    position: absolute; top: 0; left: -120%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: sidebar-shimmer 3s ease-in-out infinite;
    pointer-events: none;
  }

  /* Reserve page — stack preview below form */
  .reserve-layout {
    grid-template-columns: 1fr;
  }
  .reserve-layout.step-review {
    display: block;
  }
  .preview-card {
    position: static;      /* remove sticky on mobile */
    margin-top: 16px;
  }
  /* Compact preview card on mobile */
  .preview-body { padding: 12px; }
  .preview-event-title { font-size: 16px; margin-bottom: 8px; }
  .preview-field { padding: 5px 0; font-size: 11px; }
  .preview-field-label { font-size: 9px; width: 40px; }

  /* Compact grade bubbles already handled by shorter labels */
  .bubble-btn { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   GRADE SUB-GROUPS — expandable role picker under top bubble
   ============================================================ */
.grade-subs {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  animation: fadeSlideUp 0.18s ease;
}
.grade-subs-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray-medium); margin-bottom: 10px;
}
.bubble-group-sub { gap: 8px; }
.bubble-btn-sub {
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.grade-group-btn.selected {
  box-shadow: 0 2px 12px rgba(200,16,46,0.35) !important;
}

/* ============================================================
   DARK THEME — applied globally
   ============================================================ */
:root {
  --bg-base:     #0F1117;    /* page background */
  --bg-elev-1:   #171A22;    /* card surfaces */
  --bg-elev-2:   #1F232D;    /* raised surfaces (inputs, chips) */
  --bg-elev-3:   #2A2F3D;    /* hover states */
  --border-dk:   rgba(255,255,255,0.09);
  --border-dk-2: rgba(255,255,255,0.16);
  --text-hi:     #F2F4F8;    /* headings + primary text */
  --text-mid:    #C6CBD5;    /* body text */
  --text-lo:     #8A93A6;    /* labels + captions */
}

body {
  background: var(--bg-base);
  color: var(--text-mid);
}

/* Reserve-page watermark — brighter on dark bg */
body.reserve-page { background: var(--bg-base); }
body.reserve-page::before {
  opacity: 0.06;
  filter: none;
}

/* ---- Site header ---- */
.site-header {
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--border-dk);
}
.header-logo-img { filter: brightness(0) invert(1); }
.header-logo-text { color: var(--text-lo); border-left-color: var(--border-dk); }
.header-logo-text span { color: var(--text-hi); }
.nav-link { color: var(--text-lo); }
.nav-link:hover { background: var(--bg-elev-2); color: var(--text-hi); }
.nav-link.active { background: var(--bg-elev-3); color: var(--text-hi); }
.user-name { color: var(--text-lo); }
.user-avatar { border-color: var(--border-dk); }
.signout-btn { border-color: var(--border-dk); color: var(--text-lo); }
.signout-btn:hover { border-color: var(--border-dk-2); color: var(--text-hi); }

/* ---- Page titles ---- */
h1, h2, h3 { color: var(--text-hi); }
.page-title { color: var(--text-hi); }
.page-subtitle { color: var(--text-lo); }
.back-link { color: var(--text-lo); }
.back-link:hover { color: var(--text-hi); }

/* ---- Form card ---- */
.form-card {
  background: var(--bg-elev-1);
  border-color: var(--border-dk);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
}
.step-title { color: var(--text-hi); }
.step-subtitle { color: var(--text-lo); }
.field-label { color: var(--text-mid); }

/* ---- Inputs / textareas / date & time pickers ---- */
.text-input {
  background: var(--bg-elev-2);
  border-color: var(--border-dk);
  color: var(--text-hi);
  color-scheme: dark;
}
.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.20);
}
input[type="time"].text-input, input[type="date"].text-input { color-scheme: dark; }
.text-input::placeholder { color: var(--text-lo); }

/* ---- Bubble buttons ---- */
.bubble-btn {
  background: var(--bg-elev-2);
  border-color: var(--border-dk);
  color: var(--text-mid);
}
.bubble-btn:hover { border-color: var(--primary); color: #fff; background: var(--bg-elev-3); }
.bubble-btn.selected { color: #fff; }

/* Space picker */
.space-bubble-btn {
  background: var(--bg-elev-2);
  border-color: var(--border-dk);
  color: var(--text-mid);
}
.space-bubble-btn:hover { color: var(--text-hi); }
.space-bubble-btn.selected { color: #fff; }

/* Suggestion chips (quick picks) */
.suggestion-chip {
  background: var(--bg-elev-2);
  border-color: var(--border-dk);
  color: var(--text-lo);
}
.suggestion-chip:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ---- Progress bar ---- */
.progress-dot {
  background: var(--bg-elev-2);
  border-color: var(--border-dk-2);
  color: var(--text-lo);
}
.progress-line { background: var(--border-dk); }
.progress-step.active .progress-dot { color: #fff; }
.progress-label { color: var(--text-lo); }

/* ---- Live preview card ---- */
.preview-card {
  background: var(--bg-elev-1);
  border-color: var(--border-dk);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.preview-event-title { color: var(--text-hi); }
.preview-empty-title { color: var(--text-lo); }
.preview-field-label { color: var(--text-lo); }
.preview-field-value { color: var(--text-hi); }
.preview-field-empty { color: var(--text-lo); }
.preview-field { border-top-color: var(--border-dk); }

/* ---- Nav buttons ---- */
.nav-btn {
  background: var(--bg-elev-2);
  border-color: var(--border-dk-2);
  color: var(--text-mid);
}
.nav-btn:hover { background: var(--bg-elev-3); color: var(--text-hi); }
.nav-btn.primary { color: #fff; }

/* ---- Entry chips / dates list ---- */
.entry-chip, .entries-header {
  background: var(--bg-elev-2);
  border-color: var(--border-dk);
  color: var(--text-mid);
}
.entries-header { color: var(--text-hi); }

/* ---- Calendar container backgrounds (dark) ---- */
.calendar-main { background: var(--bg-base) !important; border-right-color: var(--border-dk) !important; }
.calendar-loading-overlay { background: rgba(15,17,23,0.92) !important; }
.calendar-loading-overlay .loading-text { color: var(--text-mid) !important; }
.calendar-error-bar {
  background: rgba(200,16,46,0.14) !important;
  border-bottom-color: rgba(200,16,46,0.32) !important;
  color: #FCA5A5 !important;
}

/* ---- Sidebar Spaces legend (dark) ---- */
.sidebar-section-label { color: var(--text-lo) !important; }
.sidebar-legend-item:hover { background: var(--bg-elev-2); }
.sidebar-legend-name { color: var(--text-hi) !important; }

/* ---- FullCalendar dark theming ---- */
.fc { color: var(--text-hi); background: transparent; }
/* Kill the default white cell backgrounds so dark bg shows through */
.fc .fc-daygrid-day,
.fc .fc-timegrid-slot,
.fc .fc-timegrid-col,
.fc .fc-daygrid-body,
.fc .fc-timegrid-body,
.fc-theme-standard td,
.fc-theme-standard th { background: transparent !important; }
.fc .fc-scrollgrid, .fc-theme-standard .fc-scrollgrid { background: transparent !important; }
.fc .fc-day-other .fc-daygrid-day-number { opacity: 0.25; }
.fc .fc-daygrid-day-frame { min-height: 90px; }

/* Stronger, more visible grid lines on dark bg */
.fc .fc-scrollgrid, .fc .fc-scrollgrid-section > *,
.fc td, .fc th,
.fc .fc-scrollgrid-section-header > *,
.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard td, .fc-theme-standard th {
  border-color: rgba(255,255,255,0.22) !important;
}
.fc .fc-daygrid-day-number,
.fc .fc-timegrid-slot-label-cushion {
  color: #FFFFFF !important;
  font-weight: 700;
}
.fc .fc-col-header-cell,
.fc thead th,
.fc-theme-standard th { background: var(--bg-elev-2) !important; }
.fc .fc-col-header-cell-cushion {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 10px 4px !important;
}
.fc .fc-toolbar-title {
  color: #FFFFFF !important;
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif !important;
  font-weight: 400 !important;
  font-size: 22px !important;
  letter-spacing: 0.06em !important;
}
.fc .fc-daygrid-day-number { opacity: 1; padding: 6px 8px; }
.fc .fc-day-today { background: rgba(200,16,46,0.14) !important; }
.fc .fc-day-today .fc-daygrid-day-number { color: var(--primary) !important; opacity: 1; }
.fc .fc-timegrid-slot-label { color: var(--text-mid) !important; }

/* Month view events — light text on dark bg for our custom pill */
.fc .fc-daygrid-event { background: transparent !important; border: none !important; }
.fc .fc-daygrid-event .fc-clean-title { color: #FFFFFF; }
.fc .fc-daygrid-event .fc-clean-time  { color: rgba(255,255,255,0.65); }
.fc .fc-daygrid-event:hover { background: rgba(255,255,255,0.05) !important; border-radius: 4px; }

/* List view */
.fc .fc-list-day-cushion { background: var(--bg-elev-2) !important; }
.fc .fc-list-day-text, .fc .fc-list-day-side-text { color: #FFFFFF !important; font-weight: 700; }
.fc .fc-list-event:hover td { background: var(--bg-elev-2) !important; }
.fc .fc-list-event-title { color: #FFFFFF !important; }
.fc .fc-list-event-time  { color: var(--text-mid) !important; }
.fc .fc-list-empty { color: var(--text-lo) !important; }
.fc-theme-standard .fc-list { border-color: rgba(255,255,255,0.22) !important; }

/* Toolbar buttons */
.fc .fc-button {
  background: var(--bg-elev-2) !important;
  border-color: var(--border-dk-2) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}
.fc .fc-button:hover { background: var(--bg-elev-3) !important; color: #FFFFFF !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important;
}
.fc .fc-subPrev-button,
.fc .fc-subToday-button,
.fc .fc-subNext-button {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--text-lo) !important;
}
.fc .fc-subPrev-button:hover,
.fc .fc-subToday-button:hover,
.fc .fc-subNext-button:hover {
  background: transparent !important;
  color: #FFFFFF !important;
}

/* Now-indicator (red line) — a bit more visible on dark */
.fc .fc-timegrid-now-indicator-line { border-color: var(--primary) !important; }
.fc .fc-timegrid-now-indicator-arrow { border-color: var(--primary) !important; color: var(--primary) !important; }

/* ---- Sidebar + mini calendar ---- */
.sidebar-left {
  background: var(--bg-elev-1);
  border-right-color: var(--border-dk);
}
.mini-cal-label { color: var(--text-hi); }
.mini-cal-days-header span { color: var(--text-lo); }
.mini-day { color: var(--text-mid); }
.mini-day:hover { background: var(--bg-elev-3); }
.mini-day.empty, .mini-day.other-month { color: rgba(255,255,255,0.16); }
.mini-day.today { color: #fff !important; }
.mini-nav-btn { color: var(--text-lo); }
.mini-nav-btn:hover { background: var(--bg-elev-3); color: var(--text-hi); }
.sidebar-divider { background: var(--border-dk); }

/* ---- Right detail panel ---- */
.detail-panel {
  background: var(--bg-elev-1);
  border-left-color: var(--border-dk);
  color: var(--text-mid);
}
.detail-section-title { color: var(--text-mid); }
.detail-event-title { color: var(--text-hi); }
.detail-empty, .detail-empty-sub { color: var(--text-lo); }
.upcoming-panel-item { background: var(--bg-elev-2); border-color: var(--border-dk); }
.upcoming-panel-item:hover { background: var(--bg-elev-3); }
.upcoming-panel-title { color: var(--text-hi); }
.upcoming-panel-meta { color: var(--text-lo); }
.detail-row, .detail-label { color: var(--text-lo); }
.detail-value { color: var(--text-hi); }

/* ---- Grade sub-groups on dark ---- */
.grade-subs {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-dk);
}

/* ---- Footer ---- */
.site-footer { background: var(--bg-elev-1); border-top: 1px solid var(--border-dk); color: var(--text-lo); }

/* ---- Modal (mobile event popup) ---- */
.modal-content { background: var(--bg-elev-1); color: var(--text-mid); }
.modal-title { color: var(--text-hi); }
.modal-detail { border-bottom-color: var(--border-dk); }
.modal-label { color: var(--text-lo); }
.modal-value { color: var(--text-hi); }
.modal-close-btn { background: var(--bg-elev-2); border-color: var(--border-dk-2); color: var(--text-mid); }
.modal-close-btn:hover { background: var(--bg-elev-3); }
