.shadowBox {
    overflow: visible !important;
}

label {
    margin-bottom: unset !important;
}

.tool__wrapper {
    border: 1px solid #e2e2e2;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.tool__area {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.modes__wrapper {
    background-color: #f4f8f9;
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
}


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

.mode {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    padding: 6px 10px;
    min-width: 100px;
    cursor: pointer;
}

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

.mode.active {
    color: #000;
    box-shadow: 0px 4px 4px 0px #0000000F;
    background-color: #fff;
}

.mode__text {
    color: #7f8384;
    font-size: 14px;
    line-height: 20px;
}

.mode.active .mode__text {
    color: #000;
}

.result_after_btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: 286px;
}

.advance_options {
    display: none;
    /* display: flex; */
    align-items: center;
    gap: 4px;
    margin: unset;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    cursor: pointer;
    color: #7F8384;
}

.advance_options.active {
    color: #000;
}

.advance_options input {
    margin: unset !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #32a77d;
    padding: 0 !important;
    border: none !important;

}

.mt-3 {
    margin-top: 10px !important;
}

.opacity {
    opacity: 0.5;
}

.col-md-12 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.bg-white {
    background-color: #ffffff;
}

.write__text_div,
#outputBox {
    display: inline-block;
    width: 100%;
    resize: none;
    height: 340px;
    outline: none;
    padding: 10px;
    border: 0;
    max-height: 340px;
    overflow-y: scroll;
    word-break: break-word;
    font-size: 16px;
}

/* #outputBox {
    height: 320px !important;
    max-height: 320px !important;
} */

.input_area {
    border-right: 1px solid #e2e2e2;
    position: relative;
}

.bottom_action__wrapper {
    height: 52px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-top: 1px solid #E2E2E2
}

.rBtns {
    font-size: 16px;
}

#cloudflare_container {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 100;
}

/* Custom scrollbar styling */
.left_action {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    transition: all 4s ease;
}

.right__btn {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.summarize_btn {
    display: flex;
    align-items: center;
    gap: 2px;
    display: inline-block;
    border-radius: 6px;
    padding: 6px 32px;
    /* background: #000000; */
    background: linear-gradient(90deg, #37CC99 0%, #1EAEA9 100%);
    color: white;
    font-size: 16px;
}

.dummy_text {
    font-size: 16px;
    font-weight: 400;
    color: #c1c1c1;
    line-height: 20px;
}

.uperSelectBoxLang::-webkit-scrollbar {
    width: 13px;
}

.uperSelectBoxLang::-webkit-scrollbar-track {
    background-color: #f2f7f9;
}

.uperSelectBoxLang::-webkit-scrollbar-thumb {
    background-color: #00b698;
    border-radius: 2px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.upload__doc {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    gap: 7px;
    font-weight: 400;
    color: #000;
    /* background: #F4F8F9; */
    /* border-radius: 6px; */
}

.upload__doc img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.word__counter {
    min-width: 90px;
}

.word__counter span,
.outputWords {
    font-weight: 500;
    font-size: 14px;
    color: #7f8384;
    line-height: 20px;
}

.cursor-pointer {
    cursor: pointer;
}

.input__area_abs {
    position: absolute;
    top: 30%;
    display: flex;
    align-items: center;
    gap: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.sample_text,
.paste_text {
    width: 120px;
    min-height: 74px;
    max-width: 300px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E2E2;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    color: #9da0a1;
    line-height: 18px;
    text-align: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.loading-overlay .lds-dual-ring {
    top: unset !important;
}

.p-relative {
    position: relative;
}

#btnDiv {
    /* position: absolute; */
    /* bottom: 0; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    border-top: 1px solid #E2E2E2;
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.width-100 {
    width: 100%;
}

.justify-content-between {
    justify-content: space-between;
}

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

.download__copy div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    /* background: #F4F8F9; */
    border-radius: 6px;
}

.download__copy div img {
    width: 20px;
    height: 20px;
}

.modes__wrapper.after {
    display: none;
}

.lang-dropdown {
    position: relative;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #E2E2E2;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.down-icon {
    display: inline-block;
    font-size: 20px;
    line-height: 16px;
    min-width: 20px;
    transform: rotate(180deg);
}

.lang-dropdown-options {
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: 38px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-height: 168px;
    overflow-y: auto;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px #3C40434D;
    box-shadow: 0px 2px 6px 0px #3C404326;
}

.js-change-lang {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.js-change-lang.active,
.js-change-lang:hover {
    background-color: #F4F8F9;
}



.improved::before {
    content: "";
    width: 42px;
    height: 12px;
    position: absolute;
    top: -13px;
    right: 5px;
    background: url("/web_assets/frontend/img/improved.svg") no-repeat center;
}

.percent_slider label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: unset;
    font-weight: unset;
    font-size: 12px;
    color: #7F8384;
    margin-right: 15px;
}

/* Container for the range slider */
.range__slider {
    position: relative;
    width: 100%;
    /* Full width */
    height: 6px;
    background: #E4E4E4;
    border-radius: 8px;
}

/* The green fill portion */
.slider-fill {
    position: absolute;
    height: 100%;
    width: 0%;
    /* Initially 0% */
    background-color: #3ACD99;
    border-radius: 8px;
    z-index: 1;
    transition: width 0.3s ease-in-out;
    /* Smooth fill transition */
}

/* Actual range input */
.range__slider input[type="range"] {
    position: relative;
    z-index: 2;
    width: 148px;
    /* Full width */
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Adjusting the thumb positioning */
.range__slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3ACD99;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -5px;
    /* Adjust the thumb's vertical positioning */
    position: relative;
    z-index: 3;
}

.range__slider input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3ACD99;
    border: 3px solid white;
    margin-top: -5px;
    /* Ensure thumb is vertically centered */
}

.pro-popup {
    position: absolute;
    top: 42px;
    left: 176px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    flex-direction: column;
    justify-content: center;
    max-width: 185px;
    background: white;
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0px 12px 34px 0px #00000029;

    .popup-header {
        width: 100%;
    }

    .popup-header,
    .popup-header>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
    }

    .popover_text {
        font-size: 12px;
        line-height: 16px;
    }

    .pro-btn {
        display: inline-block;
        color: #fff !important;
        background-color: #3acd99;
        padding: 6px 10px;
        border-radius: 6px;
        font-weight: 700;
        text-align: center;
        width: max-content;
        align-self: flex-end;
    }
}


@media (width<=992px) {

    .tool__area {
        flex-direction: column;
    }

    .bottom_action__wrapper {
        /* border-bottom: none !important; */
    }

    .percent_slider label {
        margin-right: unset;
    }

    .result_after_btn {
        display: none;
    }

    .modes__wrapper.after,
    .result_after_btn.after {
        display: flex;
        justify-content: center;
    }

    .output_area {
        display: none;
    }
}

@media(width<=650px) {
    .modes__wrapper {
        padding: 10px 8px;
        flex-direction: column;
        gap: 18px;
    }

    .goProTxt {
        right: 25px !important;
    }

}

@media(width<=500px) {
    .bottom_action__wrapper {
        height: unset;
        flex-direction: column;
        gap: 12px;
    }

    .left_action {
        width: 100%;
    }

    .right__btn,
    #summarize_text {
        width: 100%;
        text-align: center;
    }

    #btnDiv {
        flex-wrap: wrap;
    }

    .export-btn {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .advance_options {
        font-size: 13px;
    }

    .result_after_btn {
        gap: 8px;
    }
}