/* ============================================
   AirportTaxiDelen.be — Global Styles
   ============================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1140a6;
  --warning: #f59e0b;
  --success: #10b981;
  --bg-light: #f8fafc;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: #1e293b;
}

/* ---- Navbar ---- */
.bg-primary-dark { background: #0f2d6e !important; }

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, #0f2d6e 0%, #1a56db 60%, #1e40af 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.min-vh-50 { min-height: 50vh; }
.min-vh-80 { min-height: 80vh; }

.search-card {
  background: white;
  backdrop-filter: blur(10px);
}

.hero-icon-wrapper {
  animation: float 3s ease-in-out infinite;
}

.hero-taxi-icon {
  font-size: 10rem;
  color: rgba(255,255,255,.15);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ---- Stats ---- */
.stat-item { padding: 0.5rem; }

/* ---- How it works ---- */
.step-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
}

.how-card {
  transition: transform .2s, box-shadow .2s;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

/* ---- Airport Cards ---- */
.airport-card {
  transition: transform .2s, box-shadow .2s, border-color .2s;
  border-color: #e2e8f0 !important;
}
.airport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,219,.12);
  border-color: var(--primary) !important;
}

.airport-code-badge {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  letter-spacing: 1px;
  min-width: 52px;
  text-align: center;
}

/* ---- Route Cards ---- */
.route-card {
  transition: transform .2s, box-shadow .2s;
}
.route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,86,219,.13) !important;
}

.price-badge {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---- Branding icon ---- */
.brand-icon-sm {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

/* ---- Admin ---- */
.admin-sidebar {
  min-width: 220px;
  position: sticky;
  top: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.admin-main {
  min-height: calc(100vh - 60px);
}

.active-nav {
  background: rgba(255,255,255,.15) !important;
  font-weight: 600;
}

.nav-link:hover {
  background: rgba(255,255,255,.08);
}

/* ---- Stat cards (admin) ---- */
.stat-card { transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- Tables ---- */
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
.table td { vertical-align: middle; }

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(26,86,219,.15);
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ---- Alerts ---- */
.alert { border: none; border-radius: 10px; }

/* ---- Optgroup landnamen in pulldowns (native fallback) ---- */
select optgroup {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 700;
}

/* ---- Tom Select: dropdown altijd boven Leaflet map ---- */
.ts-dropdown {
  z-index: 9999 !important;
}

/* ---- Tom Select optgroup headers ---- */
.ts-dropdown .optgroup-header,
.ts-dropdown .optgroup > .optgroup-header {
  background-color: #dbeafe !important;
  color: #1e40af !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  letter-spacing: .4px;
  padding: .5rem .75rem !important;
  cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .admin-sidebar { min-width: 180px; font-size: .9rem; }
  .hero-section { min-height: 380px; }
}

@media (max-width: 576px) {
  .admin-sidebar { display: none; }
  .hero-section { padding: 2rem 0; }
}
