/* VibeVoyage Aesthetics Stylesheet */

:root {
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --border-glow: 0 0 15px rgba(139, 92, 246, 0.15);
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.4);
}

/* Timeline Components */
.timeline-track {
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background: linear-gradient(to bottom, #8b5cf6 0%, #3b82f6 100%);
  opacity: 0.25;
}

.timeline-node {
  position: relative;
  padding-left: 45px;
  transition: all 0.3s ease;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #060810;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background-color: #64748b; /* default upcoming */
}

/* Timeline status colors */
.timeline-dot.completed {
  background-color: #10b981 !important; /* Green */
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-dot.current {
  background-color: #3b82f6 !important; /* Blue */
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
  animation: pulse-glow 2s infinite alternate;
}

.timeline-dot.upcoming {
  background-color: #64748b !important; /* Muted Slate */
}

.timeline-dot.start {
  background-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.timeline-dot.walk {
  background-color: #475569;
  width: 12px;
  height: 12px;
  left: 10px;
  top: 9px;
}

.timeline-dot.wait {
  background-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 15s linear infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 4px rgba(59, 130, 246, 0.4); }
  100% { transform: scale(1.15); box-shadow: 0 0 15px rgba(59, 130, 246, 0.8); }
}

@keyframes pulse-banner {
  0% { opacity: 0.95; }
  50% { opacity: 0.75; }
  100% { opacity: 0.95; }
}

#globalDelayBanner {
  animation: pulse-banner 2s infinite ease-in-out;
}

/* Leaflet Map Customize */
.leaflet-container {
  background: #0b0f19 !important;
  font-family: inherit;
}

.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.leaflet-bar a {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.leaflet-bar a:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #111827 !important;
  color: #f1f5f9 !important;
  border: 1px solid #1e293b !important;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 11px !important;
}

/* Cards Hover glow */
.hover-glow:hover {
  box-shadow: var(--border-glow);
  border-color: rgba(139, 92, 246, 0.35);
}

.active-glow {
  box-shadow: var(--border-glow);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Custom Tabs active state */
.tab-btn.active {
  color: #ffffff !important;
  border-bottom-color: #8b5cf6 !important;
}

.form-tab-btn.active {
  color: #ffffff !important;
  border-bottom-color: #8b5cf6 !important;
}
