html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1220;
    color: #f3f6fb;
}

* {
    box-sizing: border-box;
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 320px;
    min-width: 320px;
    background: rgba(10, 18, 32, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    overflow-y: auto;
}

.brand h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.brand p {
    margin: 0 0 24px;
    color: #b8c3d9;
    line-height: 1.5;
}

.panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

button {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    background: #2c7df0;
    color: #fff;
    transition: filter 0.15s ease, transform 0.15s ease;
}

button:hover {
    filter: brightness(1.05);
}

button:active {
    transform: translateY(1px);
}

.button-secondary {
    background: #44506a;
}

#status-box {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: #d7e3ff;
    line-height: 1.5;
}

.viewer-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

#cesiumContainer {
    width: 100%;
    height: 100%;
}

.field-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    color: #c9d5ea;
}

select,
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
}

select:focus,
input[type="text"]:focus {
    border-color: rgba(44, 125, 240, 0.8);
    box-shadow: 0 0 0 2px rgba(44, 125, 240, 0.2);
}

.stats-list {
    display: grid;
    gap: 8px;
    color: #d7e3ff;
    line-height: 1.5;
}

.camera-popup p,
.aurora-popup p,
.iss-popup p {
    margin: 0 0 8px;
    line-height: 1.45;
}

.legend-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 13px;
    line-height: 1.5;
    color: #d7e3ff;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.35);
}

.legend-dot.low {
    background: #2dd4bf;
}

.legend-dot.mid {
    background: #22c55e;
}

.legend-dot.high {
    background: #f59e0b;
}

.legend-dot.max {
    background: #ef4444;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: 320px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}