/* Location Selector Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(45, 212, 191, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22d3ee;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #22d3ee;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-product-name {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.modal-body .form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s;
}

.modal-body .form-control:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.modal-body .form-control option {
    background-color: #1e293b;
    color: #f1f5f9;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(45, 212, 191, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #22d3ee;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover {
    background-color: #06b6d4;
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background-color: rgba(71, 85, 105, 0.2);
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
