/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Modal */
.modal {
    position: fixed;
    top: 2.5%;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    max-width: 80vw;
    margin: 1.75rem auto;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -25%);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid #dee2e6;
    background-color: #e8e8e8;
}

#loader {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.modal-link {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
}

.modal-link:hover {
    text-decoration: underline;
}

.btn-close-modal {
    background: none;
    border: none;
    color: #333;
    opacity: 0.7;
    cursor: pointer;
}

.btn-close-modal:hover {
    opacity: 1;
}

/* Modal body */
.modal-body {
    position: relative;
    flex: 1 1 auto;
}

/* Modal footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}
