/* Map Selection Controls Styling */

.selection-mode-indicator {
    z-index: 1000;
}

.selection-mode-box {
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.mode-status.on {
    color: #4CAF50;
}

.mode-status.off {
    color: #f44336;
}

#clearSelectionBtn {
    padding: 6px 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    font-weight: bold;
}

#toggleSelectionBtn {
    padding: 6px 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#toggleSelectionBtn.on {
    background: #f44336;
}

#toggleSelectionBtn.off {
    background: #4CAF50;
}

/* Animation for selection mode indicator */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.selection-mode-box.active {
    animation: pulse 2s infinite;
}

/* Leaflet Draw overrides */
.leaflet-draw-toolbar a {
    background-color: white;
}

.leaflet-draw-toolbar a:hover {
    background-color: #f4f4f4;
}

.leaflet-draw-actions {
    left: 35px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-draw-actions a {
    background-color: white;
    color: #333;
    font-size: 12px;
}

.leaflet-draw-actions a:hover {
    background-color: #f4f4f4;
}

/* Custom marker for central point of selection */
.selection-center-marker {
    background-color: #4285F4;
    border: 2px solid #FFF;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    height: 12px;
    width: 12px;
    cursor: pointer;
}

/* Selection info box */
.selection-info {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    max-width: 200px;
}

.selection-info h4 {
    margin: 0 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.selection-info p {
    margin: 5px 0;
}
