/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* HSL Color System */
  --bg-dark: hsl(222, 25%, 6%);
  --bg-panel: hsla(223, 20%, 12%, 0.65);
  --border-glass: hsla(0, 0%, 100%, 0.08);
  --border-focus: hsla(180, 100%, 50%, 0.4);
  
  --text-primary: hsl(210, 38%, 95%);
  --text-secondary: hsl(214, 20%, 69%);
  --text-muted: hsl(215, 14%, 46%);
  
  /* Neon Accents */
  --accent-cyan: hsl(182, 100%, 50%);
  --accent-blue: hsl(217, 100%, 61%);
  --accent-pink: hsl(330, 100%, 60%);
  --accent-purple: hsl(270, 89%, 65%);
  
  /* Timeline State Gradients (Refreshed, premium & high contrast) */
  --sleep-bg: linear-gradient(135deg, hsla(224, 60%, 14%, 0.75), hsla(224, 60%, 8%, 0.9));
  --sleep-border: hsla(224, 65%, 55%, 0.25);
  
  --personal-bg: linear-gradient(135deg, hsla(32, 55%, 16%, 0.75), hsla(32, 55%, 10%, 0.9));
  --personal-border: hsla(32, 75%, 50%, 0.3);
  
  --work-bg: linear-gradient(135deg, hsla(142, 50%, 14%, 0.75), hsla(142, 50%, 8%, 0.9));
  --work-border: hsla(142, 65%, 45%, 0.35);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-neon-cyan: 0 0 15px hsla(182, 100%, 50%, 0.25);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  position: relative;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* Background Glow Blobs */
.bg-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 25s infinite alternate;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  top: -20%;
  left: -10%;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--accent-pink) 0%, var(--accent-purple) 100%);
  bottom: -20%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes glowPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.06; }
  100% { transform: scale(1.15) translate(4%, 4%); opacity: 0.12; }
}

/* Scrollbars (Sleek minimalist scrollbar from downloads page) */





/* Header */
.app-header {
  position: relative;
  z-index: 1010;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 12, 16, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-header .dropdown-container {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1000;
}

.app-header .dropdown-menu {
  top: calc(100% + 5px);
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon-cyan);
}

.logo-icon i {
  color: var(--bg-dark);
  width: 1.5rem;
  height: 1.5rem;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-group label, .toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.control-group label i, .toggle-label i {
  width: 1rem;
  height: 1rem;
  color: var(--accent-cyan);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border: 1px solid var(--border-glass);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-blue);
  border-color: rgba(0, 114, 255, 0.5);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Container */
.app-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

/* Search bar & Presets */
.search-and-presets {
  position: relative;
  z-index: 1005;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* Search Suggestions Bar */
.search-suggestions-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.suggestion-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
}

.suggestion-label i {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent-cyan);
}

.suggestion-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-family: monospace;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.suggestion-tag:hover {
  background: rgba(0, 242, 254, 0.06);
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  transform: translateY(-1px) scale(1.05);
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
}

.search-icon-box {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-icon-box i {
  color: var(--text-muted);
  width: 1.2rem;
  height: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-premium);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  background: hsla(223, 20%, 15%, 0.8);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), var(--shadow-premium);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Search Shortcut Hint Badge */
