.side-modal {
    position: fixed;
    z-index: 1050;
    top: 0;
    right: -30%;
    height: 100%;
    width: 30%;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    background-color: var(--sidebar-main-bg-color);
    color: white;
    transition: right 0.3s ease;
}

.side-modal-title {
    text-align: center;
}

.side-modal-dialog {
    height: 100%;
}

.side-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    background-color: black;
    height: 100%;
    padding: 1rem;
}

.side-modal-content {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.side-modal-header,
.side-modal-footer {
    flex-shrink: 0;
}

.side-modal.show {
    right: 0;
}

#content-wrapper.modal-open {
    margin-right: 30%;
}

@media (max-width: 1300px) {
    .side-modal {
        width: 100%;
        height: auto;
        position: static;
        box-shadow: none;
    }

    .side-modal-footer button {
        display: inline-block;
    }
}