:root {
  --bg-color: #0b0f19;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-color: #60a5fa;
  --accent-glow: rgba(96, 165, 250, 0.5);

  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(51, 65, 85, 0.5);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  z-index: 1;
}

/* Stunning Background Shapes */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-color) 70%);
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #4338ca;
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: #0369a1;
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #7e22ce;
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(30px) scale(1.05);
  }

  100% {
    transform: translateY(-20px) scale(0.95);
  }
}

.content-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.header {
  text-align: center;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-area svg {
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Glass panel */
.glass-panel {
  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: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 50;
}

.control-panel {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 250px;
}

.input-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-input-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.time-input,
.search-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.time-input:focus,
.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.search-input::placeholder {
  color: #475569;
}

/* Time input inner icon for WebKit */
::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
  transition: 0.2s;
}

::-webkit-calendar-picker-indicator:hover {
  margin-top: 1px;
  opacity: 1;
}

.btn-now {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px var(--accent-glow);
  height: 50px;
}

.btn-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-now:active {
  transform: translateY(0);
}

.search-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  list-style: none;
}

.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.dropdown-menu li {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  background: #334155;
}

.dropdown-city {
  font-weight: 500;
  color: white;
}

.dropdown-tz {
  font-size: 0.8rem;
  color: #64748b;
}

.no-results {
  color: #64748b;
  font-style: italic;
  text-align: center;
}

/* Grid layout */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.city-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
  z-index: 0;
  pointer-events: none;
}

.city-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.city-info,
.time-display {
  position: relative;
  z-index: 1;
}

.city-info h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tz-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.time-display {
  margin-top: 20px;
}

.time-value {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.day-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
}

.day-label.highlight {
  color: #fbbf24;
}

.different-day {
  border-bottom: 2px solid #fbbf24;
}

.remove-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  outline: none;
}

.remove-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  opacity: 1;
}

.city-card:hover .remove-btn {
  opacity: 1;
}

.remove-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.remove-btn svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
}

/* 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);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .control-panel {
    flex-direction: column;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .remove-btn {
    opacity: 1;
  }
}