:root {
    --primary-color: #FFD700;
    --primary-dark: #FFB300;
    --bg-color: #121212;
    --text-color: #FFFFFF;
    --card-bg: #1E1E1E;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Prevent scrolling on mobile */
}

/* Modal Login */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.modal-content h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover, .user-btn:active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* App Header */
.app-header {
    height: 60px;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1000;
}

.app-header h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Toggle Switch */
.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: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

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

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Map */
#map {
    height: calc(100vh - 60px - 40px); /* Total height - header - status bar */
    width: 100%;
    z-index: 1;
}

/* Status Bar */
.status-bar {
    height: 40px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #aaa;
    z-index: 1000;
    position: relative;
}

/* Custom Marker */
.custom-marker {
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.marker-label {
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    margin-top: -5px;
    white-space: nowrap;
}
