/*
UI.css
Controls
*/

/* Floating controls */
.controls{position:absolute;left:12px;top:70px;z-index:1100;display:flex;flex-direction:column;gap:8px}
.control-btn{background:var(--card-bg);padding:8px;border-radius:8px;box-shadow:0 3px 8px rgba(0,0,0,0.06);border:1px solid #e6e9ef}

/* Nav Puck */
.compass-marker {
    pointer-events: none;
    z-index: 1000;
}

.compass-marker .arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 22px solid #1a73e8;  /* plain blue arrow */
    transform-origin: center;
    transition: transform 0.1s linear;
}

/* Indoor/Outdoor Toggle */
.indoor-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    padding: 6px;
    display: flex;
    gap: 6px;
}

.indoor-toggle button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
}

.indoor-toggle button.active {
    background: #d0d0ff;
    font-weight: bold;
}

/* Control Panel (bottom-right) */
#controlPanel button {
    width: 100%;
    margin-top: 6px;
}

#controlPanel h3 {
    margin-bottom: 8px;
}

.toggle-row {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#panelFloorSelector {
    margin-top: 12px;
}

.floor-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.floor-buttons {
    display: flex;
    gap: 6px;
}

.floor-buttons button {
    flex: 1;
    padding: 6px 0;
}

/* Toggle switch */

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: 0.2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .slider {
    background-color: #1a73e8;
}

input:checked + .slider:before {
    transform: translateX(20px);
}
