/**
 * Custom Modal Styles for Car Rental Project
 * Modern dark-themed modals with smooth animations
 */

/* Custom Confirmation Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.3);
    animation: slideInScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(139, 92, 246, 0.4);
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.4);
}

.custom-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

.custom-modal-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.custom-modal-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.custom-modal-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

.custom-modal-icon.info {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.custom-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.custom-modal-body {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.custom-modal-body p {
    margin: 0.5rem 0;
}

.custom-modal-details {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-left: 4px solid #8b5cf6;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.custom-modal-details p {
    margin: 0.75rem 0;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 1rem;
}

.custom-modal-details strong {
    color: #a78bfa;
    font-weight: 600;
}

.custom-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.custom-modal-btn.btn-confirm {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.custom-modal-btn.btn-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.custom-modal-btn.btn-confirm:hover::before {
    left: 100%;
}

.custom-modal-btn.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.custom-modal-btn.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-modal-btn.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Prompt Input Field */
.custom-prompt-input {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.custom-prompt-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.custom-prompt-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-modal {
        padding: 2rem;
        max-width: 95%;
    }

    .custom-modal-title {
        font-size: 1.4rem;
    }

    .custom-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .custom-modal-footer {
        flex-direction: column;
    }

    .custom-modal-btn {
        width: 100%;
    }
}
