body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
#app-container {
    display: flex;
    flex-direction: column;
    height: 100%; 
}
.header {
    background-color: white;
    padding: 12px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1002;
}
.header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}
.credits-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.control-group label {
    font-weight: 500;
    font-size: 0.9em;
}
#info-btn {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
#info-btn:hover {
    background-color: #e9ecef;
}

.footer-status-bar {
    background-color: white;
    padding: 8px 24px;
    border-top: 1px solid #e0e0e0;
    z-index: 1002;
    display: flex;
    justify-content: flex-end;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}
.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f5c518;
    transition: background-color 0.5s ease;
}
.status-light.live { background-color: #28a745; }
.status-light.error { background-color: #dc3545; }

#map-container {
    flex-grow: 1;
    position: relative;
    min-height: 0; 
}
#map {
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
}
#filter-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.1);
}
#filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}
#filter-panel-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}
#filter-panel-content {
    padding: 15px;
}

/* --- Menu Styles --- */
.menu-container {
    position: relative;
}
#menu-toggle-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#menu-dropdown {
    position: absolute;
    top: 45px; 
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1003;
    width: 220px;
    border: 1px solid #e0e0e0;
    padding: 5px;
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}
.menu-item-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
     width: 100%;
    box-sizing: border-box;
}
.menu-item-column label {
     margin-bottom: 8px;
     font-weight: 500;
}
.menu-item label {
    font-weight: 500;
}
.menu-item button {
     width: 100%;
     text-align: left;
     background: none;
     border: none;
     padding: 0;
     font-size: 1rem;
     font-weight: 500;
     cursor: pointer;
}
.menu-item button:hover {
    color: #0056b3;
}
.hidden {
    display: none;
}

/* Toggle Switch CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #28a745;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* --- Info Modal Styles --- */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}
.close-modal-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.filter-group { margin-bottom: 15px; }
.filter-group label { display: block; margin-bottom: 5px; font-size: 0.9em; font-weight: 500; color: #555; }
.filter-group input[type="text"] { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }
.range-slider-group { position: relative; height: 20px; }
.range-slider-group input[type="range"] { position: absolute; width: 100%; -webkit-appearance: none; background: transparent; pointer-events: none; }
.range-slider-group input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: #1E3A8A; cursor: pointer; }
.range-slider-group input[type="range"]::-moz-range-thumb { pointer-events: auto; height: 16px; width: 16px; border-radius: 50%; background: #1E3A8A; cursor: pointer; }
.range-values { display: flex; justify-content: space-between; font-size: 0.8em; color: #666; margin-top: 5px; }
.clear-filters-btn-container { padding-top: 10px; border-top: 1px solid #e0e0e0; }
#clear-filters-btn { width: 100%; padding: 10px; background-color: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; transition: background-color 0.2s; }
#clear-filters-btn:hover { background-color: #5a6268; }

.plane-marker-wrapper .plane-label {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(1px);
    padding: 2px 5px;
    border-radius: 3px;
    color: #1f2937;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.plane-icon { 
    background-image: url('https://www.lkaa.cz/airplane.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    transition: transform 1s linear; 
}

.labels-hidden .plane-label { 
    display: none;
}

.status-blinking {
    color: #b08900;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0.6; }
}

.vector-controls {
    display: flex;
    background-color: #e9ecef;
    border-radius: 6px;
    padding: 4px;
}
.vector-btn {
    background-color: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.vector-btn:hover {
    background-color: #dee2e6;
}
.vector-btn.active {
    background-color: white;
    color: #1E3A8A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
