﻿/* Confirmation Modal Styles */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.confirm-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    font-family: 'IRANSans', 'Vazir', sans-serif;
}

.confirm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .confirm-modal-close:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.1);
    }

.confirm-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.confirm-modal-icon {
    margin-bottom: 20px;
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.confirm-modal-icon svg {
    width: 64px;
    height: 64px;
}

.confirm-modal-message {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-family: 'IRANSans', 'Vazir', sans-serif;
    line-height: 1.6;
}

.confirm-modal-submessage {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    font-family: 'IRANSans', 'Vazir', sans-serif;
    line-height: 1.5;
}

.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.confirm-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'IRANSans', 'Vazir', sans-serif;
    min-width: 100px;
}

.confirm-modal-btn-cancel {
    background-color: #e5e7eb;
    color: #374151;
}

    .confirm-modal-btn-cancel:hover {
        background-color: #d1d5db;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.confirm-modal-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

    .confirm-modal-btn-confirm:hover {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* Success variant */
    .confirm-modal-btn-confirm.success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

        .confirm-modal-btn-confirm.success:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

    /* Warning variant */
    .confirm-modal-btn-confirm.warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

        .confirm-modal-btn-confirm.warning:hover {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

/* RTL Support */
[dir="rtl"] .confirm-modal-footer {
    flex-direction: row-reverse;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .confirm-modal {
        width: 95%;
        max-width: none;
    }

    .confirm-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .confirm-modal-btn {
        width: 100%;
    }

    [dir="rtl"] .confirm-modal-footer {
        flex-direction: column;
    }
}
