/* ==========================================================================
   ROAD SIGN COUNTDOWN & SEASONS - STYLESHEET
   Accurate European / Latvian Road Sign Specification with Atmospheric 3D Rig
   ========================================================================== */

:root {
  /* Sign Colors & Design Tokens */
  --sign-blue-base: #0c4d9b;
  --sign-blue-gradient-top: #1059b0;
  --sign-blue-gradient-bottom: #093c7a;
  --sign-white-border: #ffffff;
  --sign-town-bg: #f8f9fa;
  --sign-town-text: #111418;
  --post-metal-1: #3b4045;
  --post-metal-2: #8a9299;
  --post-metal-3: #d0d7de;
  --post-metal-4: #60676d;
  --post-metal-5: #212427;

  /* UI Theme Colors */
  --glass-bg: rgba(18, 24, 38, 0.78);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --accent-gold: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Typography */
  --font-road: 'Overpass', 'Barlow', 'Oswald', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0f19;
  font-family: var(--font-ui);
  color: var(--text-main);
  user-select: none;
}

/* ==========================================================================
   SCENE VIEWPORT & SEASONAL BACKGROUNDS
   ========================================================================== */

.scene-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  perspective: 1200px;
}

.road-background {
  position: absolute;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  background-size: cover;
  background-position: 38% bottom;
  background-repeat: no-repeat;
  transition: background-image 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform, background-image;
  z-index: 1;
}

@media (min-width: 1024px) {
  .road-background {
    background-position: 42% center;
  }
}

/* Vignette overlay for photographic depth */
.road-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%),
              linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 35%);
  pointer-events: none;
}

/* Seasonal background classes applied via JS */
body.season-autumn .road-background {
  background-image: url('assets/autumn.jpg');
}
body.season-winter .road-background {
  background-image: url('assets/winter.jpg');
}
body.season-spring .road-background {
  background-image: url('assets/spring.jpg');
}
body.season-summer .road-background {
  background-image: url('assets/summer.jpg');
}

/* Dynamic Sun / Atmosphere Glow */
.sun-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 170, 0.25) 0%, rgba(255, 170, 50, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 1.5s ease;
}

