/* Ensure floating Layers button is always clickable above overlay and map */
#layersBtn {
    z-index: 2100 !important;
    pointer-events: auto !important;
}

#layersPanel {
    z-index: 2101 !important;
    pointer-events: auto !important;
}
.tripmeter-text {
    font-size: 1.6em;
    font-weight: 700;
    color: #003a5d;
    margin-left: 10px;
    margin-right: 18px;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Arial, sans-serif;
}
/* Brand left for logo and text */
.brand-left {
    display: flex;
    align-items: center;
}
.brand-text {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #003a5d;
    margin-left: 8px;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}
body {
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.topbar {
    width: 100vw;
    background: #bfc3e0; /* Color from second image */
    color: #003a5d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.topbar .logo {
    height: 40px;
    margin-right: 16px;
}
.topbar .title {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #003a5d;
}
.topbar .right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1em;
}
.topbar .icon-btn {
    background: none;
    border: none;
    color: #003a5d;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 4px;
}
.topbar .status {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.topbar .dot.online { background: #00e676; }
.topbar .dot.gps { background: #00b0ff; }

.map {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}


.overlay {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: rgba(255,255,255,0.8);
        padding: 10px;
        border-radius: 8px;
        z-index: 1000;
        min-width: 200px;
        font-size: 0.92em;
}

@media (max-width: 600px) {
    .overlay {
        font-size: 0.82em;
        min-width: 140px;
        padding: 7px;
    }
    .overlay select, .overlay button {
        font-size: 0.95em;
        padding: 5px 8px;
    }
}

/* Add padding to map for topbar */
#map {
    top: 56px;
    height: calc(100vh - 56px);
}