/**
 * @file
 * VATSIM/IVAO overlay styles — v44 dark theme.
 */

/* ── Popup ── */
.sc-vatsim-popup {
  font-family: 'Inter', system-ui, sans-serif;
  min-width: 200px;
  padding: 0.25rem 0;
}

.sc-vatsim-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sc-vatsim-popup__header strong {
  font-size: 1.1rem;
  color: #f1f5f9;
}

.sc-vatsim-popup__network {
  background: #22c55e;
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sc-vatsim-popup__network--ivao {
  background: #f97316;
}

.sc-vatsim-popup__route {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.sc-vatsim-popup__stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #cbd5e1;
}

.sc-vatsim-popup__pilot {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* ── Control panel ── */
.sc-vatsim-control {
  position: absolute;
  top: 80px;
  left: 10px;
  z-index: 1000;
}

.sc-vatsim-control__toggle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.sc-vatsim-control__toggle:hover {
  border-color: #f59e0b;
  background: rgba(30, 41, 59, 0.95);
}

.sc-vatsim-control__panel {
  position: absolute;
  top: 0;
  left: 42px;
  background: #0f172a;
  -webkit-
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 10px;
  padding: 1rem;
  min-width: 240px;
  color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.sc-vatsim-control__panel h4 {
  margin: 0 0 0.75rem;
  color: #f59e0b;
  font-size: 0.95rem;
}

.sc-vatsim-control__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.sc-vatsim-control__row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: #e2e8f0;
}

.sc-vatsim-control__row input[type="checkbox"] {
  accent-color: #f59e0b;
}

.sc-vatsim-control__row select {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}

.sc-vatsim-control__refresh-btn {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 0.2s, background 0.2s;
}

.sc-vatsim-control__refresh-btn:hover {
  border-color: #f59e0b;
  background: rgba(212, 168, 67, 0.1);
}

.sc-vatsim-control__hint {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

/* Status badges */
.sc-vatsim-status--ok {
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 600;
}

.sc-vatsim-status--error {
  color: #f87171;
  font-size: 0.75rem;
}

.sc-vatsim-status--loading {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ── Dark popup wrappers — SOLID OPAQUE v48 bulletproof ── */
.leaflet-popup-content-wrapper,
.sc-dark-popup .leaflet-popup-content-wrapper,
.sc-flight-popup-container .leaflet-popup-content-wrapper {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-radius: 10px !important;
  border: 1px solid #d4a843 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8) !important;
}
.leaflet-popup-tip,
.sc-dark-popup .leaflet-popup-tip,
.sc-flight-popup-container .leaflet-popup-tip {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border: none !important;
}
.leaflet-popup-content {
  margin: 12px 16px !important;
  color: #e2e8f0 !important;
}
.leaflet-popup-close-button,
.sc-dark-popup .leaflet-popup-close-button {
  color: #94a3b8 !important;
  font-size: 20px !important;
}
.leaflet-popup-close-button:hover,
.sc-dark-popup .leaflet-popup-close-button:hover {
  color: #f59e0b !important;
}

