/* Access Denied Modal Styles */

/* Modal backdrop */
.modal-backdrop {
    z-index: 1040;
}

/* Modal container */
.modal-access-denied {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-access-denied.show {
    display: block;
    opacity: 1;
}

.modal-access-denied.fade {
    opacity: 0;
}

.modal-access-denied.fade.show {
    opacity: 1;
}

/* Modal dialog */
.modal-access-denied .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    position: relative;
    width: 600px;
    max-width: 600px;
    margin: auto;
}

/* Modal content */
.modal-access-denied .modal-content {
    background-color: rgb(var(--color-mist));
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    pointer-events: auto;
    border: none;
    border-radius: 5px;
}

/* Modal body */
.modal-access-denied .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 0;
    background-color: rgb(var(--color-mist));
}

/* Content wrapper */
.access-denied-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 300px;
}

.access-denied-content {
    text-align: left;
    width: 100%;
}

.modal-title {
    font-size: var(--font-size-display);
    color: rgb(var(--black));
    line-height: var(--line-height-small)
}


/* Description text */
.access-denied-message {
    font-size: var(--font-size-body);
    line-height: var(--line-height-large);
    color: rgb(var(--color-graphite));
    margin: 1.5rem 0 2.5rem 0;
}

/* Button container */
.access-denied-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Message handling container */
.message-handling-container {
    display: none;
}

.message-handling-message {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .access-denied-wrapper {
        padding: 20px;
        min-height: auto;
    }

    .access-denied-content h2 {
        font-size: 24px;
    }

    .access-denied-buttons {
        flex-direction: column;
        width: 100%;
    }

    .access-denied-button-primary,
    .access-denied-button-secondary {
        width: 100%;
        text-align: center;
    }
}
