* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Melhorias para touch em mobile (iOS e Android) */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: smooth;
  /* Prevenir bounce scroll em iOS e overscroll em Android */
  overscroll-behavior: none;
}

body {
  /* Otimizações para renderização suave em Android */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevenir scroll quando modal fullscreen está aberto */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Menu de Navegação */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #f0f4f8;
  color: #2d3748;
}

.nav-link.active {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 20px;
}

.container {
  background: rgba(255, 255, 255, 0.96);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.pilot-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilot-icon img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

h1 {
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: #666;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 400;
}

/* Espaço para anúncio - topo */
.ad-space-top {
  min-height: 90px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
}

.ad-placeholder {
  color: #999;
  font-size: 12px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

select, input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
  color: #1a1a1a;
}

select, input {
  scroll-margin-top: 100px;
}

select:focus, input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select option {
  padding: 10px;
}

.search-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

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

.search-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading {
  display: none;
  margin-top: 24px;
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.result {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e5e5;
}

.result.success {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.result.error {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.result.warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.status-badges-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
  width: auto;
  max-width: fit-content;
}

.flight-number {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.airline-logo {
  height: 24px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  vertical-align: middle;
}

.flight-digits {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.flight-route {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Container da rota com origem e destino */
.flight-route-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}

.airport-info-block {
  flex: 1;
  min-width: 0;
  background: white;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.airport-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.airport-clickable {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.airport-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  transition: color 0.2s ease;
  /* Padronizado em 14px */
}

.airport-clickable:hover .airport-name {
  color: #3b82f6;
}

.airport-info-btn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.airport-clickable:hover .airport-info-btn {
  background: #2563eb;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.escala-badge-container {
  margin-top: 4px;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: normal;
  max-width: 120px;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
  display: inline-block;
}

.status-ok {
  background: #10b981;
  color: white;
}

.status-flying {
  background: #3b82f6;
  color: white;
}

.status-scheduled {
  background: #6b7280;
  color: white;
}

.status-alternate {
  background: #f97316;
  color: white;
}

.status-warning {
  background: #f59e0b;
  color: white;
}

.status-error {
  background: #ef4444;
  color: white;
}

/* Badge de cache */
.cache-badge {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  background: #dbeafe;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Alerta de alternativa */
.alert-alternate {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-icon {
  font-size: 20px;
  line-height: 1;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  color: #c2410c;
  font-size: 13px;
  margin-bottom: 4px;
}

.alert-text {
  font-size: 12px;
  color: #9a3412;
}

/* Seção de informações FR24 */
.fr24-info-section {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}

.fr24-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 10px 0;
}

.fr24-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fr24-info-grid .info-item {
  background: white;
  border: 1px solid #bfdbfe;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.info-grid-3 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
}

.info-item {
  background: white;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.info-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  /* Padronizado em 14px */
}

.info-value.small {
  font-size: 13px;
}

.info-value.flight-number-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-value.flight-number-display .airline-logo {
  height: 20px;
  max-width: 60px;
}

.info-value.flight-number-display .flight-digits {
  font-size: 18px;
  font-weight: 700;
}

.data-source {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Estilos para Trechos de Voo (Escalas) ===== */

.escala-badge {
  display: inline-block;
  background: #fbbf24;
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.flight-compact-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: space-between;
}

.flight-compact-info .info-item {
  flex: 1;
  background: white;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.expand-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

.trechos-container {
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

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

.trecho-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.trecho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trecho-number {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
}

.trecho-route {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.trecho-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trecho-info-item {
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.trecho-info-item .info-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.trecho-info-item .info-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===== Fim dos Estilos de Trechos ===== */

.error-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.error-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Espaço para anúncio - rodapé */
.ad-space-bottom {
  min-height: 90px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ddd;
}

/* Botões de Instalação PWA */
.install-buttons {
  display: flex;
  margin-top: 20px;
  gap: 12px;
  justify-content: space-between;
  max-width: 480px;
  width: 100%;
}

.install-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.install-android {
  background: linear-gradient(135deg, #3ddc84 0%, #2db670 100%);
  color: white;
}

.install-android:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(61, 220, 132, 0.5);
}

.install-ios {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: white;
}

.install-ios:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.5);
}

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

.install-btn svg {
  flex-shrink: 0;
}

.footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  color: #888;
  font-size: 12px;
}

/* Página Sobre */
.about-page {
  max-width: 600px;
}

.info-section {
  margin: 32px 0;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
  color: #1a1a1a;
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

.info-section h3 {
  color: #2d3748;
  font-size: 16px;
  margin: 16px 0 8px;
  font-weight: 600;
}

/* Grid de Aeroportos */
.airport-search {
  margin: 0 0 20px 0;
}

.search-input {
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.airport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.airport-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.airport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.airport-code {
  font-size: 20px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.airport-card-name {
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 2px;
  line-height: 1.3;
}

.airport-city {
  font-size: 10px;
  color: #718096;
}

.airport-count {
  text-align: center;
  margin: 16px 0;
  font-size: 14px;
  color: #4a5568;
  font-weight: 600;
}

.airport-card.hidden {
  display: none;
}

.coming-soon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #fbbf24;
}

.coming-soon h3 {
  margin: 0 0 8px 0;
  color: #92400e;
}

.coming-soon p {
  margin: 0;
  color: #78350f;
  font-weight: 600;
}

/* Lista de Atualizações */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.update-date {
  font-size: 11px;
  font-weight: 700;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 75px;
  white-space: nowrap;
}

.update-content strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-size: 14px;
}

.update-content p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

/* Contato */
.contact-info {
  text-align: center;
}

.contact-info p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.contact-btn {
  flex: 1;
  max-width: 200px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.about-text {
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
}

/* Responsividade */
@media (max-width: 600px) {
  body {
    padding: 70px 12px 12px;
  }

  .container {
    padding: 28px 24px;
  }

  .about-page {
    max-width: 100%;
  }

  .nav-menu {
    padding: 10px 12px;
    gap: 8px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 12px;
  }

  h1 {
    font-size: 24px;
  }

  .airplane-icon {
    font-size: 36px;
  }

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

  .flight-number {
    font-size: 20px;
  }

  .info-value {
    font-size: 16px;
  }

  .install-buttons {
    margin-top: 16px;
    gap: 10px;
  }

  .install-btn {
    font-size: 12px;
    padding: 12px 14px;
  }

  .info-section {
    padding: 20px;
    margin: 20px 0;
  }

  .info-section h2 {
    font-size: 18px;
  }

  .airport-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .contact-methods {
    flex-direction: column;
  }

  .contact-btn {
    max-width: 100%;
  }

  /* Botões de ação empilhados em mobile */
  .action-buttons-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .meteo-btn,
  .aircraft-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Trechos de voo em mobile */
  .flight-compact-info {
    flex-direction: column;
    gap: 8px;
  }

  .trecho-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trecho-card {
    padding: 12px;
  }

  .trecho-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .escala-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (max-width: 380px) {
  select, input {
    font-size: 14px;
    padding: 12px 14px;
  }

  .search-btn {
    padding: 14px;
    font-size: 15px;
  }

  .install-btn {
    font-size: 11px;
    padding: 10px 12px;
  }

  .install-btn svg {
    width: 16px;
    height: 16px;
  }
}
/* ============================================================================
   METEOROLOGIA E STATUS DA AERONAVE - BOTÕES DE AÇÃO
   ============================================================================ */

/* Container dos botões lado a lado */
.action-buttons-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

/* Botões de ação (Meteorologia e Status da Aeronave) */
.meteo-btn,
.aircraft-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Botão Meteorologia (Azul) */
.meteo-btn {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.meteo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(66, 153, 225, 0.3);
}

.meteo-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Botão Status da Aeronave (Vermelho) */
.aircraft-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.aircraft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.aircraft-btn:disabled {
  background: #fca5a5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Botão único (quando só mostra um) */
.action-buttons-container.single-button {
  grid-template-columns: 1fr;
}

.meteo-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meteo-section {
  text-align: left;
}

.meteo-header {
  font-weight: 700;
  font-size: 15px;
  color: #2d3748;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #4299e1;
}

.meteo-text {
  background: #1a202c;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.meteo-timestamp {
  margin-top: 8px;
  font-size: 12px;
  color: #718096;
  text-align: center;
}

/* Responsividade para meteorologia */
@media (max-width: 480px) {
  .meteo-text {
    font-size: 11px;
    padding: 10px;
  }
  
  .meteo-header {
    font-size: 14px;
  }
}

/* ==========================================
   AIRCRAFT POSITION STYLES
   ========================================== */

/* Form Label Centered */
.form-label-centered {
  text-align: center;
  color: #2d3748;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
  padding: 0 20px;
  line-height: 1.5;
}

/* Form Row para Prefixo + Letras */
.form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.form-group-prefix select {
  font-size: 16px;
  text-align: center;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1a1a1a;
}

.form-group-prefix select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group-letters input {
  font-size: 16px;
  text-align: center;
  letter-spacing: 4px;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: #1a1a1a;
}

.form-group-letters input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Submit Button (consistente com search-btn) */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 55, 72, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Aircraft Summary */
.aircraft-summary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.aircraft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.aircraft-header h2 {
  font-size: 28px;
  color: #1a202c;
  margin: 0;
}

.aircraft-type {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  max-width: 120px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-in-flight {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.status-on-ground {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
}

.status-not-departed {
  background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
  color: #2d3748;
}

.status-not-found {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  color: white;
}

.status-unknown {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  color: white;
}

/* Flight Info Section */
.flight-info-section {
  margin: 20px 0;
  padding: 16px;
  background: #f7fafc;
  border-radius: 8px;
}

.flight-info-section h3 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 12px;
}

/* Metadata Section */
.metadata-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.metadata-label {
  color: #718096;
  font-weight: 500;
}

.metadata-value {
  color: #2d3748;
  font-weight: 600;
}

.metadata-value.cost {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.metadata-value.small {
  font-size: 12px;
  color: #4a5568;
}

/* Position Buttons - Seguindo padrão do submit-btn */
.position-btn {
  width: 100%;
  padding: 16px;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
  display: block;
  text-align: center;
}

.live-btn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.live-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(56, 161, 105, 0.3);
}

.parking-btn {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.parking-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(49, 130, 206, 0.3);
}

.position-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Position Data Display */
.position-data {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.position-data h3 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.info-value.large {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
}

/* Info Message */
.info-message {
  text-align: center;
  padding: 20px;
  background: #ebf8ff;
  border-radius: 8px;
  color: #2c5282;
  font-weight: 500;
  margin-top: 12px;
}

/* ===== MAPA DE POSIÇÃO DE AERONAVE ===== */
.aircraft-map-section {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.aircraft-map {
  width: 100%;
  height: 400px;
  border: none;
}

.aircraft-map-section .map-controls {
  padding: 12px 16px;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
}

.aircraft-map-section .airport-map-header {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.aircraft-marker {
  background: transparent;
  border: none;
  text-align: center;
}

.airport-marker {
  background: transparent;
  border: none;
  text-align: center;
}

@media (max-width: 768px) {
  .aircraft-map {
    height: 300px;
  }
}

/* Info Box (custos) */
.info-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
  color: #2d3748;
  font-size: 18px;
  margin-bottom: 12px;
}

.info-box p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-box ul {
  color: #4a5568;
  line-height: 1.8;
}

.info-box li {
  margin-bottom: 6px;
}

/* Responsividade Aircraft */
@media (max-width: 600px) {
  .form-label-centered {
    font-size: 14px;
    padding: 0 10px;
  }
  
  .form-row {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }
  
  .aircraft-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .aircraft-header h2 {
    font-size: 22px;
  }
  
  .info-value.large {
    font-size: 24px;
  }
  
  .position-data,
  .aircraft-summary {
    padding: 16px;
  }
  
  .info-box {
    padding: 16px;
  }
  
  .info-box h3 {
    font-size: 16px;
  }
  
  .info-box p {
    font-size: 14px;
  }
}

/* ===== Modal de Detalhes do Aeroporto ===== */

.airport-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.airport-modal.show {
  opacity: 1;
}

.airport-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.airport-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.airport-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.airport-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.airport-modal-close:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.airport-modal-body {
  padding: 24px;
}

.airport-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.airport-detail-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.airport-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 16px;
}

.airport-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  word-break: break-word;
}

/* ============================================
   🗺️ ESTILOS DO MAPA LEAFLET
   ============================================ */

.airport-map-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.airport-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.airport-map-header span {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.map-fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-fullscreen-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.map-fullscreen-btn svg {
  flex-shrink: 0;
}

.airport-map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #f3f4f6;
}

.map-controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.map-toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  transition: color 0.2s ease;
  user-select: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #10b981;
  transition: 0.3s;
  border-radius: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Modal de mapa em tela cheia */
.fullscreen-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  overflow: hidden;
}

.fullscreen-map-modal.show {
  opacity: 1;
  transform: scale(1);
}

.fullscreen-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* Impede que o header seja comprimido */
  min-height: 60px;
}

.fullscreen-map-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.fullscreen-map-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  /* Área de toque maior para mobile */
  position: relative;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Aumentar área de toque sem aumentar visualmente o botão */
.fullscreen-map-close::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}

.fullscreen-map-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Estado active para feedback visual em touch */
.fullscreen-map-close:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.fullscreen-map {
  flex: 1;
  width: 100%;
  min-height: 0; /* Importante para flex containers */
  overflow: hidden;
  position: relative;
}

.fullscreen-map-controls {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

.fullscreen-map-controls .map-toggle-switch {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ajustes do Leaflet */
.leaflet-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  margin: 12px;
  font-size: 13px;
}

/* Otimizações touch para controles do Leaflet no Android/iOS */
.leaflet-control-zoom a,
.leaflet-control-layers-toggle {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  position: relative;
}

.leaflet-control-zoom a::before,
.leaflet-control-layers-toggle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  z-index: -1;
}

@media (max-width: 768px) {
  .leaflet-control-zoom a,
  .leaflet-control-layers-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* Responsividade do Modal */
@media (max-width: 600px) {
  .airport-modal {
    padding: 12px;
  }
  
  .airport-modal-content {
    max-height: 95vh;
  }
  
  .airport-modal-header {
    padding: 16px 20px;
  }
  
  .airport-modal-header h3 {
    font-size: 18px;
  }
  
  .airport-modal-body {
    padding: 16px;
  }
  
  .airport-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
  }
  
  .airport-detail-label {
    margin-right: 0;
  }
  
  .airport-detail-value {
    text-align: left;
    font-size: 15px;
  }
  
  /* Responsividade do mapa */
  .airport-map {
    height: 250px;
  }
  
  .map-fullscreen-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .map-fullscreen-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .fullscreen-map-header {
    padding: 12px 15px;
    min-height: 50px;
  }
  
  .fullscreen-map-header h3 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .fullscreen-map-close {
    width: 32px;
    height: 32px;
    font-size: 24px;
    flex-shrink: 0;
  }
  
  .fullscreen-map-controls {
    top: 60px;
    right: 10px;
  }
  
  .map-toggle-switch {
    padding: 6px 12px;
    gap: 8px;
  }
  
  .toggle-label {
    font-size: 11px;
  }
  
  .toggle-switch {
    width: 42px;
    height: 22px;
  }
  
  .toggle-slider:before {
    height: 16px;
    width: 16px;
  }
  
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }
  
  /* Responsividade da rota de voo */
  .flight-route-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .airport-info-block {
    width: 100%;
  }
  
  .airport-label {
    font-size: 10px;
  }
  
  .airport-name {
    font-size: 16px;
  }
  
  .airport-info-btn {
    width: 18px;
    height: 18px;
    font-size: 13px;
  }
  
  /* Safe area para iOS e Android (dispositivos com notch/punch-hole) */
  @supports (padding: max(0px)) {
    .fullscreen-map-modal {
      padding-top: env(safe-area-inset-top, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .fullscreen-map-header {
      padding-top: max(12px, env(safe-area-inset-top, 12px));
      padding-left: max(15px, env(safe-area-inset-left, 15px));
      padding-right: max(15px, env(safe-area-inset-right, 15px));
    }
  }
  
  /* Garantir altura mínima do header em qualquer dispositivo */
  .fullscreen-map-header {
    min-height: 50px;
  }
  
  .fullscreen-map-close {
    min-width: 32px;
    min-height: 32px;
  }
}
