﻿/* ==========================================================================
   1. GLOBAL & ROOT CONFIGURATION
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --noaa-blue: #4a83bd;
    --noaa-blue-dark: #3a6a9c;
    --noaa-alert: red;
    --noaa-text: #ffffff;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   2. NOAA CARD SHELL (APPLICATION CONTAINER)
   ========================================================================== */
.noaa-card {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #d6e0ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.noaa-card-header {
    background: linear-gradient(180deg, var(--noaa-blue) 0%, var(--noaa-blue-dark) 100%);
    padding: 0.75rem 1.25rem;
}

    .noaa-card-header h2 {
        margin: 0;
        color: var(--noaa-text);
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .noaa-card-header h3 {
        margin: 0;
        color: var(--noaa-text);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

.noaa-content {
    padding: 0;
    position: relative;
}

.card-footer {
    padding: 10px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    color: #475569;
    font-size: 0.85rem;
}

/* ==========================================================================
   3. LEAFLET MAP VIEWPORT (FIXED FOR ALL MONITORS)
   ========================================================================== */

.leaflet-bottom {
    margin-bottom: 8px;
}

.leaflet-left {
    margin-left: 8px;
}

/* ==========================================================================
   7. THREAT MATRIX UI (SCROLLABLE)
   ========================================================================== */
.matrix-panel {
    background: #1b2836;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.matrix-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.day-card {
    background: #26374a;
    border-radius: 10px;
    padding: 16px;
    text-align: left;
}

    .day-card .day-name {
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

/* ==========================================================================
   8. SENSOR TABLES & DATA GRIDS (SCROLLABLE)
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-sensor-grid {
    font-size: 0.875rem;
}

    .custom-sensor-grid .k-grid-header {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

        .custom-sensor-grid .k-grid-header th {
            font-weight: 600;
            text-align: center;
            white-space: nowrap;
        }

    .custom-sensor-grid .k-grid-content td {
        text-align: center;
        white-space: nowrap;
    }

    .custom-sensor-grid .k-grid-content tr:nth-child(even) {
        background-color: #f8f9fa;
    }

/* ==========================================================================
   9. BUSY / LOADING OVERLAY
   ========================================================================== */
.arlBusy {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(#1a3562e3, #f1f6f7de);
    z-index: 3000;
}

    .arlBusy > p {
        border: 1px solid black;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        margin-top: 20vh;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
        width: 250px;
        font-size: 1.2em;
        background-color: #e4eae9;
        text-align: center;
    }

/* ==========================================================================
   10. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .top-center-stack {
        flex-direction: column;
        top: 6px;
        gap: 4px;
    }
}
