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

.sub-heading-2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none !important;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

.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;
    /* margin: auto; */
    /* width: 40%; */
}

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

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

.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;
}

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

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

.drag-zone .mn-txt,
.drag-zone .svg_block {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

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

#mainPer {
    max-height: 415px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.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;
}

.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;
    align-items: center;
    gap: 10px;
}

.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;
}

#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%;
    /* Adjust as needed */
    max-height: 70%;
    /* Adjust as needed */
}

.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;
}

.btn-wrapper {
    width: 100%;
    max-width: 260px;
    display: flex;
    justify-content: center;
}

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

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

.text_not_found p {
    display: block;
}

.modal-header .close {
    margin-top: -22px !important;
}

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

.inputurlplace {
    height: 35px;
    position: relative;
    top: 10px;
}

.inputurlplace .form-group {
    margin-bottom: unset;
    height: 100% !important;
}

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

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

.plg-res {
    /* width: 100%; */
    min-height: unset !important;
    /* float: left; */
    /* margin-bottom: 20px; */
    /* background: #fff; */
    padding: 0px 8px !important;
    border-radius: 5px !important;
}

.toggleLabelName .btn,
.toolPiker .btn {
    box-shadow: 0px 2px 4px 0px #00000021;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    color: #333333;
    background-color: #fff;
}

.toggleLabelName .btn:focus,
.toolPiker .btn:focus {
    outline: none;
}

.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;
}

.afterUpload {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #7F8384;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.link-img {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease-in-out;
    filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(1%) hue-rotate(67deg) brightness(94%) contrast(91%);
    right: -27px;
    top: 49px;
    justify-content: center;
    display: flex;
    cursor: pointer;
}

#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%);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.btn-wrapper {}

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

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

.camera-btn img {
    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;
}

.btn-check-up {
    background-color: #00b698;
    color: #fff;
    border-radius: 5px;
}

.btn-check-up:hover {
    color: #fff;
    background: #6dc7af;
    box-shadow: 0 0 0 1px #ffffff, 0 0 7px 1px #4ab898;
}

#allDownload {
    /* position: absolute; */
    z-index: 0;
    right: 0;
    top: 20px;
    padding: 6px 10px !important;
}

.close__modal {
    cursor: pointer;
}

.btn-danger {
    padding: 6px 10px !important;
    border-radius: 6px;
    background: #000000;
    border-color: #000000;
}

.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus {
    background: #333333 !important;
    border-color: #333333 !important;
}

.upload_file_text {
    display: none;
    color: #7F8384;
}

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

.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: 20px; */
}

.plagBox-banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-column-gap: 20px;
    -moz-column-gap: 20px;
    column-gap: 20px;
    position: relative;
    min-height: 50px;
    width: 100%;
    clear: both;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    background-size: 100% 50px;
    -webkit-padding-start: 50px;
    padding-inline-start: 50px;
    background-color: #f0f8ff;
    clear: both;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    box-shadow: inset 0px 0px 1px 1px #eee, 0px 0.1px 0px 1px #87c6f0;
}

.banner-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    border-radius: 7px;
    text-align: center;
    margin: 0 6px;
    font-family: system-ui;
    color: #3c5057;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.banner-feature {
    position: relative;
    min-height: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 auto;
    flex: 0 auto;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.banner-feature i.fa-abs,
.plan-box li i.fa-abs {
    position: absolute;
    right: -16px;
    top: 50%;
    width: min-content;
    transform: translate(10px, -50%);
}

.banner-feature i.fa-abs {
    left: 10px !important;
    top: 50%;
    transform: translate(-50%, -50%);
}

.banner-feature i.fa-circle,
.plan-box li i.fa-circle {
    color: #e8f8fc;
    font-size: large;
}

.banner-feature i.fa-check,
.plan-box li i.fa-check {
    color: #00b698;
    font-size: 8px;
    left: -50%;
}

.banner-feature i.fa-check {
    color: #fff !important;
    left: 50% !important;
}

