body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#time {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1000;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

#breathing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.vehicle-popup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vehicle-popup-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

.vehicle-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-info-label {
    font-weight: 600;
    color: #666;
}

.range-indicator {
    padding: 2px 8px;
    background-color: #10b981;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

/* Map controls */
.leaflet-control-zoom {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
}

/* Charger popup styles */
.charger-popup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.charger-popup-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.charger-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.charger-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.charger-info-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.charger-status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 25px;
    text-align: center;
}

.charger-status-badge.available {
    background-color: #28a745;
    color: white;
}

.charger-status-badge.in-use {
    background-color: #ffc107;
    color: #333;
}

.charger-status-badge.inoperable {
    background-color: #6c757d;
    color: white;
}

.charger-connector-type {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Legend styles */
.legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.legend-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.legend-vehicle-icon {
    width: 20px;
    height: 26px;
    object-fit: contain;
}

.legend-divider {
    height: 1px;
    background: #ddd;
    margin: 4px 0;
}
