/**
 * Auto Location Detection Styles
 */

/* Visual indicator for auto-detected location */
#locSearch.auto-detected {
    background-color: #e8f5e8 !important; /* Light green background */
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Dark theme variant */
[data-bs-theme="dark"] #locSearch.auto-detected {
    background-color: #1c3a1c !important; /* Dark green background */
    border-color: #28a745 !important;
    color: #fff !important;
}

/* Optional: Add a small icon or text indicator */
.auto-location-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    display: none;
}

#locSearch.auto-detected + .auto-location-indicator {
    display: inline-block;
}

/* Geolocation Popup Styles */
#geolocationPopup .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#geolocationPopup .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

#geolocationPopup .modal-title {
    font-weight: 600;
    color: #495057;
}

#geolocationPopup .modal-body {
    padding: 1.5rem;
}

#geolocationPopup .modal-body p {
    margin-bottom: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

#geolocationPopup .modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;
    padding: 1rem 1.5rem;
}

#geolocationPopup .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#geolocationPopup .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#geolocationPopup .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

#geolocationPopup .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}