body.season-winter .sun-glow {
  background: radial-gradient(circle, rgba(210, 235, 255, 0.2) 0%, rgba(180, 215, 255, 0.05) 50%, transparent 70%);
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   ROAD SIGN ASSEMBLY (RIG & 3D PERSPECTIVE)
   ========================================================================== */

.sign-rig {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(88vw, 470px);
  margin-right: clamp(16px, 6vw, 130px);
  margin-left: 0;
  margin-top: -2vh;
  transform-style: preserve-3d;
  transform-origin: center right;
  transform: perspective(1200px) rotateY(-8deg) rotateX(1deg);
  transition: transform 0.15s ease-out;
}

@media (min-width: 1024px) {
  .sign-rig {
    margin-right: clamp(40px, 8vw, 160px);
    margin-left: 0;
    width: 480px;
  }
}

@media (max-width: 640px) {
  .sign-rig {
    margin-right: 14px;
    margin-left: 0;
    width: min(86vw, 380px);
  }
}

.sign-assembly {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

/* --------------------------------------------------------------------------
   VERTICAL MOUNTING POSTS (Deep Anthracite / Matte Dark Steel)
   -------------------------------------------------------------------------- */

.post {
  position: absolute;
  top: -12px;
  bottom: -340px;
  width: 25px;
  background: linear-gradient(
    90deg,
    #050709 0%,
    #111417 8%,
    #242a30 22%,
    #3f4752 36%,
    #22282e 60%,
    #0f1215 82%,
    #050709 100%
  );
  border-radius: 4px 4px 0 0;
  z-index: 1;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.12),
              inset -1.5px 0 3px rgba(0, 0, 0, 0.98),
              12px 18px 28px rgba(0, 0, 0, 0.85);
}

/* 3 Realistic Post Placements matching reference photo */
.post-left {
  left: 15%;
}

.post-middle {
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.post-right {
  right: 15%;
}

/* Post Top Cap (Deep Dark Metal) */
.post-cap {
  position: absolute;
  top: -5px;
  left: -2px;
  right: -2px;
  height: 9px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #283038 0%, #14181c 60%, #080a0c 100%);
  box-shadow: 0 -1px 2px rgba(255, 255, 255, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.9);
  z-index: 4;
}

/* Specular reflection line (Subtle dark sheen) */
.post-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32%;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  opacity: 0.5;
  pointer-events: none;
}

/* Cast shadows from signs onto the round posts */
.post-shadow-gap {
  position: absolute;
  top: 305px;
  height: 48px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.post-shadow-bottom {
  position: absolute;
  top: 425px;
  height: 60px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Dark Galvanized Steel Mounting Collar Clamps */
.clamp {
  position: absolute;
  left: -6px;
  right: -6px;
  height: 15px;
  background: linear-gradient(180deg, #4b535d 0%, #282e35 50%, #101316 100%);
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8),
              inset 0 1px 1px rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.clamp::before, .clamp::after {
  content: '';
  position: absolute;
  top: 3.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9ca3af, #4b5563 60%, #1f2937 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.clamp::before {
  left: 1px;
}

.clamp::after {
  right: 1px;
}

.clamp-top {
  top: 130px;
}

.clamp-mid {
  top: 310px;
}

.clamp-bottom {
  top: 410px;
}

/* --------------------------------------------------------------------------
   UPPER BLUE HIGHWAY DISTANCE SIGN
   -------------------------------------------------------------------------- */

.sign {
  position: relative;
  z-index: 5;
  border-radius: 22px;
  box-sizing: border-box;
}

.sign-blue {
  width: 100%;
  background: linear-gradient(175deg, var(--sign-blue-gradient-top) 0%, var(--sign-blue-base) 45%, var(--sign-blue-gradient-bottom) 100%);
  padding: 24px 28px;
  border: 4px solid #082a54;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4),
              inset 0 -2px 4px rgba(0, 0, 0, 0.5),
              0 12px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 22px;
}

/* Outer metal extrusion bezel */
.sign-metal-rim {
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  border: 2px solid #5a626a;
  pointer-events: none;
}

/* Inner crisp white border of highway signs */
.sign-inner-border {
  position: absolute;
  inset: 10px;
  border: 3.5px solid #ffffff;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

/* Subtle sunlight reflection sheen across the sign face */
.sign-reflect-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 80%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  pointer-events: none;
}

/* Mounting Bolts on Sign */
.bolt {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #e9ecef, #adb5bd 45%, #495057 80%, #212529 100%);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 6;
}

.bolt-tl { top: 16px; left: 16px; }
.bolt-tr { top: 16px; right: 16px; }
.bolt-bl { bottom: 16px; left: 16px; }
.bolt-br { bottom: 16px; right: 16px; }
.bolt-tc { top: 16px; left: 50%; transform: translateX(-50%); }
.bolt-bc { bottom: 16px; left: 50%; transform: translateX(-50%); }

/* Blue Sign Content (Upcoming Seasons & Days List) */
.sign-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 10px;
  font-family: var(--font-road);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.milestone-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.milestone-name {
  font-size: clamp(1.4rem, 4.2vw, 2.1rem);
  letter-spacing: 1.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px;
}

.milestone-days {
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  min-width: 50px;
  text-align: right;
}

/* Highlight closest next season */
.milestone-row:first-child .milestone-name,
.milestone-row:first-child .milestone-days {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* --------------------------------------------------------------------------
   LOWER WHITE TOWN ENTRANCE SIGN (Current Season)
   -------------------------------------------------------------------------- */

.sign-white {
  width: 98%;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
  padding: 14px 24px;
  border: 3.5px solid #222222;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9),
              inset 0 -2px 3px rgba(0, 0, 0, 0.15),
              0 10px 22px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
}

.sign-metal-rim-white {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid #4a5056;
  pointer-events: none;
}

.sign-inner-border-white {
  position: absolute;
  inset: 6px;
  border: 2px solid #111111;
  border-radius: 7px;
  pointer-events: none;
}

.bolt-white {
  background: radial-gradient(circle at 35% 35%, #ced4da, #6c757d 60%, #343a40 100%);
}

.sign-white-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}

.current-season-text {
  font-family: var(--font-road);
  font-size: clamp(2rem, 6.2vw, 3.2rem);
  font-weight: 900;
  color: var(--sign-town-text);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   DATE CAPTION OVERLAY (Authentic photo typography)
   -------------------------------------------------------------------------- */

.date-caption-wrapper {
  position: absolute;
  bottom: -90px;
  right: -5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 15;
}

@media (max-width: 600px) {
  .date-caption-wrapper {
    bottom: -80px;
    right: 0px;
  }
}

.date-caption {
  font-family: var(--font-road);
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9),
               0 1px 2px rgba(0, 0, 0, 0.8),
               2px 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.5px;
}

.time-subcaption {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
}

/* ==========================================================================
   NAVIGATION & UI OVERLAYS
   ========================================================================== */

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  pointer-events: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
}

.brand-icon {
  font-size: 1.2rem;
}

.brand-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.season-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fbbf24;
}

/* Top Actions */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-season-btn-group {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
}

@media (min-width: 768px) {
  .quick-season-btn-group {
    display: flex;
    gap: 4px;
  }
}

.season-quick-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-quick-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.season-quick-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Icon Buttons */
.icon-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all 0.2s ease;
  font-size: 0.88rem;
  font-weight: 600;
}

.icon-button:hover {
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-button.primary-accent {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-button.primary-accent:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   BOTTOM INTERACTIVE DATE SCRUBBER
   ========================================================================== */

.bottom-scrubber-bar {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  z-index: 90;
  pointer-events: none;
}

.scrubber-card {
  pointer-events: auto;
  width: min(92vw, 560px);
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease;
}

.scrubber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scrubber-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.cal-icon {
  font-size: 1.1rem;
}

.scrubber-controls {
  display: flex;
  gap: 8px;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.22);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Range Slider */
.custom-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(
    90deg,
    #60a5fa 0%,   /* Winter (Jan-Feb) */
    #34d399 25%,  /* Spring (Mar-May) */
    #fbbf24 50%,  /* Summer (Jun-Aug) */
    #f97316 75%,  /* Autumn (Sep-Nov) */
    #60a5fa 100%  /* Winter (Dec) */
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   SETTINGS DRAWER & MODALS
   ========================================================================== */

.settings-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(90vw, 380px);
  height: 100vh;
  z-index: 200;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.close-btn:hover {
  color: #ffffff;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-select, .form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-select option {
  background: #1e293b;
  color: #ffffff;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-blue);
}

/* Switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #cbd5e1;
  padding: 6px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .25s;
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider.round {
  background-color: var(--accent-blue);
}

input:checked + .slider.round:before {
  transform: translateX(20px);
}

/* Custom Events form */
.custom-event-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-events-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.custom-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.remove-event-btn {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 1.1rem;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SNAPSHOT MODAL
   ========================================================================== */

.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  width: min(94vw, 480px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.snapshot-preview-box {
  width: 100%;
  max-height: 480px;
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

#export-canvas {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.snapshot-tip {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
