/* Modal container and background overlay */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Show the modal container when visible */
#modal-container.visible {
    display: flex; /* Flexbox to center the modal */
}

/* Modal styling */
.cs-modal {
    background-color: white;
    border-radius: 8px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    max-width: 90%; /* Make sure modal fits smaller screens */
    width: 400px; /* Default modal width */
    direction: rtl; /* Right-to-left for Persian */
}

.cs-modal p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333; /* Text color */
}

.cs-modal button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.cs-modal button:hover {
    background-color: #0056b3;
}
