/**
 * Confirmation Modal - Matching lumo_v2 Design
 * Beautiful, modern confirmation dialogs with glassmorphism
 */

/* Modal Overlay */
.confirmation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.confirmation-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.confirmation-modal {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(212, 165, 116, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 100%;
    padding: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.confirmation-overlay.active .confirmation-modal {
    transform: scale(1) translateY(0);
}

/* Animated Background Gradient */
.confirmation-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #f2cf7b 0%, 
        #d29658 25%, 
        #7d3f26 50%, 
        #d29658 75%, 
        #f2cf7b 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* Modal Header */
.confirmation-header {
    padding: 32px 32px 24px;
    text-align: center;
    position: relative;
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

.confirmation-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0;
    }
}

.confirmation-icon svg {
    width: 36px;
    height: 36px;
    stroke: #ef4444;
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

.confirmation-icon.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.confirmation-icon.warning::before {
    border-color: rgba(251, 191, 36, 0.2);
}

.confirmation-icon.warning svg {
    stroke: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.confirmation-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #E8DCC4;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.confirmation-message {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #9B8B7E;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Modal Body */
.confirmation-body {
    padding: 0 32px 32px;
}

/* Action Buttons */
.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: stretch;
}

.confirmation-btn {
    flex: 1;
    padding: 14px 24px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.confirmation-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-btn:hover::before {
    opacity: 1;
}

/* Cancel Button */
.confirmation-btn-cancel {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(168, 107, 62, 0.3);
    color: #E8DCC4;
}

.confirmation-btn-cancel:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.confirmation-btn-cancel:active {
    transform: translateY(0);
}

/* Confirm Button (Danger) */
.confirmation-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.confirmation-btn-confirm:active {
    transform: translateY(-1px);
}

/* Warning variant */
.confirmation-btn-confirm.warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #7c2d12;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.confirmation-btn-confirm.warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Button Icons */
.confirmation-btn svg {
    width: 18px;
    height: 18px;
}

/* Loading State */
.confirmation-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.confirmation-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .confirmation-modal {
        max-width: 100%;
        margin: 20px;
        border-radius: 20px;
    }
    
    .confirmation-header {
        padding: 28px 24px 20px;
    }
    
    .confirmation-body {
        padding: 0 24px 24px;
    }
    
    .confirmation-title {
        font-size: 1.5rem;
    }
    
    .confirmation-message {
        font-size: 0.95rem;
    }
    
    .confirmation-icon {
        width: 64px;
        height: 64px;
    }
    
    .confirmation-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .confirmation-actions {
        flex-direction: column-reverse;
    }
    
    .confirmation-btn {
        width: 100%;
    }
}

/* Dark overlay animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

