/**
 * Confirm Modal Styles
 * Beautiful confirmation dialog for critical actions
 */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.confirm-modal {
    background: linear-gradient(135deg, rgba(15, 42, 42, 0.98) 0%, rgba(10, 30, 30, 0.98) 100%);
    border: 2px solid rgba(127, 255, 0, 0.2);
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(127, 255, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.3s ease-out forwards;
    overflow: hidden;
}

.confirm-modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
    position: relative;
}

.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: pulse 2s ease-in-out infinite;
}

.confirm-modal-icon.publish {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1) 0%, rgba(127, 255, 0, 0.05) 100%);
    border: 2px solid rgba(127, 255, 0, 0.3);
    box-shadow: 0 0 30px rgba(127, 255, 0, 0.2);
}

.confirm-modal-icon.delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(127, 255, 0, 0.3);
}

.confirm-modal-body {
    padding: 2rem;
}

.confirm-modal-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.confirm-modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, #7FFF00 0%, #6dd400 100%);
    color: #0a1e1e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(127, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #8fff1a 0%, #7de600 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(127, 255, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.confirm-btn-confirm.delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.confirm-btn-confirm.delete:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .confirm-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .confirm-modal-header,
    .confirm-modal-body {
        padding: 1.5rem;
    }
    
    .confirm-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
    }
    
    .confirm-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .confirm-modal-title {
        font-size: 1.25rem;
    }
}
