.paraphrase__right,
.paraphrase__left {
    position: relative;
    /* border-radius: 10px; */
    overflow: hidden;
    background: #fff;
}

.paraphrase__textarea,
.ouput_paraphrase {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.paraphrase__left {
    border-radius: 0px 0px 0px 10px;
    display: flex;
    flex-direction: column;
    height: 390px;
    position: relative;
}

.paraphrase__right {
    border-radius: 0px 0px 10px 0px;
    display: flex;
    flex-direction: column;
    height: 390px;
    position: relative;
}

.feedback__textarea {
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
    border: 1px;
    background: #FFFFFF;
    border: 1px solid #DBDBDB;
    outline: none;
    resize: none;
}

.uppercase {
    text-transform: uppercase !important;
}


.text_area_counter_bar {
    margin-right: auto;
    display: flex;
}

.primary_tool_btns {
    padding: 0;
    font-size: 14px;
    border-radius: 4px
}

.tool_footer_container {
    padding: 10px;
}

.parafrase_input_bottom_bar {
    justify-content: center !important;
    position: absolute !important;
    right: 7px;
    bottom: 55px;
}

iframe#cf-chl-widget-o8hoy {
    height: 50px !important;
    width: 200px !important;
}

#raw__text {
    padding: 16px;
    border-radius: 0 0 10px 10px;
    border-top: 0px !important;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

#cloud_flare_captcha {
    position: absolute;
    z-index: 100;
    right: 0px;
    bottom: 80px;
}

#resumen_rang {
    width: 160px;
    height: 6px;
    border-radius: 35px;
    background: #E9E9F5;
    appearance: none;
    outline: none;
}

/* Style for the thumb */
#resumen_rang::-webkit-slider-thumb {
    background: #007AFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0px 0px 4px 0px #00000040;
    width: 14px;
    height: 14px;
    border-radius: 15px;
    appearance: none;
}

/* For Firefox */
#resumen_rang::-moz-range-thumb {
    background: #007AFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0px 0px 4px 0px #00000040;
    width: 14px;
    height: 14px;
    border-radius: 15px;
}

/* For Internet Explorer */
#resumen_rang::-ms-thumb {
    background: #007AFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0px 0px 4px 0px #00000040;
    width: 14px;
    height: 14px;
    border-radius: 15px;
}

.summarizer-rang-container {
    display: flex;
    align-items: center;
    gap: 8px;
    /* margin-left: 15px; */
}

#resumen_label {
    font-size: 14px !important;
    line-height: 20px !important;
}

.paraphrase__right .paraphrase__topbar>.summarizer-versions {
    display: none;
}

.text__area__counter {
    padding: 10px;
}

.output_footer {
    position: relative;
}

.summarizer-versions {
    gap: 8px !important;
    margin-left: 0px !important;
    display: none;
    padding-bottom: 8px !important;
}

.summarizer-versions>button {
    background: #F7F7FC;
    padding: 6px 12px;
    gap: 8px;
    border-radius: 4px;
    border: none;
    max-height: 30px;
    height: 100% !important;
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

/* .summarize-versions:hover {
    background: #cececf !important;
    transition: all .3s ease-in-out !important;
} */

/* Style for the range container */
.range-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Style for the range slider */
.resumen-rang {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: relative;
    z-index: 100;
    cursor: pointer;
    /* Above dots but below the thumb */
}

/* Custom track styling */
.resumen-rang::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    position: relative;
    z-index: 101;
    /* Keep track above dots */
}

/* Custom thumb styling */
.resumen-rang::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    margin-top: -6px;
    position: relative;
    z-index: 102;
    /* Thumb is above everything */
}

/* Dot container */
.range-dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
}

/* Dot styles */
.range-dot {
    width: 4px;
    height: 4px;
    background: #bababa;
    border-radius: 50%;
}

.primary_tool_btns_modes {
    width: 100%;
    display: flex;
    /* justify-content: space-between; */
    padding: 0px;
    height: 100% !important;
    background: white;
    padding: 8px !important;
    border-radius: 10px 10px 0px 0px !important;
}


.active_summarizer_mode {
    background-color: #E9E9F5 !important;
    border-radius: 4px !important;
}

.loading__gif {
    top: 48%;
    height: 100%;
    width: 100%;
}

.pcw {
    cursor: pointer;
}

