#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #e0e1e1;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: "Arial", sans-serif; /* Use a crisp, widely available font */
    -webkit-font-smoothing: antialiased; /* Improves text rendering in Webkit browsers */
    -moz-osx-font-smoothing: grayscale; /* Improves text rendering on macOS */
}

#custom-modal h3 {
    color: #060606;
    padding-bottom: 10px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #000000;
    font-size: 18px;
    font-weight: 700; /* Make the title bold for emphasis */
    text-transform: uppercase; /* Optional: makes the title text uppercase */
    letter-spacing: 1px; /* Adds spacing for a more modern look */
}

#custom-modal p {
    color: #060606;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5; /* Improves readability */
    margin: 10px 0;
}

#custom-modal button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: "Arial", sans-serif; /* Ensure button font matches modal */
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500; /* Slightly thicker font for buttons */
}

#confirm-deactivation {
    background-color: #d9534f;
    color: #fff;
}

#confirm-deactivation:hover {
    background-color: #c9302c;
    transform: scale(1.05);
}

#cancel-deactivation {
    background-color: #6c757d;
    color: #fff;
}

#cancel-deactivation:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

/* Media query for small screens */
@media (max-width: 480px) {
    #custom-modal {
        width: 90%;
        padding: 15px;
    }

    #custom-modal button {
        width: 100%;
        margin: 5px 0;
    }
}
