﻿



/*Rearrange Modal endddddddddddddddddddddddddddddddddddddddddddddddddddd*/
/* warningModal style startsssssssssssssssssssssssssssssssssssssssssssssssssssss */
/* Warning Modal - Elegant and Luxurious Style */
.warningModal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark transparent background */
    backdrop-filter: blur(8px); /* Glassmorphism effect */
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Modal Content */
.warningModal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent for elegance */
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: modalFadeIn 0.4s ease-out forwards;
    font-family: 'Vazirmatn-regular', sans-serif;
}

    /* Modal Title */
    .warningModal-content h2 {
        all: unset;
        margin: 0 0 10px 0;
        font-size: 22px;
        font-weight: bold;
        color: #333;
        text-align: center;
    }

    /* Modal Message */
    .warningModal-content p {
        margin: 15px 0 0 0;
        font-size: 16px;
        color: #444;
        text-align: center;
        direction: rtl;
    }

/* Close Button - Larger and More Elegant */
.warningModal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

    .warningModal-close-btn:hover {
        color: #C4A057; /* Luxurious gold color */
        transform: scale(1.2);
    }

/* Animations */
@keyframes modalFadeIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Closing Effect */
.warningModal-overlay.fade-out {
    animation: modalFadeOut 0.4s ease-in-out forwards;
}






























/* Question Modal Overlay */
.question-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Matte effect */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    backdrop-filter: blur(5px); /* Blur effect */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .question-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Question Modal Box */
.question-modal {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    text-align: center;
    transform: perspective(1000px) rotateX(-90deg) scale(0.5);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.question-modal-overlay.active .question-modal {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    opacity: 1;
}

.question-modal p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Question Modal Buttons */
.question-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.question-modal-yes, .question-modal-no {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: 'Vazirmatn-regular', sans-serif;
}

.question-modal-yes {
    background: #9b30ff; /* RebelCV button color */
    color: white;
}

.question-modal-no {
    background: #e0e0e0; /* Light gray for "No" button */
    color: #333;
}

.question-modal-yes:hover {
    background: #7b1fa2; /* Darker shade for hover */
    transform: translateY(-2px);
}

.question-modal-no:hover {
    background: #bdbdbd; /* Darker shade for hover */
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .question-modal {
        padding: 1.5rem;
    }

        .question-modal p {
            font-size: 1rem;
        }

    .question-modal-yes, .question-modal-no {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