.paraphrase__right .paraphrase__topbar>div:nth-child(2) div {
    width: unset !important;
    background-color: unset !important;
}

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

.position-relative {
    position: relative;
}

.on-processing::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
}

.on-processing-disable::after {
    backdrop-filter: blur(1px);
    pointer-events: all;
}

.pencil-image {
    margin-bottom: 3px;
}


.resumidor_mode {
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    gap: 6px;
    border-radius: 6px;

}

.resumidor_mode:hover {
    border: 1px solid #007AFF;
    color: #007AFF !important;
    border-radius: 6px !important;
}

.resumidor_mode.active {
    border: 1px solid #007AFF !important;
    color: #007AFF !important;
    border-radius: 6px !important;
}

.feedback__textarea-container.active {
    border: none !important;
}

.primary__btn {
    background-color: white !important;
    padding: 6px 12px !important;
    color: #444C61;
    outline: unset !important;
    height: unset;
    transition: unset;
}

.download-container.active {
    border: none !important;
    color: unset !important;
    border-radius: unset !important;
}

.download-container.active::before {
    display: none !important;
    border: none !important;
    color: unset !important;
    border-radius: unset !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.download__options.active {
    border: unset !important;
}

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

.summary-length-container {
    display: flex;
    align-items: center;
    bottom: 0;

    /* Dimensions & Spacing */
    width: 100%;
    height: 68px;
    padding: 16px;
    gap: 8px;
    box-sizing: border-box;

    /* Appearance */
    background: #FBFBFE;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Border: 1px top/bottom, 0px sides */
    border-style: solid;
    border-color: #E2E2E2;
    border-width: 1px 0px 1px 0px;
}

/* for custom mode */
.custom-summary-container {
    /* Dimensions from your specs */
    width: 100%;
    height: 68px;
    padding: 16px;
    gap: 8px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;

    /* Layout */
    display: flex;
    align-items: center;

    /* Appearance */
    background: #FBFBFE;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Top and Bottom Border Only */
    border-style: solid;
    border-color: #E2E2E2;
    border-width: 1px 0px 1px 0px;
}

.label-text {
    color: #4a4a4a;
    font-size: 14px;
    white-space: nowrap;
    /* Prevents text from wrapping */
    margin-right: 8px;
}

.styled-input {
    /* Layout */
    flex: 1;
    /* Makes input take up remaining space */
    height: 40px;
    /* Standard input height */
    padding: 8px 12px;
    box-sizing: border-box;

    /* Border & Shape */
    border: 1px solid #E2E2E2;
    border-radius: 6px;
    background-color: #FFFFFF;

    /* Text Styling */
    font-size: 14px;
    color: #4a4a4a;
    outline: none;
    transition: border-color 0.2s ease;
}

/* Placeholder Styling */
.styled-input::placeholder {
    color: #9ca3af;
    /* Light gray for placeholder */
    opacity: 1;
}

/* Focus State (Optional but recommended for accessibility) */
.styled-input:focus {
    border-color: #007bff;
}



/* =========================================================================== */

.feedback__btn {
    margin-top: 12px;
    padding: 6px 12px;
    background: #232F44;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.feedback__btn:hover {
    background: #262626;
}


#alert-premium {
    background: #00000080;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    z-index: 999;

    >div {
        position: relative;
        max-width: 710px;
        width: 100%;
        color: #272D3C;
        background: #fff;
        padding: 32px;
        display: grid;
        gap: 24px;
        border-radius: 16px;
        max-height: 550px;
        height: 89vh;
        overflow: auto;
        border: 4px solid transparent;

        .close {
            position: absolute;
            padding: 7px;
            top: 4px;
            right: 4px;
            cursor: pointer;
        }

        .close:hover {
            opacity: .8;
        }

        .heading {
            display: grid;
            justify-items: center;
            gap: 8px;
            text-align: center;

            h2 {
                font-size: 28px;
                font-weight: 500;
                line-height: 36px;
            }

            p {
                font-size: 16px;
                font-weight: 400;
                line-height: 24px;
            }

            p.allow {
                font-size: 14px;
                font-weight: 500;
                line-height: 14px;
            }
        }

        .list-plan {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;

            >div {
                background: linear-gradient(180deg, #F0F0FA 0%, #FFFFFF 50%);
                max-width: 200px;
                width: 100%;
                padding: 16px;
                border-radius: 12px;
                border: 1px solid #E2E2E2;
                display: grid;
                gap: 16px;

                ul {
                    list-style-type: none;
                    margin-left: 24px;
                    position: relative;
                    display: grid;
                    gap: 4px;
                    font-size: 13px;
                    font-weight: 400;
                    line-height: 20px;

                    li::before {
                        margin-left: -20px;
                        content: url(web_assets/frontend/images/check-sm.svg);
                        position: absolute;
                        left: 0;
                    }
                }

                .price {
                    font-size: 32px;
                    font-weight: 700;
                    line-height: 40px;
                    display: flex;

                    span {
                        font-size: 14px;
                        font-weight: 700;
                        line-height: 30px;
                    }

                    span:last-child {
                        font-size: 14px;
                        font-weight: 400;
                        line-height: 30px;
                        margin-top: auto;
                    }
                }

                a,
                button {
                    width: 100%;
                    padding: 8px 24px;
                    border-radius: 4px;
                    border: 1px solid #E2E2E2;
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 20px;
                    color: #272D3C;
                    text-align: center;
                    background: #fff;
                    cursor: pointer;
                    margin-top: auto;
                }

                a:hover,
                button:hover {
                    background: #EEEFF2;
                }
            }
        }

        .list-plan>div:nth-child(2) {
            background: #232F44;

            * {
                color: #fff !important;
            }

            a,
            button {
                background: #007AFF;
                border: #007AFF;
            }

            a:hover,
            button:hover {
                background: #0057EF;
            }
        }
    }

    >div:first-child {
        height: auto;
        background: transparent;
        width: 100%;
        padding: 21px;
        margin-bottom: -50px;
        z-index: 1;
    }
}

.upload__file__section {
    top: 50%;
    transform: translate(-50%, -50%);
}

.paraphrase__topbar {
    width: 100% !important;
    right: 0px !important;
    min-height: auto !important;
    flex-basis: 100% !important;
    padding-right: 0px !important;
    padding-left: 0px;
    height: 100% !important;
}

.paraphrase__section {
    flex-wrap: wrap !important;
    gap: 2px !important;
    /* max-height: 528px !important; */
}

/* .paraphrase__section>div {
    min-height: unset !important;
} */
.paraphrase__section>div {
    min-height: 390px
}

#summarize__btn {
    background-color: var(--color-blue) !important;
    color: white !important;
    transition: all 0.3s ease-out !important;
}

