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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#map {
  width: 100%;
  height: 100%;
}

.filter-btn.active {
  background-color: rgb(37, 99, 235);
}

.filter-btn:not(.active) {
  background-color: rgb(55, 65, 81);
}

.map-type-btn {
  position: relative;
}

.map-type-btn.active {
  background-color: rgb(37, 99, 235);
}

.map-type-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: rgb(96, 165, 250);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.8),
      0 0 30px rgba(96, 165, 250, 0.4);
  }
}

#flightInfo:not(.hidden) {
  animation: fadeIn 0.3s ease-out;
}

#filterPanel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#togglePanel {
  transition: all 0.2s ease;
}

#togglePanel:hover {
  transform: scale(1.05);
  background-color: rgba(55, 65, 81, 0.95);
}

#playBtn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#playBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

#playBtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#playBtn:active::before {
  width: 300px;
  height: 300px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

select {
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover {
  background-color: rgb(55, 65, 81);
}

button {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.bg-gray-750 {
  background-color: rgb(42, 47, 58);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(31, 41, 55);
}

::-webkit-scrollbar-thumb {
  background: rgb(75, 85, 99);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(107, 114, 128);
}

.hover\:bg-gray-700:hover {
  transition: background-color 0.2s ease;
}

.hover\:bg-gray-600:hover {
  transition: background-color 0.2s ease;
}

table tr {
  transition: background-color 0.15s ease;
}

.modal-backdrop {
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.stat-number {
  animation: slideInRight 0.5s ease-out;
}

input:focus,
select:focus,
textarea:focus {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.route-marker {
  animation: pulse 2s infinite;
}
