* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #4facfe;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #1a2035;
    --light-color: #f8f9fa;
    --accent-color: #667eea;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient: linear-gradient(45deg, #ff6b9d, #c44569);
    --secondary-gradient: linear-gradient(45deg, #4facfe, #00f2fe);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--background-gradient);
    overflow: hidden;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 32, 53, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 28px;
}

/* Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 8px 15px;
    min-width: 300px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-box i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 8px;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.search-filters select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

/* Stats */
.stats {
    display: flex;
    gap: 30px;
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 8px 12px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-menu {
    background: var(--accent-color);
}

.btn-atc {
    background: linear-gradient(45deg, #28a745, #20c997);
    font-size: 12px;
    padding: 8px 16px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: rgba(26, 32, 53, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1500;
    transition: var(--transition-slow);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 20px;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.sidebar-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-sidebar {
    background: var(--danger-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-sidebar:hover {
    transform: rotate(90deg);
    background: #c82333;
}

.sidebar-section {
    margin-bottom: 25px;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.sidebar-section h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: white;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Range Slider */
.range-slider {
    margin-top: 10px;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border-radius: 3px;
    outline: none;
    margin: 5px 0;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-values {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
}

/* ATC Controls */
.atc-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.atc-controls select {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px;
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.atc-player {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-top: 10px;
}

.atc-player audio {
    width: 100%;
    margin-bottom: 10px;
}

.atc-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
}

/* Map */
#map {
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.leaflet-control-attribution {
    display: none !important;
}

/* Search Results */
.search-results {
    position: fixed;
    top: 90px;
    left: 20px;
    width: 350px;
    max-height: 60vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 2000;
    display: none;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.search-results.show {
    display: block;
    animation: slideInLeft 0.3s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-gradient);
    color: white;
}

.results-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-results {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.close-results:hover {
    background: rgba(255, 255, 255, 0.2);
}

.results-content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.result-item:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.result-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.result-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark-color);
}

.result-details p {
    font-size: 12px;
    color: rgba(26, 32, 53, 0.7);
}

/* Flight Modal Enhancement */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
}

.modal-overlay.show {
    display: block;
}

.flight-modal {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 0;
    min-width: 420px;
    max-width: 480px;
    z-index: 2000;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition-slow);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

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

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.flight-number {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.flight-info {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.info-section {
    margin-top: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--primary-color);
}

.info-section h4 {
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    transform: translateX(5px);
    background: rgba(79, 172, 254, 0.05);
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: var(--border-radius-small);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 13px;
}

.altitude-indicator {
    background: var(--secondary-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flight-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-scheduled {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.status-delayed {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
    border: 1px solid #ff5722;
}

.flight-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin: 15px 0;
}

.airport-code {
    font-size: 18px;
    font-weight: 700;
}

.airport-name {
    font-size: 11px;
    opacity: 0.9;
}

.flight-arrow {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Weather Legend */
.weather-legend {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    z-index: 1500;
    border: 1px solid var(--glass-border);
    min-width: 200px;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.legend-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.legend-header button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.legend-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.legend-item span {
    font-size: 12px;
    color: var(--dark-color);
}

/* Loading Indicator */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 3000;
    display: none;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.loading.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading div {
    color: var(--dark-color);
    font-weight: 500;
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    z-index: 2500;
    transform: translateX(400px);
    transition: var(--transition-slow);
    max-width: 350px;
    border: 1px solid var(--glass-border);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.notification.warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.notification.error {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

/* Custom Leaflet Styles */
.aircraft-icon {
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.aircraft-icon.selected {
    background: var(--secondary-color);
    width: 20px;
    height: 20px;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.6);
    z-index: 1000;
}

.airport-icon {
    background: #4caf50;
    border: 2px solid white;
    border-radius: 4px;
    width: 12px;
    height: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.airport-icon.selected {
    background: #ff9800;
    width: 16px;
    height: 16px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: "Poppins", sans-serif;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 320px;
    }

    .search-box {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-box {
        min-width: auto;
        width: 100%;
    }

    .stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .controls {
        gap: 8px;
        flex-wrap: wrap;
    }

    .flight-modal {
        min-width: 90vw;
        max-width: 90vw;
        left: 5vw !important;
        top: 10vh !important;
    }

    .search-results {
        width: calc(100vw - 40px);
        left: 20px;
        max-height: 50vh;
    }

    .sidebar {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
    }

    .weather-panel {
        width: calc(100vw - 20px);
        right: 10px;
        top: 80px;
    }

    .advanced-search-panel {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 12px;
    }

    .logo {
        font-size: 20px;
    }

    .stats {
        display: none;
    }

    .controls .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .flight-modal {
        min-width: 95vw;
        padding: 15px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* User Location Icon */
.user-location-icon {
    background: #ff6b9d;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.6);
    animation: userLocationPulse 2s infinite;
}

@keyframes userLocationPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 107, 157, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 5px 20px rgba(255, 107, 157, 0.8);
    }
}

/* Quick Info Popup */
.quick-info-popup .leaflet-popup-content-wrapper {
    background: rgba(26, 32, 53, 0.95);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-info-popup .leaflet-popup-tip {
    background: rgba(26, 32, 53, 0.95);
}

/* Enhanced Button Styles */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.advanced-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--primary-color);
}

.loading-state .spinner {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Error States */
.error-state {
    text-align: center;
    padding: 20px;
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--border-radius-small);
    margin: 10px 0;
}

.error-state i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Success States */
.success-state {
    text-align: center;
    padding: 15px;
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    border-radius: var(--border-radius-small);
    margin: 10px 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(26, 32, 53, 0.6);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: rgba(26, 32, 53, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    margin-top: -8px;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(26, 32, 53, 0.95);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.badge-secondary {
    background: rgba(79, 172, 254, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.badge-success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Progress Bars */
.progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.card-subtitle {
    font-size: 14px;
    color: rgba(26, 32, 53, 0.7);
    margin: 5px 0 0 0;
}

/* Lists */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.list-group-item:hover {
    background: rgba(79, 172, 254, 0.05);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action {
    color: var(--dark-color);
    text-decoration: none;
    display: block;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin: 15px 0;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-primary {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.alert-secondary {
    background: rgba(79, 172, 254, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}
.text-secondary {
    color: var(--secondary-color);
}
.text-success {
    color: var(--success-color);
}
.text-warning {
    color: var(--warning-color);
}
.text-danger {
    color: var(--danger-color);
}
.text-muted {
    color: rgba(26, 32, 53, 0.6);
}

.bg-primary {
    background-color: var(--primary-color);
}
.bg-secondary {
    background-color: var(--secondary-color);
}
.bg-success {
    background-color: var(--success-color);
}
.bg-warning {
    background-color: var(--warning-color);
}
.bg-danger {
    background-color: var(--danger-color);
}

.d-none {
    display: none !important;
}
.d-block {
    display: block !important;
}
.d-flex {
    display: flex !important;
}
.d-grid {
    display: grid !important;
}

.justify-content-center {
    justify-content: center;
}
.justify-content-between {
    justify-content: space-between;
}
.justify-content-around {
    justify-content: space-around;
}
.justify-content-start {
    justify-content: flex-start;
}
.justify-content-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}
.align-items-start {
    align-items: flex-start;
}
.align-items-end {
    align-items: flex-end;
}

.flex-column {
    flex-direction: column;
}
.flex-row {
    flex-direction: row;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-nowrap {
    flex-wrap: nowrap;
}

.m-0 {
    margin: 0 !important;
}
.m-1 {
    margin: 5px !important;
}
.m-2 {
    margin: 10px !important;
}
.m-3 {
    margin: 15px !important;
}
.m-4 {
    margin: 20px !important;
}
.m-5 {
    margin: 25px !important;
}

.p-0 {
    padding: 0 !important;
}
.p-1 {
    padding: 5px !important;
}
.p-2 {
    padding: 10px !important;
}
.p-3 {
    padding: 15px !important;
}
.p-4 {
    padding: 20px !important;
}
.p-5 {
    padding: 25px !important;
}

.mt-0 {
    margin-top: 0 !important;
}
.mt-1 {
    margin-top: 5px !important;
}
.mt-2 {
    margin-top: 10px !important;
}
.mt-3 {
    margin-top: 15px !important;
}
.mt-4 {
    margin-top: 20px !important;
}
.mt-5 {
    margin-top: 25px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}
.mb-1 {
    margin-bottom: 5px !important;
}
.mb-2 {
    margin-bottom: 10px !important;
}
.mb-3 {
    margin-bottom: 15px !important;
}
.mb-4 {
    margin-bottom: 20px !important;
}
.mb-5 {
    margin-bottom: 25px !important;
}

.w-100 {
    width: 100% !important;
}
.h-100 {
    height: 100% !important;
}

.border-radius-small {
    border-radius: var(--border-radius-small) !important;
}
.border-radius {
    border-radius: var(--border-radius) !important;
}

.shadow-light {
    box-shadow: var(--shadow-light) !important;
}
.shadow-heavy {
    box-shadow: var(--shadow-heavy) !important;
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .controls,
    .notification,
    .loading,
    .flight-modal,
    .search-results,
    .weather-panel,
    .advanced-search-panel {
        display: none !important;
    }

    #map {
        height: 100vh !important;
        width: 100% !important;
    }

    body {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --background-gradient: linear-gradient(
            135deg,
            #ffffff 0%,
            #f0f0f0 100%
        );
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(0, 0, 0, 0.9);
    }

    .aircraft-icon {
        border: 3px solid #000000;
    }

    .airport-icon {
        border: 3px solid #000000;
    }

    .flight-modal,
    .search-results,
    .sidebar,
    .weather-panel {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid #000000;
    }
}