#summarize__btn:hover {
    background-color: #0057EF !important;
}

.output-area {
    padding: 0 16px 0 0 !important;
    border: 0px !important;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.ouput_paraphrase {
    padding: 8px 16px 0 !important;
}

.modes-list {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 4px;
}

.summarizer-rang-container {
    transform: translate(-50%);
}

.summarizer-rang-container label {
    color: #444C61;
}

@media only screen and (min-width: 992px) and (max-width: 1350px) {
    .paraphrase__left .paraphrase__topbar {
        position: relative !important;
        top: 0px !important;
        z-index: 2;
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
    }

    .paraphrase__topbar {
        padding-left: 0px;
    }

    .primary_tool_btns_modes {
        background: #fff;
        box-shadow: none;
        border-radius: 10px 10px 0px 0px !important;
        padding: 0px 10px !important;
        display: flex;
        justify-content: space-between !important;
        flex-direction: row;
        align-items: center;
    }
}

@media only screen and (max-width: 992px) {
    .paraphrase__left .paraphrase__topbar {
        justify-content: space-between !important;
    }
}

@media (max-width: 900px) {
    .summarizer-rang-container {
        margin-left: unset !important;
        transform: translate(0%);
    }

    .paraphrase__topbar_mobile {
        background-color: #F7F7FC;
        width: 200px !important;
        align-items: center !important;
    }
}

@media (max-width: 880px) {
    .make-it-flex {
        display: none;
    }

    .paraphrase__left .paraphrase__topbar {
        position: relative !important;
        top: 0px !important;
        background: transparent !important;
        align-items: center !important;
    }

    .primary_tool_btns_modes {
        position: relative !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        box-shadow: none;
        top: 0px !important;
        height: 100% !important;
        border-radius: 10px 10px 0px 0px !important;
        padding: 0px 10px !important;
    }
}

@media only screen and (max-width: 768px) {
    .primary_tool_btns {
        flex-direction: row !important;
        display: flex !important;
        align-items: center !important;
    }

    .summarizer-rang-container {
        transform: unset !important;
    }

    .primary_tool_btns_modes {
        width: 100% !important;
        background: #fff;
        top: 0px;
        position: relative;
        box-shadow: none !important;
        border-radius: 10px !important;
        padding: 0px !important;
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE 10+ */
    }

    .primary_tool_btns_modes::-webkit-scrollbar,
    .modes-list::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Edge */
        width: 0 !important;
        height: 0 !important;
    }

    .paraphrase__left .paraphrase__topbar {
        display: flex !important;
        position: relative !important;
        top: 0px !important;
        z-index: 2;
        flex-direction: column;
        background-color: white;
    }

    .resumidor_mode svg {
        display: none !important;
    }

    .resumidor_mode, .topbar_mode {
        padding: 6px 12px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .paraphrase__section {
        padding: unset !important;
    }

    .modes-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding: 2px !important;
    }

    .resumidor_mode {
        flex: 0 0 auto !important;
    }

    .styled-input {
        width: 100% !important;
    }

    .paraphrase__left,
    .paraphrase__right {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .tool_footer_container {
        padding: 0px !important;
    }

    .summary-length-container {
        flex-direction: column;
        height: auto !important;
        align-items: start;
    }

    .paraphrase__topbar {
        background: #fff !important;
        border-bottom: 1px solid #E2E2E2 !important;
        height: auto !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        padding: 6px 8px !important;
        flex-basis: auto !important;
    }

    #raw__text {
        height: 238px !important;
        min-height: 238px !important;
        flex: none !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .paraphrase__bottom__bar {
        padding: 12px 16px !important;
        border-top: 1px solid #E2E2E2 !important;
        background: #fff !important;
    }
}

@media only screen and (max-width: 600px) {
    .primary_tool_btns_modes {
        padding: 0 !important;
    }

    .primary__btn {
        padding: 6px !important;
        letter-spacing: 0 !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
    }

    .summary-length-container {
        flex-direction: column;
        height: auto !important;
        align-items: start;
    }

    .custom-summary-container {
        flex-direction: column;
        height: auto !important;
        align-items: start;
    }
}

@media only screen and (max-width: 518px) {
    .paraphrase__right .paraphrase__topbar>div {
        margin-left: unset !important;
    }

    .summarizer-versions {
        margin-left: unset !important;
    }
}

@media only screen and (max-width: 500px) {
    .output__btn .download__options {
        left: unset !important;
    }

    .feedback__div {
        right: 80px !important;
    }
}

.summarize-versions:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f7f7fc !important;
    color: #999 !important;
}

