* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background: #050a0f;
    color: #dce7ef;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #07111b;
    border-bottom: 1px solid #173149;
}

h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 3px;
    color: #62d4ff;
}

.subtitle {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #7292a8;
}

.live {
    font-weight: bold;
    color: #ffd24a;
}

.live.connected {
    color: #4cff81;
}

.pulse {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(10, minmax(110px, 1fr));
    background: #08131e;
    border-bottom: 1px solid #173149;
}

.stat {
    padding: 10px 12px;
    border-right: 1px solid #173149;
}

.label {
    font-size: 9px;
    letter-spacing: 1px;
    color: #71889a;
}

.value {
    margin-top: 4px;
    font-size: 21px;
    font-weight: bold;
}

.green {
    color: #42ef7e;
}

.yellow {
    color: #ffd24a;
}

.orange {
    color: #ff9346;
}

.red {
    color: #ff4c57;
}

.toolbar {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 7px 12px;
    background: #07111b;
    border-bottom: 1px solid #173149;
    font-size: 12px;
}

.toolbar label {
    cursor: pointer;
}

#map-status {
    margin-left: auto;
    color: #7894a7;
}

.layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 370px;
}

.map-panel {
    position: relative;
    min-height: 560px;
}

#map {
    position: absolute;
    inset: 0;
    background: #07111b;
}

.incident-panel {
    overflow-y: auto;
    background: #07111b;
    border-left: 1px solid #173149;
}

.panel-title {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 13px;
    background: #07111b;
    border-bottom: 1px solid #173149;
    color: #62d4ff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.event {
    padding: 11px 13px;
    border-bottom: 1px solid #14283a;
}

.event-title {
    font-size: 13px;
    font-weight: bold;
}

.event-detail {
    margin-top: 5px;
    color: #8ca2b2;
    font-size: 11px;
    line-height: 1.6;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 7px 12px;
    background: #07111b;
    border-top: 1px solid #173149;
    color: #627b8e;
    font-size: 10px;
}

.leaflet-container {
    background: #03070b;
}

.ix-marker {
    border-radius: 50%;
}

@media (max-width: 1300px) {

    .stats {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .incident-panel {
        max-height: 400px;
        border-left: none;
        border-top: 1px solid #173149;
    }
}


/* ==========================================================
   INTERNET VITAL - SATELLITE MAP ENHANCEMENTS
   ========================================================== */

#map {
    background: #101820;
}

.leaflet-control-layers {
    background: rgba(5, 15, 25, 0.94);
    color: #e5f3ff;
    border: 1px solid #3c657e;
    border-radius: 6px;
}

.leaflet-control-layers label {
    color: #e5f3ff;
}

.leaflet-popup-content-wrapper {
    background: rgba(6, 18, 28, 0.96);
    color: #f2f7fa;
    border: 1px solid #4b7089;
}

.leaflet-popup-tip {
    background: rgba(6, 18, 28, 0.96);
}

.leaflet-popup-content strong {
    color: #63d8ff;
}

.leaflet-control-zoom a {
    background: rgba(6, 18, 28, 0.94);
    color: white;
    border-color: #46657a;
}

.leaflet-control-zoom a:hover {
    background: rgba(14, 42, 60, 0.97);
}

