html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

    /* Gradient tła: biały (góra) -> niebieski (dół) */
    background: linear-gradient(to bottom, #417bfa 50%, #ffffff 100%);
}

#cesiumContainer {
        height: 100dvh; /* dynamic viewport height */
        }


/* PANEL GÓRNY */
#topPanel {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    padding: 12px;
    background: rgba(50, 50, 50, 0.85); /* ciemny szary */
    border-radius: 8px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* PRZYCISK W PANELU */
.panel-button {
    width: 100%;
    padding: 6px 0;
    background: #d0d0d0; /* jaśniejszy szary */
    color: #000;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: sans-serif;
}

.panel-button:hover {
    background: #e0e0e0;
}

/* TOGGLE + OPIS */
.toggle-wrapper {
    display: flex;
    flex-direction: row;   /* <-- teraz w jednej linii */
    align-items: center;   /* ładne wyrównanie pionowe */
    justify-content: space-between;
    gap: 10px;
    font-family: sans-serif;
    color: white;
    font-size: 14px;
}


/* Toggle switch */
.toggle-switch {
    width: 50px;
    height: 26px;
    background: #888; /* OFF */
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.25s ease;
    position: relative;
}

.toggle-switch.on {
    background: #4cd964; /* zielony ON */
}

/* Kropka */
.toggle-knob {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px; /* OFF */
    transition: left 0.25s ease;
}

.toggle-switch.on .toggle-knob {
    left: 26px; /* ON */
}