.search-shortcut-hint {
  position: absolute;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
  font-family: var(--font-sans);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hide shortcut hint when input is focused or has content */
.search-input:focus ~ .search-shortcut-hint,
.search-input:not(:placeholder-shown) ~ .search-shortcut-hint {
  opacity: 0;
  transform: scale(0.85);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: hsl(223, 20%, 12%);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(16px);
  animation: slideDownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.autocomplete-item {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.autocomplete-item .city-name {
  font-weight: 500;
}

.autocomplete-item .city-country {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.autocomplete-item .city-tz {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: monospace;
}

.hide {
  display: none !important;
}

/* Presets */
.preset-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.25rem;
  align-items: stretch;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Timelines Panel */
.timelines-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Timelines List */
.timelines-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
  padding: 6px 0.5rem 6px 4px;
  position: relative;
}

/* Drag row placeholder styling */
.timeline-card.dragging {
  opacity: 0.25 !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px dashed hsla(182, 100%, 50%, 0.35) !important;
  box-shadow: none !important;
  transform: scale(0.98);
}

.timeline-card.dragging * {
  opacity: 0.1 !important;
  pointer-events: none;
}

/* Active Drag Over Target Highlight */
.timeline-card.drag-over {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 242, 254, 0.03) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15) !important;
  transform: translateY(-2px) scale(1.01);
}

/* Timeline Card */
.timeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.timeline-card.is-home {
  border-color: rgba(0, 242, 254, 0.2);
  background: rgba(0, 242, 254, 0.01);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.timeline-card.is-home:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 36px rgba(0, 242, 254, 0.06), 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* Timeline Card Info Row */
.card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.card-left-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 4px;
}

.drag-handle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.drag-handle:active {
  cursor: grabbing;
}

.city-meta {
  cursor: pointer;
}

.city-meta.is-virtual {
  cursor: default;
}

.city-meta:hover h3 {
  color: var(--accent-cyan);
}

.city-meta.is-virtual:hover h3 {
  color: inherit;
}

.city-meta h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.city-meta h3 span.home-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-dark);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.city-country-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-right-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.city-time-diagnostics {
  text-align: right;
}

