/* CSS styles for the tool */
label {
    margin: unset;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

#checkBtn {
    margin: unset !important;
}

.data-privacy-statement {
    padding: unset !important;
}

.sub-heading-2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none !important;
}

.ad-btn-row {
    justify-content: space-between;
    padding: 0 2rem;
}

.plg-res {
    width: unset;
    float: unset;
}

.px-15 {
    padding: 0 15px;
    margin: 0 !important;
}

.text_not_found div b {
    color: #e85353;
}

.instUpload {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

.upload-font {
    font-size: 16px;
    font-weight: 400;
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 10px;
    flex: 1;
}

.input-box label {
    cursor: pointer;
}

.drag-zone {
    width: 100%;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: #fff;
    border: 2px dashed #34a370;
    border-radius: 5px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.drag-zone:hover {
    background-color: #F9F9F9;
}

.file-added.file-added {
    min-height: 100px;
}

/* .shadowBox {
    min-height: fit-content;
    overflow: unset !important;
} */

.output_result_div {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
    border-right: 1px solid gray;
    padding-right: 10px;
}

.main-prev-box {
    position: relative;
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px !important;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #E2E2E2;
}

.img-preview-div {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;

}

.img-preview-div img {
    width: 36px;
    height: 36px;
}

.main-ris-box {
    padding: 10px;
    text-align: center;
}

.actions-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-btn span {
    display: inline-block;
    background: #F4F8F9;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
}

.actions-btn span:hover img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(11%) saturate(581%) hue-rotate(106deg) brightness(96%) contrast(84%);
}

.actions-btn span>img {
    width: 20px;
    height: 20px;
}

.d-none {
    display: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.file-info-container {
    display: flex;
    flex-direction: column;
}

.file-info-span {
    font-size: 14px;
}

.file-size-span {
    font-size: 12px;
    color: #5E766D;
}

.info__wrapper {
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 5px;
}

.completed {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.completed span {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 6px;
    background-color: #F1FFFA;
    font-size: 12px;
    color: #3ACD99;
}

.completed.error {
    justify-content: right !important;
}

.completed.error span {
    background-color: #FFEBEB;
    color: #EB5757;
}

.input-group-addon {
    border-radius: 10px 0 0 10px !important;
    background: 0 0;
    border-radius: 0;
    border: #34a370 1px solid;
    background: #34a370;
    color: #fff;
}

.prev_box {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.base64_img_box {
    padding: 6px;
    border: 0.5px solid #E2E2E2;
    border-radius: 6px;
    cursor: pointer;
}

.base64_img {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.doc-fname {
    color: #000 !important;
    font-size: 16px !important;
}

#overlay {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9;
    cursor: pointer;
}

#text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 24px;
    color: #fff;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* Ensure lightbox is above other content */
}

#lightbox img {
    max-width: 70%;
    max-height: 70%;
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    background: linear-gradient(to right, rgba(216, 182, 182, 0) 0%, #ffffffbe);
    content: "";
    display: block;
    height: 100%;
    left: -75%;
    position: absolute;
    top: 0;
    transform: skewX(-25deg);
    width: 50%;
    z-index: 2;
}

.shine::before,
.shine::before {
    -webkit-animation: shine 1.5s ease-in-out infinite;
    animation: shine 1.5s ease-in-out infinite;
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}



.text_not_found p {
    display: block;
}

.d-flex-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inputurlplace {
    height: 35px;
}

.inputurlplace input {
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.inputurlplace.afterUpload {
    position: absolute;
    bottom: 13px;
    max-width: 200px;
}

.pps-spr-lumba-daba {
    margin-top: 20px !important;
    padding: unset !important;
}

.plg-res {
    min-height: unset !important;
    padding: 0px 8px !important;
    border-radius: 5px !important;
}

#allDownload {
    /* position: absolute; */
    background-color: #3C9F7E;
    color: #fff !important;
}

.btn {
    padding: 6px 10px !important;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.reset-btn {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.filePlus {
    line-height: 5px;
    display: inline;
    font-size: 45px;
}

.browse-btn {
    padding: 8px 10px;
    background-color: #000000;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
}

.browse-btn img {
    filter: brightness(0) invert(1);
}

.browse-btn svg {
    filter: brightness(0) invert(0);
}

.camera-btn img {
    filter: brightness(0) invert(0);
}
.camera-btn-after img {
    margin-bottom: 5px;
    filter: brightness(0) invert(0);
}
.browse-btn:hover {
    background-color: #333333;
}

.url-link-btn,
.camera-btn {
    color: #000;
    background-color: #EFF3F4 !important;
}

.url-link-btn:hover,
.camera-btn:hover {
    background-color: #DCEDF1 !important;
}

#after-link {
    background: transparent;
    border: none;
}

.link-img:hover {
    filter: brightness(0) saturate(100%) invert(99%) sepia(26%) saturate(3165%) hue-rotate(78deg) brightness(82%) contrast(95%);
}

.upload-after {
    color: #3acd99;
}

.banner_link:is(:active, :hover, :focus) {
    text-decoration: none;
}

.text-sec {
    padding: 0;
    background: none;
    min-height: unset;
    transition: all 0.3s;
    /* margin-bottom: 2rem; */
}

.ppsbox-msg {
    padding-top: 10px !important;
}

.imgg canvas {
    height: auto;
    width: 450px;
}

.tiff_img canvas {
    max-height: 130px;
    height: auto;
    width: 160px;
}

/* RESULT CSS */
.progres-label {
    max-width: 360px;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.progressBar {
    width: 100%;
    height: 35px;
    color: #000;
    position: relative;
}

.progressBar.active {
    color: #fff;
}

.progressBar::before {
    content: attr(value) "%";
    position: absolute;
    -webkit-transform: translate(-50%, 8px);
    -ms-transform: translate(-50%, 8px);
    transform: translate(-50%, 8px);
    font-size: 14px;
    z-index: 1;
}

.progressBar::after {
    content: "";
    position: absolute;
    -webkit-transform: translate(-50%, 9px);
    -ms-transform: translate(-50%, 9px);
    transform: translate(-50%, 9px);
    width: 100%;
    height: 17px;
    border-radius: 25px;
    background-image: -o-linear-gradient(45deg,
            #ffffff26 25%,
            #0000 25%,
            #0000 50%,
            #ffffff26 50%,
            #ffffff26 75%,
            #0000 75%,
            #0000);
    background-image: linear-gradient(45deg,
            #ffffff26 25%,
            #0000 25%,
            #0000 50%,
            #ffffff26 50%,
            #ffffff26 75%,
            #0000 75%,
            #0000);
    background-size: 1rem 1rem;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
}

@-webkit-keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

.actions-btns {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.download-file-info {
    font-size: 12px;
    color: #7F8384;
}

.download-file-info.mobile {
    display: none;
}

.action__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F8F9;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #7F8384;
}

.action__btn img {
    width: 20px;
    height: 20px;
}

div#copy-downlod-option i {
    padding: 5px;
    cursor: pointer;
    color: black !important;
}


span.copy-label {
    font-size: 12px;
    vertical-align: middle;
    font-weight: 700;
    color: #3aa374;
    text-transform: uppercase;
}

span.itxt {
    display: none;
    font-size: 12px;
    font-weight: 400;
    color: #9ab1bd;
    vertical-align: middle;
}


.stats {
    font-size: 10px;
    color: #afafaf;
}

.ttext {
    position: sticky;
    top: 0;
}

.ttext .tabcontent {
    min-height: 100px;
    height: 100%;
    max-height: 150px;
    background: #f8f8f8;
    color: #33333f;
    border-radius: 0 0 4px 4px;
    white-space: pre-wrap !important;
    text-align: left;
    font-size: 18px;
    line-height: 22px;
    overflow-y: scroll;
    width: 100%;
    padding: 5px;
    border: 1px solid #dddddd;
    border-top: none;
    resize: none;
    overflow: auto;
}

#uploadBtn:focus,
.ttext .tabcontent:focus {
    outline: 0;
}

.redcolor {
    color: red;
}

.single-res {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #E2E2E2;
    overflow: visible;
    position: relative;
}

.single-res-inner {
    width: 100%;
    display: flex;
    flex: 1 1 33%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

.imagetotext-progress {
    width: 100%;
    height: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    background: #eaeaea;
}

.imagetotext-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(234, 234, 234, 0) 2.85%,
            rgb(58 205 153) 53.25%,
            #3acd99 100%);
    border-radius: 3px;
    animation: progress 2s linear infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#resultsTable {
    background: #fff;
    padding: 0;
    clear: both;
    /* border: 1px solid #EFEEEE; */
    padding: 8px 2px;
    border-radius: 6px;
    transition: all;
}

/* Keyframes for shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -500px;
    }

    100% {
        background-position: 500px;
    }
}

/* Styling for the shimmer effect */
.shimmer {
    background: linear-gradient(to right,
            transparent 0%,
            white 50%,
            transparent 100%);
    background-size: 200% auto;
    animation: shimmer 1.5s infinite;
}

/* Additional styling for the container */
.tabcontent::-webkit-scrollbar {
    width: 5px;
    border-radius: 100px;
}

.tabcontent::-webkit-scrollbar-track {
    background: #dbdbdb;
    border-radius: 100px;
}

.tabcontent::-webkit-scrollbar-thumb {
    background: #8a919c;
    border-radius: 100px;
}

.tabcontent::-webkit-scrollbar-thumb:hover {
    background: #555;
    cursor: pointer;
}

.br-sm {
    display: none;
}

.tabcontent {
    outline: none;
    width: 100%;
    max-height: 70px;
    min-height: 60px;
    overflow-y: auto;
    padding: 10px 50px 0 5px;
    word-break: break-all;
}

.text_not_found {
    position: absolute;
    display: flex;
    gap: 30px;
    left: min(140px, 400px);
    top: 10px;
    align-items: center;
}

.tab-heading {
    font-size: initial;
    color: 111;
    font-weight: bold;
}

.fname {
    color: #9e9da1;
    font-size: 12px;
}

.min-height-unset {
    min-height: unset !important;
}

/* New Style Updates */
.start-over-text:hover {
    color: #5E766D;
}

.table-container {
    width: 100%;
    max-height: 400px;
    overflow: auto;
}

.table-container table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: center;
    border: 1px solid #eaeaea;
}

.table-container th,
.table-container td {
    text-align: center;
    padding: 12px;
    border: 1px solid #EAEAEA;
    word-break: break-word;
    text-align: center;
    font-weight: 400;
    border-bottom: none;
    color: #000000;
    font-size: 12px;
    line-height: 16px;
}

@media (width <=991px) {
    .hide-on-8 {
        display: none;
    }

    .btn-wrap {
        width: 100% !important;
    }

    .ad-btn-row {
        justify-content: center;
    }
}

@media (width <=768px) {
    .emptyPrem {
        text-align: center;
    }

    #image_demo {
        overflow: scroll;
    }

    .stats {
        text-align: left;
        text-wrap: nowrap;
    }



    .br-sm {
        display: block;
    }

    .ttext {
        width: 100%;
    }

    .drag-zone .mn-txt:first-child {
        display: none;
    }

    .drag-zone {
        height: auto;
    }
}


@media (width <=550px) {
    .prev_box {
        display: flex !important;
        align-items: center;
        gap: 5px;
        /* Replaces hard-coded 5px gap */
    }

    .stats {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .download-file-info.desktop,
    .completed.success {
        display: none;
    }

    .completed.error span {
        display: none;
    }

    .completed.error img {
        display: block !important;
    }

    .download-file-info.mobile {
        display: block;
    }
}

.custom__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;

    .modal__outer {
        width: min(346px, 90vw);
        max-height: 395px;
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0px 5px 49px 0px #6980E226;
    }

    .modal__outer.img-preview {
        width: min(572px, 90vw);
        max-height: 472px;
    }

    .modal__header,
    .modal__body {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* border-bottom: 1px solid #E2E2E2; */
        padding: 16px;
    }

    .modal__body {
        margin: 0 auto;
        width: 96%;
        height: 275px;
        padding: unset;
        /* overflow: hidden; */
    }

    .modal__outer.img-preview .modal__body {
        justify-content: center;
        padding: 0 16px 16px 16px;
        height: unset;
        max-height: 400px;
    }

    .modal__outer.img-preview .modal__body img {
        height: -webkit-fill-available;
        object-fit: contain;
        border-radius: 12px;
    }

    .modal__footer {
        padding: 16px;
    }

    .modal__outer.img-preview .modal__footer {
        padding: 0;
    }


    .crop__action {
        width: 100%;
        padding: 6px 12px;
        background-color: #33DBA0;
        font-family: Roboto;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        text-align: center;
        color: #fff;
        border: none;
        outline: none;
        cursor: pointer;
    }
}