body {
    background: linear-gradient(180deg, #f4f7fb 0%, #eaf1f8 100%);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
    margin: 0;
}

a {
    text-decoration: none;
}

/* HEADER */

.header-banner {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: white;
    padding: 18px 20px;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.header-link:hover {
    color: white;
}

/* SEARCH SECTION */

.search-section {
    margin-top: -12px;
    margin-bottom: 28px;
}

.search-box {
    max-width: 720px;
    margin: auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 50px;
    border-radius: 12px !important;
    padding: 10px 16px !important;
}

.search-btn {
    height: 50px;
    padding: 10px 20px;
    border-radius: 12px !important;
}

/* Cards */
.card,
.card-simple {
    border: none;
    border-radius: 16px;
    padding: 22px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.main-container {
    max-width: 1400px;
    margin: auto;
}

/* Typography */
.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 6px;
    color: #334155;
    letter-spacing: 0.03em;
}

.small-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    min-height: 42px;
    transition: all 0.18s ease;
}

.btn-primary {
    background-color: #6baecf !important;
    border-color: #6baecf !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #5a9cbf !important;
    border-color: #5a9cbf !important;
}

.btn-outline-primary {
    border-radius: 12px !important;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: white !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Forms */
.form-control {
    border-radius: 12px !important;
    border: 1px solid #dbe4ee !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #6baecf !important;
    box-shadow: 0 0 0 0.2rem rgba(107, 174, 207, 0.16) !important;
}

/* Maps */
#sigmet-map {
    height: 600px !important;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #eee;
}

#map {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#cesiumContainer {
    height: 520px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d6dee8;
}

/* Legend */
.sigmet-legend {
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    line-height: 1.4;
}

.sigmet-legend .box {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 1px solid #ccc;
}

.risk-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.risk-low {
    background: #d4edda;
    color: #155724;
}

.risk-medium {
    background: #fff3cd;
    color: #856404;
}

.risk-high {
    background: #f8d7da;
    color: #721c24;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

.turbulence-box {
    text-align: right;
}

.page-narrow {
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    padding: 26px;
}

.page-title-row {
    margin-bottom: 20px;
}

.saved-flight-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-nav .btn,
    .header-nav a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .card,
    .card-simple {
        padding: 16px;
    }

    .card-header-row {
        flex-direction: column;
        gap: 10px;
    }

    .risk-box {
        align-self: flex-start;
    }

    .saved-flight-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-narrow {
        max-width: 100%;
        padding: 0 12px;
    }

    #cesiumContainer {
        height: 280px;
    }

    h5 {
        font-size: 1.1rem;
    }
}