/* Custom styles to complement Tailwind */
body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    /* Dark background */
    color: #d1d5db;
    /* Light gray text */
    overflow: hidden;
    /* Prevent body scrolling */
}

#drivers::-webkit-scrollbar {
    width: 8px;
}

#drivers::-webkit-scrollbar-track {
    background: #1f2937;
}

#drivers::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 20px;
    border: 3px solid #1f2937;
}

.custom-checkbox {
    appearance: none;
    background-color: #374151;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #4b5563;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.125rem;
    width: 0.375rem;
    height: 0.75rem;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Style for the track map canvas container to position canvases on top of each other */
#track-map-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Zoom controls styling */
.zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.zoom-btn {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid #4b5563;
    color: #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.zoom-btn:hover {
    background: rgba(55, 65, 81, 0.9);
    border-color: #6b7280;
}

.zoom-btn:active {
    transform: scale(0.95);
}
