* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #02070d;
    color: #e7f4ff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow: hidden;
}

#app {
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

header {
    min-height: 96px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(
            90deg,
            #05121d,
            #07141d 60%,
            #08170f
        );
    border-bottom: 1px solid #163142;
}

.eyebrow {
    color: #62dbff;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 {
    margin: 4px 0;
    font-size: 28px;
    letter-spacing: 1px;
}

header p {
    margin: 0;
    color: #93aabd;
    font-size: 12px;
}

.status {
    color: #61f59a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #06101a;
    border-bottom: 1px solid #163142;
}

.metric {
    min-height: 70px;
    padding: 14px;
    border-right: 1px solid #163142;
}

.metric span {
    display: block;
    color: #698196;
    font-size: 9px;
    letter-spacing: 1px;
}

.metric strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 19px;
}

main {
    min-height: 0;
    display: grid;
    grid-template-columns: 245px 1fr 295px;
}

.left-panel,
.right-panel {
    padding: 18px;
    overflow-y: auto;
    background: #06101a;
}

.left-panel {
    border-right: 1px solid #163142;
}

.right-panel {
    border-left: 1px solid #163142;
}

.left-panel h2,
.right-panel h2 {
    margin: 0 0 14px;
    color: #78ddff;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.layer-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #122432;
    font-size: 11px;
}

.layer-row small {
    color: #506474;
    font-size: 8px;
}

.switch {
    position: relative;
    width: 34px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #1a2a35;
    border: 1px solid #314651;
}

.slider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #61717b;
}

.panel-note {
    margin-top: 20px;
    color: #627789;
    font-size: 10px;
    line-height: 1.5;
}

#map {
    min-width: 0;
    min-height: 0;
    background: #02070d;
}

.right-panel p {
    color: #8fa8ba;
    font-size: 11px;
    line-height: 1.6;
}

.intel-row {
    padding: 12px 0;
    border-bottom: 1px solid #132733;
}

.intel-row span {
    display: block;
    color: #647d90;
    font-size: 9px;
    margin-bottom: 4px;
}

.intel-row strong {
    color: #d7e9f4;
    font-size: 10px;
}

.source {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #183b4e;
    background: #071722;
    color: #61cbea;
    font-size: 9px;
    line-height: 1.5;
}

footer {
    min-height: 32px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #030b12;
    border-top: 1px solid #163142;
    color: #647989;
    font-size: 9px;
}

@media (max-width: 1000px) {

    main {
        grid-template-columns: 210px 1fr;
    }

    .right-panel {
        display: none;
    }

    .metrics {
        grid-template-columns: repeat(3, 1fr);
    }

}



.switch input:checked + .slider {
    background: #168458;
    border-color: #49ff9a;
}

.switch input:checked + .slider::before {
    transform: translateX(16px);
    background: #ffffff;
    box-shadow: 0 0 9px #49ff9a;
}

