/* ============ UI Controls ============ */
#controls {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(22, 33, 62, 0.9);
    padding: 15px;
    border-radius: 8px;
    z-index: 50;
}

#controls button {
    margin: 5px;
    padding: 8px 15px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#controls button:hover {
    background: #3182ce;
}

#legend {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(22, 33, 62, 0.9);
    padding: 15px;
    border-radius: 8px;
    z-index: 50;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
}

#info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(22, 33, 62, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 50;
    font-size: 12px;
    color: #a0aec0;
}

/* ============ Level Navigation ============ */
#level-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 33, 62, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#level-nav-info {
    color: #a0aec0;
    font-size: 13px;
    white-space: nowrap;
}

#level-nav-buttons {
    display: flex;
    gap: 8px;
}

#level-nav-buttons button {
    width: 36px;
    height: 36px;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    color: white;
}

#level-nav-buttons button:hover {
    transform: scale(1.1);
}

#level-nav-buttons button.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
