/* Add Location Button - BOTTOM LEFT */
.add-location-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(0, 200, 255, 0.1));
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #00ff9d;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-location-button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 200, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 255, 157, 0.3),
        0 0 20px rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.5);
}

.add-location-button.active {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 200, 255, 0.2));
    border-color: #00ff9d;
    color: #00ff9d;
}

.add-location-button.active:hover {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.3), rgba(0, 200, 255, 0.3));
}

/* Custom marker styles for charge locations */
.charge-marker {
    background-color: #00ff9d;
    border: 3px solid rgba(15, 20, 40, 0.8);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 
        0 0 20px rgba(0, 255, 157, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.charge-marker:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 30px rgba(0, 255, 157, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    background: rgba(15, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 255, 157, 0.2),
        0 0 30px rgba(0, 255, 157, 0.2);
}

.leaflet-popup-tip {
    background: rgba(15, 20, 40, 0.98);
}

.charge-popup h3 {
    color: #00ff9d;
    margin-bottom: 10px;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.charge-popup p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.charge-popup .stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

.charge-popup .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charge-popup .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.charge-popup .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.charge-popup .success {
    color: #00ff9d;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.charge-popup .failed {
    color: #ff6464;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

/* Temp marker for pin drop */
.temp-marker {
    background-color: #ff6464;
    border: 3px solid rgba(15, 20, 40, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 
        0 0 20px rgba(255, 100, 100, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}


/* Report buttons in popup */
.charge-popup button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.charge-popup button:first-child {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(0, 200, 255, 0.1));
    color: #00ff9d;
    border-color: rgba(0, 255, 157, 0.3);
}

.charge-popup button:first-child:hover {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 200, 255, 0.2));
    border-color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.charge-popup button:last-child {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(255, 0, 100, 0.1));
    color: #ff6464;
    border-color: rgba(255, 100, 100, 0.3);
}

.charge-popup button:last-child:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 0, 100, 0.2));
    border-color: #ff6464;
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.4);
}

/* Pin drop instruction banner */
.pin-drop-instruction {
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    padding: 15px 30px; 
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 255, 157, 0.2);
    z-index: 1500; 
    font-size: 15px; 
    font-weight: 600; 
    display: none; 
    align-items: center; 
    gap: 10px;
}

/* Location list items */
.location-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.05), rgba(0, 200, 255, 0.05));
    border: 1px solid rgba(0, 255, 157, 0.15);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-list-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(0, 200, 255, 0.1));
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
}

.location-list-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.location-list-content {
    flex: 1;
    min-width: 0;
}

.location-list-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-list-success {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 100, 100, 0.6),
            0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 
            0 0 30px rgba(255, 100, 100, 0.8),
            0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .add-location-button {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        justify-content: center;
    }
}
