/**
 * GPS Route Map Modal Component Styles
 */

/* Leaflet Layer Control - Base Styling */
.leaflet-control-layers {
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    background: var(--bg-primary) !important;
    font-family: var(--font-family) !important;
}

.leaflet-control-layers-toggle {
    background-image: none !important;
    width: 36px !important;
    height: 36px !important;
    background-color: var(--bg-primary) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.leaflet-control-layers-toggle::before {
    content: '\e53b'; /* Material Symbols - layers */
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.leaflet-control-layers-expanded {
    padding: 12px 16px !important;
    min-width: 200px;
}

/* Leaflet Layer Control - List */
.leaflet-control-layers-list {
    margin: 0 !important;
}

.leaflet-control-layers-base {
    margin-bottom: 0 !important;
}

/* Leaflet Layer Control - Labels */
.leaflet-control-layers label {
    display: flex !important;
    align-items: center !important;
    padding: 8px 4px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.leaflet-control-layers label:hover {
    background-color: var(--bg-hover) !important;
}

/* Leaflet Layer Control - Custom Radio Buttons */
.leaflet-control-layers-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 50% !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    background-color: var(--bg-primary) !important;
    cursor: pointer !important;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.leaflet-control-layers-selector:hover {
    border-color: var(--primary-color) !important;
}

.leaflet-control-layers-selector:checked {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

.leaflet-control-layers-selector:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.leaflet-control-layers-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 40, 20, 0.2);
}

/* Separator */
.leaflet-control-layers-separator {
    height: 0 !important;
    border-top: 1px solid var(--border-color) !important;
    margin: 8px 0 !important;
}

/* Scrollbar für lange Listen */
.leaflet-control-layers-list {
    max-height: 400px;
    overflow-y: auto;
}

.leaflet-control-layers-list::-webkit-scrollbar {
    width: 6px;
}

.leaflet-control-layers-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.leaflet-control-layers-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.leaflet-control-layers-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
