
.maplibregl-map{
  background-color: var(--color-secondary-dark);
  /* background-color: #1d2731; */
  border-radius: 0px !important;
}


.maplibregl-ctrl-top-right {
  top: 6rem;
}
.maplibregl-ctrl-top-left {
  top: 7rem;
}

.maplibregl-ctrl-group{
  background-color: var(--color-secondary) !important;
  padding-top: 0px !important;
  margin-bottom: 0.6rem !important;
  margin-top: 0px !important;
  border-radius: 1rem;
}


#info-panel-scheduled {
  position: absolute;
  bottom: 1rem;
  min-width: 26rem;
  left: 1rem;
  background: var(--color-secondary);
  padding: 15px;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


#info-panel {
  position: absolute;
  top: 6rem;
  min-width: 26rem;
  right: 1rem;
  background: var(--color-secondary);
  padding: 15px;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-weight: bold;
  color: var(--color-primary);
}

#scheduled-list {
  max-height: 78vh;
  overflow-y: auto;
}

#aircraft-list {
  max-height: 78vh;
  overflow-y: auto;
}
.aircraft-call {
  color: var(--color-primary);
  font-weight: bold;
}
.aircraft-route {
  color: var(--color-secondary-dark);
}
.aircraft-alt {
  color: var(--color-primary);
}


#controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--color-secondary);
  padding: 10px;
  border-radius: 1rem;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.control-btn {
background: var(--color-primary);;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
white-space: nowrap;
}
.control-btn:hover {
background: #1976D2;
}
.control-btn.active {
background: #4CAF50;
}
#loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.9);
color: white;
padding: 20px;
border-radius: 8px;
z-index: 2000;
display: none;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.pulse {
animation: pulse 1.5s infinite;
}
#atc-polygons-layer{
  z-index: 9999 !important;
}
.maplibregl-ctrl-attrib-inner a:nth-of-type(1) {
  /* font-size: 14px !important; */
}

.maplibregl-ctrl-attrib-inner {
  /* font-size: 0px !important; */
  display: flex !important;
  padding-right: 0.5rem;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.maplibregl-ctrl-attrib.maplibregl-compact{
  display: flex;
  align-items: center;
  justify-content: center;
}

.maplibregl-ctrl-attrib-button{
  position: relative !important;
}
.maplibregl-ctrl-attrib.maplibregl-compact{

  padding: 0px !important;
}


/* ATC Sidebar */
#atc-sidebar {
position: absolute;
top: 10px;
left: 10px;
background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(7, 14, 26, 0.95));
color: #e2e8f0;
padding: 16px;
border-radius: 16px;
z-index: 999;
max-height: 85vh;
width: 300px;
overflow-y: auto;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(66, 153, 225, 0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(66, 153, 225, 0.15);
display: none;
}
.atc-item {
background: rgba(30, 41, 59, 0.7);
border-radius: 12px;
padding: 12px;
margin-bottom: 8px;
border-left: 4px solid #334155;
cursor: pointer;
transition: all 0.2s;
}
.atc-item:hover {
transform: translateX(4px);
background: rgba(30, 41, 59, 0.9);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.atc-callsign {
font-weight: 700;
font-size: 14px;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 6px;
}
.atc-rating {
background: rgba(56, 189, 248, 0.15);
color: #0ea5e9;
font-size: 10px;
font-weight: 600;
padding: 2px 5px;
border-radius: 3px;
margin-left: 6px;
}
.atc-details {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px 8px;
font-size: 11px;
color: #94a3b8;
}
.atc-item.atc-ctr { border-left-color: #ef4444; }
.atc-item.atc-app { border-left-color: #f59e0b; }
.atc-item.atc-twr { border-left-color: #22c55e; }
.atc-item.atc-ctr .atc-rating { background: rgba(239, 68, 68, 0.2); color: #fecaca; }
.atc-item.atc-app .atc-rating { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.atc-item.atc-twr .atc-rating { background: rgba(34, 197, 94, 0.2); color: #bbf7d0; }

/* ═══════ TEMA CLARO ═══════ */
body.light-theme #map {
  background: hsl(0, 0%, 95%);
}
body.light-theme #info-panel {
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
body.light-theme #info-panel h3 {
  color: #16a34a;
}
body.light-theme .stat-number {
  color: #1d4ed8;
}
body.light-theme .stat-label {
  color: #64748b;
}
body.light-theme .aircraft-item {
  border-bottom-color: #e2e8f0;
}
body.light-theme .aircraft-call {
  color: #1d4ed8;
}
body.light-theme .aircraft-route {
  color: #64748b;
}
body.light-theme .aircraft-alt {
  color: #16a34a;
}
body.light-theme #controls {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
body.light-theme .control-btn {
  background: #3b82f6;
  color: white;
}
body.light-theme .control-btn:hover {
  background: #2563eb;
}
body.light-theme .control-btn.active {
  background: #16a34a;
}
body.light-theme #loading {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
}
body.light-theme #atc-sidebar {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.97), rgba(241, 245, 249, 0.97));
  color: #1e293b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 0 0 1px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.15);
}
body.light-theme .atc-item {
  background: rgba(241, 245, 249, 0.8);
  border-left-color: #cbd5e1;
}
body.light-theme .atc-item:hover {
  background: rgba(226, 232, 240, 0.9);
}
body.light-theme .atc-callsign {
  color: #1e293b;
}
body.light-theme .atc-details {
  color: #475569;
}
body.light-theme .atc-rating {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
body.light-theme .atc-item.atc-ctr .atc-rating { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
body.light-theme .atc-item.atc-app .atc-rating { background: rgba(245, 158, 11, 0.12); color: #d97706; }
body.light-theme .atc-item.atc-twr .atc-rating { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
/* Botón tema junto a controles de mapa */
.theme-toggle-btn {
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.theme-toggle-btn:hover {
  background: rgba(0,0,0,0.9);
}
body.light-theme .theme-toggle-btn {
  background: rgba(255,255,255,0.85);
  color: #1e293b;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
body.light-theme .theme-toggle-btn:hover {
  background: rgba(255,255,255,1);
}

.maplibregl-popup-content{
  border-radius: 1rem;
  min-width: 23rem;
}
