﻿#boot-overlay {
    position: fixed;
    inset: 0;
    background: #fcfcff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease;
}

#boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#boot-overlay img {
    transform: scale(0.35);
    transform-origin: center center;
    display: block;
}

#sidebar {
    background: linear-gradient(to bottom, #004426 0%, #005b2d 100%);
    color: #fff;
}

#fleetweb-header {
    background: #004426 !important;
}

.veh-container {
    position: relative;
}

.veh-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(2px);
    z-index: 1050;
    pointer-events: all;
}

/* === Fleet map markers === */
/* Leaflet divIcon wrapper — resets Leaflet defaults so our card is fully in control */
.fleet-marker-leaflet-icon {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

/* Outer wrapper — positions the white card + pointer as a unit */
.fleet-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
}

/* White card that holds the icon (and optional battery badge) */
.fleet-marker__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,.18);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* Downward triangle pointer under the card */
.fleet-marker__card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #ffffff;
}

.fleet-marker__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Vertical battery badge — colour only, no percentage text */
.fleet-battery {
    width: 9px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid rgba(0,0,0,.35);
    border-radius: 2px;
    position: relative;
}

/* Battery nub at the top */
.fleet-battery::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 3px;
    background: rgba(0,0,0,.35);
    border-radius: 1px 1px 0 0;
}