:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --accent-bright: #2ecc71;
    --accent-dark: #27ae60;
    --text: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    font-family: -apple-system, system-ui, sans-serif;
    color: var(--text);
    overflow: hidden;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
    filter: invert(100%) hue-rotate(180deg) brightness(95%);
}

.overlay {
    position: fixed;
    z-index: 1000;
}

#top-bar {
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), transparent);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 45px 10px 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-bright);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
}

#bottom-panel {
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 2px solid var(--accent-dark);
    padding: 20px 20px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

#stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.progress-bar-bg {
    background: #333;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

#progress-fill {
    background: var(--accent-bright);
    width: 0%;
    height: 100%;
    transition: width 0.5s;
}

.btn-nav {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    display: none;
}

.nav-instruction {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--accent-dark);
}

.nav-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dark);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.nav-text {
    flex: 1;
}

.nav-text div {
    font-weight: bold;
}

#nav-step {
    font-size: 1.2rem;
    color: var(--accent-bright);
}

#nav-dist {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-nav.start {
    background: var(--accent-dark);
}

.btn-nav.stop {
    background: #c0392b;
}

#menu-toggle {
    top: 45px;
    left: 20px;
    background: var(--card-bg);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    z-index: 3000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#menu-toggle.hidden {
    transform: translateX(100px);
    opacity: 0;
    pointer-events: none;
}

.full-page {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    padding: 60px 20px;
    overflow-y: auto;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--accent-bright);
    box-shadow: 0 6px 0 var(--accent-bright), 0 -6px 0 var(--accent-bright);
}



.accent-text {
    color: var(--accent-bright);
    margin-bottom: 30px;
}

.close-btn {
    position: absolute;
    top: 45px;
    right: 20px;
    background: none;
    border: none;
    color: var(--accent-bright);
    font-size: 2.5rem;
}

.btn-primary {
    background: var(--accent-dark);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.route-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.route-card:hover {
    border-color: #555;
    transform: translateY(-1px);
}

.route-card.active {
    border-color: var(--accent-bright);
    background: #252525;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

.user-dot {
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Instellingen schakelaar */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.setting-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text);
}

.orientation-options {
    display: flex;
    gap: 15px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: #252525;
    border: 1px solid #333;
    transition: all 0.2s;
}

.option-label:hover {
    background: #2a2a2a;
    border-color: var(--accent-bright);
}

.option-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-bright);
}

.option-text {
    font-size: 0.9rem;
    color: var(--text);
}

.offline-status {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    background: #252525;
    border: 1px solid #333;
    color: #4cd137;
}

.offline-status.offline {
    color: #e84118;
    border-color: #e84118;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}

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

input:checked+.slider {
    background-color: var(--accent-bright);
}

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

/* Kaart container styling voor rotatie */
#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
    filter: invert(100%) hue-rotate(180deg) brightness(95%);
    transition: transform 0.3s ease-out;
    transform-origin: center center;
}