.summarize-versions:disabled:hover {
    background-color: #f7f7fc !important;
    color: #999 !important;
}

.mode-switch-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

@media only screen and (max-width: 356px) {
    /* .paraphrase__right .paraphrase__topbar {
                            flex-direction: column;
                        } */

    .bullets__div label span {
        padding-left: 5px;
        font-size: 14px;
    }

    .summarizer-versions>button {
        font-size: 12px;
    }
}

/* Native radio style for summary length */
.summary-length-container .radio-pill-group {
    display: flex;
    gap: 14px;
    padding: 2px;
    background: #FFFFFF;
    min-width: 300px;
    max-width: 417px;
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.summary-length-container .radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: static;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 10px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.summary-length-container .radio-pill-group .radio-item:hover {
    border: 1px solid #007AFF;
    border-radius: 6px !important;
}

.summary-length-container .radio-item input[type="radio"] {
    position: static;
    opacity: 1;
    width: auto;
    height: auto;
    margin: 0;
    accent-color: #007AFF;
}

.summary-length-container .radio-text {
    display: inline-block;
}

.summary-length-container .radio-item:has(input[type="radio"]:checked) {
    border-color: #007AFF;
}

@media only screen and (max-width: 320px) {
    .summary-length-container .radio-pill-group {
        gap: 4px !important;
        min-width: unset !important;
        padding: 2px !important;
    }

    .summary-length-container .radio-item {
        padding: 4px 6px !important;
        font-size: 12px !important;
    }

    .paraphrase__topbar {
        padding: 4px 4px !important;
    }

    .paraphrase__bottom__bar {
        padding: 10px 12px !important;
    }
    
    #summarize__btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}