/* Enhanced location dropdown styles */
.location-dropdown-container {
    position: relative;
}

.location-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 2px dashed #444;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.location-display:hover {
    background: #333;
    border-color: #4a9eff;
    color: #4a9eff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(74, 158, 255, 0.2);
}

.location-options {
    position: absolute;
    border: 1px solid #444;
    border-radius: 6px;
    background: #232323;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 100%;
    overflow: hidden;
    color: #e0e0e0;
}

.location-option {
    padding: 10px;
    border-bottom: 1px solid #333;
}

.location-option:last-child {
    border-bottom: none;
}

/* Highlight GPS option */
.highlight-option {
    background-color: #2d2d2d;
    padding: 12px 10px;
    border-left: 3px solid #4a9eff;
}

.location-option-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: #e0e0e0;
}

.location-option-btn:hover {
    background-color: #3a3a3a;
}

.btn-primary {
    background-color: #4a9eff;
    color: white;
    font-weight: bold;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #3b8df2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Style for the location search input */
#locationSearch {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    width: 70%;
    margin-right: 5px;
}

#locationSearch:focus {
    border-color: #4a9eff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.25);
}

/* Search button */
.search-btn {
    padding: 8px 12px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-btn:hover {
    background-color: #3b8df2;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Style for the change location text */
.change-location {
    color: #4a9eff;
    font-size: 0.9em;
    margin-left: 5px;
    opacity: 0.8;
}

.location-display:hover .change-location {
    opacity: 1;
}

/* Style for approximate locations */
#currentCity[title] {
    border-bottom: 1px dotted #999;
    cursor: help;
}

/* Styles for location accuracy indicators */
.approximate-location {
    color: #ffcc00;
    position: relative;
}

.high-accuracy-location {
    color: #4CAF50;
    font-weight: bold;
}

.medium-accuracy-location {
    color: #2196F3;
}

.low-accuracy-location {
    color: #FFC107;
}

.google-location {
    color: #FF5722;
}

.gps-location {
    color: #9C27B0;
}

/* Toast notifications for accuracy feedback */
.location-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
}

.location-toast.show {
    opacity: 1;
}

.location-toast.success {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
}

.location-toast.info {
    background-color: rgba(33, 150, 243, 0.9);
    color: white;
}

.location-toast.warning {
    background-color: rgba(255, 152, 0, 0.9);
    color: white;
}

.location-toast.error {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
}
