﻿.st-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

[data-theme="light"] .st-modal {
    background-color: rgba(60, 60, 60, 0.7);
}

[data-theme="dark"] .st-modal {
    background-color: rgba(255, 255, 255, 0.3);
}

    .st-modal.show {
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }

    .st-modal.side {
        display: flex;
        justify-content: end;
        align-items: center;
        flex-direction: row;
    }

.ct-modal-side.hide {
    animation: slideOutToRight .7s forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.ct-modal {
    height: 90%;
    width: 90%;
    max-height: 1240px;
    max-width: 1960px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: column;
    border-radius: 7px;
    padding: 20px;
    position: relative;
}

[data-theme="light"] .ct-modal {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    background-color: white;
    border: 1px solid #e9e9e9;
}

[data-theme="dark"] .ct-modal {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    background-color: #0a0a0a;
    border: 1px solid #2b303b;
}

.ct-modal.upload-image {
    max-width: 700px;
    max-height: 650px;
}

.ct-modal.report-head {
    max-width: 600px;
    max-height: 550px;
}

.ct-modal.padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.ct-modal.padding-top {
    padding-top: 100px;
}

.ct-modal.padding-bottom {
    padding-bottom: 100px;
}

.ct-modal-side {
    box-sizing: border-box;
    height: 100dvh;
    width: 100%;
    max-width: 600px;
    display: block;
    flex-direction: column;
    padding-top: 10px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    transition: 0.5s;
    right: 0;
    animation: slideInFromRight .7s forwards;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 2px;
    padding-bottom: 110px;
    padding-top: 110px;
    position: relative;
    overflow-y: hidden;
    overflow-x: hidden;

}


    .ct-modal-side.max-w-800 {
        max-width: 800px !important;
    }

    .row-default.components {
        display: flex;
        align-items: start;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .row-default.components h1 {
        font-size: 14px !important;
        font-weight: 500;
    }

[data-theme="light"] .row-default.components h1 {
    color: rgba(51, 51, 51, 0.8);
}

[data-theme="light"] .ct-modal-side {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    background-color: white;
    border: 1px solid #2b303b;
}

[data-theme="dark"] .ct-modal-side {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    background-color: #0a0a0a;
    border: 1px solid #2b303b;
}

.row-default.modal-title {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: row;
    padding-left: 10px;
    z-index: 2;
    padding-right: 20px;
    padding-left: 20px;
}

[data-theme="light"] .row-default.modal-title {
    background-color: #f8fafc;
    border-bottom: 1px solid #e9e9e9;
}

[data-theme="dark"] .row-default.modal-title {
    background: linear-gradient(90deg, #3a3a3f, #313135, #28282c);
    border-bottom: 1px solid #334155;
}

.row-default.modal-title h1 {
    font-weight: 500 !important;
    font-size: 16px !important;
}


.row-default.modal-foot {
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: row;
    padding-left: 10px;
    z-index: 2;
    padding-right: 20px;
    padding-left: 20px;
}

[data-theme="light"] .row-default.modal-foot {
    background-color: #f8fafc;
    border-top: 1px solid #e9e9e9;
}

[data-theme="dark"] .row-default.modal-foot {
    background: linear-gradient(90deg, #3a3a3f, #313135, #28282c);
    border-top: 1px solid #334155;
}

.row-default.modal-foot.transparent {
    background-color: transparent !important;
    border-bottom: 0px solid transparent !important;
}

.ct-components {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 10;
    padding-bottom: 80px;
    padding-right: 20px;
    padding-left: 10px;
    gap: 20px;
}

    .ct-components > * {
        flex-shrink: 0;
    }

.row-default.components {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

    .row-default.components h1 {
        font-size: 14px !important;
        font-weight: 500;
    }

[data-theme="light"] .row-default.components h1 {
    color: rgba(51, 51, 51, 0.8);
}