/* ========================================
   Confirmation Modal System
   ======================================== */

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
}

.confirm-overlay.active {
    display: flex;
}

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

.confirm-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.confirm-icon.warning {
    background: rgba(201, 169, 97, 0.1);
    color: var(--secondary-color);
}

.confirm-icon.danger {
    background: rgba(193, 18, 31, 0.1);
    color: var(--danger-color);
}

.confirm-icon.info {
    background: rgba(160, 21, 62, 0.1);
    color: var(--primary-color);
}

.confirm-header-text h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.confirm-header-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.confirm-body {
    padding: 2rem;
}

.confirm-message {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.confirm-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-btn-cancel {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.confirm-btn-cancel:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.confirm-btn-confirm {
    background: var(--gradient-custom);
    color: white;
    border: none;
}

.confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #8B1538 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 21, 62, 0.3);
}

.confirm-btn-confirm.danger {
    background: var(--danger-color);
}

.confirm-btn-confirm.danger:hover {
    background: #A00E1A;
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .confirm-overlay {
        padding: 1rem;
    }

    .confirm-modal {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .confirm-header {
        padding: 1.25rem 1.5rem;
    }

    .confirm-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .confirm-header-text h3 {
        font-size: 1.1rem;
    }

    .confirm-body {
        padding: 1.5rem;
    }

    .confirm-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
    }

    .confirm-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .confirm-overlay {
        padding: 0.5rem;
    }

    .confirm-modal {
        border-radius: 15px;
    }

    .confirm-header {
        padding: 1rem 1.25rem;
    }

    .confirm-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .confirm-header-text h3 {
        font-size: 1rem;
    }

    .confirm-header-text p {
        font-size: 0.8rem;
    }

    .confirm-body {
        padding: 1.25rem;
    }

    .confirm-message {
        font-size: 0.9rem;
    }

    .confirm-footer {
        padding: 1rem 1.25rem;
    }

    .confirm-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

