/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1052; 
    left: 0;
    top: 100;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    position: absolute;
    width: 90%;
    max-width: 968px;
    height: 90%;
    max-height: 752px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 4px;
}

html[data-theme="dark"] .modal-content {
    background: #14191F;
}
.modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0px 32px;
    width: calc(100% - 64px);
    height: 64px;
    background: transparent;
    padding-left: 0px;
    padding-right: 0px;
}

.modal-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    height: 64px;
    background: transparent;
    font-family: 'BoeingMesoRegular';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 1.5rem 2rem 1.5rem 0rem;
    gap: 0px;
    width: calc(100% - 4rem);
    height: calc(100% - 128px);
    overflow-y: scroll;
    border-radius: 4px;
    font-family: 'BoeingMesoRegular';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #263746;
}

.modal h5, 
.modal p, 
.modal li, 
.modal ul {
    color: #263746 !important;
}

.modal h5 { font-size: 16px !important;
    line-height: 21.6px !important;
    margin-top: 20px !important;}

html[data-theme="dark"] .modal h5, 
html[data-theme="dark"] .modal p, 
html[data-theme="dark"] .modal li, 
html[data-theme="dark"] .modal ul
html[data-theme="dark"] .modal-title {
    color: rgb(201, 209, 217) !important;
}


.close {
    color: rgb(1, 119, 203);
    float: left;
    font-size: 28px;
    margin-right: 16px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 70%;
        height: 70%;

    }

    .modal-header, .modal-body {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        font-size: 14px;
    }
}