.live-time-display {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.timezone-badges {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-offset {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.badge-dst {
  background: rgba(255, 0, 127, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.badge-dst-none {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.card-action-btns {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.1);
}

.icon-btn.btn-remove:hover {
  color: var(--accent-pink);
  background: rgba(255, 0, 127, 0.06);
}

.icon-btn.btn-home:hover {
  color: var(--accent-cyan);
}

/* Timeline Hour Grid (Minimalist status strips layout) */
.timeline-grid-wrapper {
  position: relative;
  width: 100%;
}

.timeline-hour-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hour-cell {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
  overflow: hidden;
}

.hour-cell::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transition: all 0.2s ease;
}

.hour-cell:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.hour-cell .cell-time {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
}

.hour-cell .cell-label {
  font-size: 0.55rem;
  opacity: 0.75;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* Cell States (Minimalist status accent lines) */
.cell-sleep::after {
  background: hsl(343, 75%, 50%);
}
.cell-sleep:hover::after {
  box-shadow: 0 0 8px hsl(343, 75%, 50%);
}

.cell-personal::after {
  background: hsl(38, 92%, 50%);
}
.cell-personal:hover::after {
  box-shadow: 0 0 8px hsl(38, 92%, 50%);
}

.cell-work::after {
  background: hsl(142, 65%, 45%);
}
.cell-work:hover::after {
  box-shadow: 0 0 8px hsl(142, 65%, 45%);
}

/* Active slider overlay bar (Sleek linear glowing cursor) */
.grid-vertical-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 0 8px hsla(182, 100%, 50%, 0.4);
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
  transition: left 0.08s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Timeline Diagnostic Detail Panel (Clean glass divider) */
.diagnostics-panel {
  margin-top: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.diag-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.diag-item i {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--text-muted);
}

.diag-item span.highlight {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Master Scrubber controls */
.timeline-scrubber-controls {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.scrubber-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

#active-meeting-time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.06);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.scrubber-slider-container {
  width: 100%;
}

/* Range slider resetting & styling */
.master-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
}

.master-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.1s;
}

.master-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.master-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.1s;
}

.master-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.2rem 0 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sidebar Panels */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  height: 100%;
  padding-right: 0.25rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Glass Card */
.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.card-header i {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-accent-cyan { color: var(--accent-cyan); }
.icon-accent-blue { color: var(--accent-blue); }
.icon-accent-pink { color: var(--accent-pink); }

.section-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Slots List */
.slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slot-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
}

.slot-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.slot-suitability {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.score-high {
  background: rgba(46, 204, 113, 0.15);
  color: hsl(142, 90%, 75%);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.score-med {
  background: rgba(243, 156, 18, 0.15);
  color: hsl(35, 90%, 75%);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Map Card */
.map-body {
  padding: 0.5rem 0;
}

.map-container {
  width: 100%;
  aspect-ratio: 16/9;
  /* Premium cool slate-grey gradient matching the new map theme */
  background: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, hsl(223, 12%, 14%) 0%, hsl(223, 14%, 8%) 100%) !important;
  background-size: 16px 16px, 100% 100% !important;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Override Leaflet's default light grey background to blend empty space */
.leaflet-container {
  background-color: transparent !important;
}

/* Premium Minimalist Dark Map Theme (Soft Contrast) */
.leaflet-tile {
  filter: invert(100%) grayscale(1) brightness(1.6) contrast(1.2);
  opacity: 0.95; /* Soft medium-dark grey oceans/streets, solid black islands, and readable labels */
}

.map-continents path {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.map-continents path:hover {
  fill: rgba(255, 255, 255, 0.09);
  stroke: rgba(0, 242, 254, 0.3);
}

.custom-leaflet-pin-wrapper {
  background: none !important;
  border: none !important;
}

.map-pin {
  position: relative;
  width: 20px;
  height: 20px;
}

.pin-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.45;
  animation: pinPulse 2s infinite ease-out;
}

.pin-dot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.map-pin.is-home .pin-glow-ring {
  background: var(--accent-pink);
}

.map-pin.is-home .pin-dot-core {
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
}

.map-pin.is-night .pin-glow-ring {
  display: none;
}

.map-pin.is-night .pin-dot-core {
  background: var(--text-muted);
  box-shadow: none;
}

@keyframes pinPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(3.0); opacity: 0; }
}

/* Leaflet Popups Glassmorphism */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 12, 16, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-premium) !important;
  padding: 0.25rem !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
  background: rgba(10, 12, 16, 0.85) !important;
  border-left: 1px solid var(--border-glass) !important;
  border-bottom: 1px solid var(--border-glass) !important;
  box-shadow: none !important;
}

.custom-leaflet-popup .leaflet-popup-content {
  margin: 8px 12px !important;
}

/* Share & Export Card */
.export-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bttn-accent {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
}

.bttn-accent i {
  width: 1.1rem;
  height: 1.1rem;
}

.bttn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.bttn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

.bttn-blue {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.bttn-blue:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

.copy-feedback-toast {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: hsl(142, 90%, 75%);
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
  animation: fadeIn 0.3s;
}

/* Dynamic Slide-Up Footer & Hover Trigger Area */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.85rem;
  background: rgba(10, 12, 16, 0.65);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.footer.visible {
  transform: translateY(0);
  opacity: 1;
}

.footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.footer a:hover {
  color: var(--accent-blue);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
  text-decoration: underline;
}

.footer-hover-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 999;
  pointer-events: auto;
}

/* Responsive Queries */
@media (max-width: 1200px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .app-container {
    padding: 1rem 1.5rem;
  }
  
  .search-and-presets {
    flex-direction: column;
    align-items: stretch;
  }
  
  .card-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .city-time-diagnostics {
    text-align: left;
  }
  
  .timezone-badges {
    justify-content: flex-start;
  }
  
  .timeline-hour-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .hour-cell {
    aspect-ratio: 1;
    flex-direction: column;
  }
  
  .hour-cell .cell-label {
    display: none;
  }
}

/* Live Time Button */
.bttn-live {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.bttn-live:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.bttn-live.active {
  background: rgba(46, 204, 113, 0.15);
  color: hsl(142, 90%, 75%);
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  transition: all 0.3s;
}

.bttn-live.active .pulse-dot {
  background: hsl(142, 90%, 75%);
  box-shadow: 0 0 8px hsl(142, 90%, 75%);
  animation: livePulse 1.5s infinite alternate;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Entrance & Interactive Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Expand & Collapse Transitions */
@keyframes cardExpand {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  30% {
    max-height: 500px;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 500px;
    margin-bottom: 1.25rem;
    overflow: visible;
  }
}

@keyframes cardCollapse {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    max-height: 500px;
    margin-bottom: 1.25rem;
    overflow: hidden;
  }
  70% {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  100% {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

.timeline-card.new-card {
  animation: cardExpand 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline-card.removing {
  animation: cardCollapse 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Switch Knob Spring Animation Override */
.slider:before {
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form-input {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}
