/* ── NOTAM Alert System ──────────────────────────────────────────── */

/* NOTAM Banner (top of airport panel for critical/warning) */
.notam-banner {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notam-banner i {
  font-size: 16px;
}

.notam-banner-critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.notam-banner-warning {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.notam-banner-caution {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fde047;
}

/* NOTAM Section Container */
.notam-section {
  margin-bottom: 16px;
}

.notam-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.notam-section-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notam-section-header .notam-count {
  background: rgba(0, 174, 239, 0.2);
  color: #7dd3fc;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.notam-section-body {
  padding: 0;
}

.expandable-header.expanded ~ .notam-section-body {
  padding: 8px;
}

/* NOTAM Card */
.notam-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid #64748b;
  transition: background 0.15s;
}

.notam-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notam-card-critical {
  border-left-color: #ef4444;
}

.notam-card-warning {
  border-left-color: #f97316;
}

.notam-card-caution {
  border-left-color: #eab308;
}

.notam-card-info {
  border-left-color: #64748b;
}

/* Card header row */
.notam-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.notam-card-id {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-family: 'Courier New', Courier, monospace;
}

/* Severity Badge */
.notam-severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notam-severity-critical {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.notam-severity-warning {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
}

.notam-severity-caution {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1a1a2e;
}

.notam-severity-info {
  background: rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

/* Scheduled Badge */
.notam-scheduled-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notam-scheduled-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.notam-scheduled-inactive {
  background: rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

/* Inactive card: subtle visual cue */
.notam-card-inactive {
  opacity: 0.65;
  border-left-style: dashed;
}

/* Schedule text */
.notam-schedule {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Upcoming Badge */
.notam-upcoming-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Impact type label */
.notam-impact {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

/* NOTAM text body (monospace) */
.notam-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow-y: auto;
}

/* Effective dates row */
.notam-dates {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
}

.notam-dates span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Disclaimer */
.notam-disclaimer {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #fde047;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.notam-disclaimer i {
  margin-top: 1px;
  flex-shrink: 0;
}

/* Stale Warning */
.notam-stale-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Meta footer (source + timestamp) */
.notam-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 10px;
  color: #475569;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

/* Filter panel additions */
.filter-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.pin-notam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #f97316);
  margin-right: 6px;
  vertical-align: middle;
}

.pin-critical {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #ef4444;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 4px 1px rgba(239, 68, 68, 0.6);
}

/* NOTAM filter loading state */
.notam-filter-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(125, 211, 252, 0.3);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
  animation: notam-spin 0.7s linear infinite;
}
@keyframes notam-spin {
  to { transform: rotate(360deg); }
}
.notam-filter-option.loaded .notam-filter-spinner {
  display: none !important;
}
.notam-filter-option:not(.loaded) {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}
.notam-filter-option:not(.loaded) input[type="checkbox"] {
  visibility: hidden;
}
.notam-filter-option.loaded {
  pointer-events: auto;
}

/* NOTAM Loading Indicator */
.notam-loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notam-loading-indicator i {
  color: #7dd3fc;
  font-size: 14px;
}

/* No Active NOTAMs */
.notam-no-data {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.notam-no-data i {
  color: #22c55e;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
  .notam-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notam-dates {
    flex-direction: column;
    gap: 4px;
  }

  .notam-banner {
    font-size: 12px;
    padding: 8px 10px;
  }

  .notam-text {
    font-size: 10px;
    max-height: 120px;
  }
}