.banner-feature i.fa-circle {
    color: #00b698 !important;
    font-size: 16px;
    position: relative;
    width: 13.72px;
    height: 16px;
}

.go-pro {
    color: #fff;
    margin-right: 4px !important;
    width: auto;
    font-weight: 400;
    padding: 6px 10px;
    background: transparent -o-linear-gradient(198deg, #3acd99 0, #0796b6 100%);
    background: transparent linear-gradient(252deg, #3acd99 0, #0796b6 100%);
}

.plagBox-banner::-webkit-scrollbar {
    width: 0;
    height: 8px;
}

.plagBox-banner::-webkit-scrollbar-track {
    background-color: #0000;
}

.plagBox-banner::-webkit-scrollbar-thumb {
    background-color: #bcbcbc;
    border-radius: 4px;
    border: 2px solid #0000;
    background-clip: content-box;
}

.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: 10px 10px;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
}

@-webkit-keyframes progress-bar-stripes {
    0% {
        background-position: 10px 0;
    }

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

@keyframes progress-bar-stripes {
    0% {
        background-position: 10px 0;
    }

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

div#copy-downlod-option {
    font-size: 16px;
    display: flex;
    gap: 8px;
    float: right;
    flex-direction: column;
}

.copyAllText,
.downloadAllText,
.downloadAllTextdoc,
.expand-text {
    position: relative;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f8f9;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

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

div#copy-downlod-option i.fa-clone {
    color: #000 important;
}

div#copy-downlod-option i.fa-file-word-o {
    color: #1e90ff;
}

div#copy-downlod-option i.fa-file-download {
    color: 000000;
}

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;
}

span.itxt:hover div#copy-downlod-option i {
    opacity: 1;
}

.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;
}

.tabcontent:has(.text_not_found) {
    min-height: 100px;
}

.ttext .tabcontent:focus {
    outline: 0;
}

.redcolor {
    color: red;
}

.single-res {
    display: flex;
    width: 100%;
    background: #fff;
    margin-bottom: 8px;
    align-items: center;
    overflow: visible;
    position: relative;
    border: 1px solid #f0dfdf;
    padding: 8px 0px;
    border-radius: 6px;
    box-shadow: 0px 4px 6px 0px #eb57570f;
}

.imgg {
    position: sticky;
    top: 0;
    border-right: 1px solid #efeeee;
}

.imgg img {
    border-radius: 4px;
    border: 1px solid #dddddd;
    margin-bottom: 8px;
    max-width: 100%;
    width: 100px;
    height: 64px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

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

.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;
    max-height: 650px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 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: #f4f8f9;
    border-radius: 99px;
}

.tabcontent::-webkit-scrollbar-thumb {
    background: #3acd99;
    border-radius: 99px;
    cursor: pointer;
}

.br-sm {
    display: none;
}

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

.text_not_found {
    /* position: absolute; */
    display: flex;
    gap: 30px;
    align-items: center;
}

.tab {
    overflow: visible;
    /* padding: 0.40px; */
    border-radius: 4px 4px 0px 0px;
    position: absolute;
    right: 10px;
    top: 15px;
}

.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;
}

@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;
    }

    #copy-downlod-option {
        text-align: right;
    }

    .br-sm {
        display: block;
    }

    .ttext {
        width: 100%;
    }

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

    .drag-zone {
        height: auto;
        padding-top: 15px;
    }
}

@media (width <=576px) {
    .img-preview-div {
        width: 35%;
    }

    .text_not_found {
        flex-direction: column-reverse;
        top: 20px;
        gap: 5px;
        font-size: 12px;
        text-align: center;
        left: min(110px, 400px);
        word-break: break-word;

    }

    .text_not_found img {
        width: 50px;
        height: 35px;
    }

    .text_not_found p {
        display: none;
    }

    .btn-wrapper {
        gap: 4px;
    }

    #upload-image-btn {
        display: none;
    }

    .upload_file_text {
        display: block;
    }

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

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

    .file-info-span {
        margin: 0;
        /* Use 0 instead of unset, ensuring consistent removal */
    }
}


.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;
    }


    .action__btn {
        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;
    }
}