/* Font-face declarations are in /assets/css/style.css (shared) */

:root {
    --primary-color: #5c6bc0;
    --secondary-color: #e0e0e0;
    --tertiary-color: #f4f7f6;
    --gradient-color: linear-gradient(to right, #385bd0, #354987);
    --upload-button-color: rgb(231, 231, 231);

    --blue-violet: rgb(51, 51, 51);
    --next-button-color: linear-gradient(to bottom, var(--blue-violet), rgb(51, 51, 51));

    --builder-header: #3e4b6d;
    --font: #3e4b6d;
    --use-this-template: linear-gradient(to bottom, var(--builder-header), var(--font));
}

/* Shared sidebar/layout styles are in /assets/css/style.css */

/*------------------------------- Oversat input layout (same structure as oversat) ----------------------------------------  */

.oversat-textarea-wrap {
    width: 100%;
    margin-top: 15px;
}

.oversat-textarea {
    width: 100%;
    min-height: 208px;
    height: 208px;
    padding: 10px 12px;
    resize: none;
    box-sizing: border-box;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    color: #555555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.oversat-textarea::placeholder {
    color: #AAAAAA;
}

.oversat-textarea:focus {
    border-color: #555555;
    outline: none;
}

.oversat-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    width: 100%;
    margin-top: 10px;
    justify-content: space-between;
}

.oversat-controls-part {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.oversat-controls-part1 {
    padding: 0;
    gap: 8px;
    min-height: 36px;
    box-sizing: border-box;
}

.oversat-controls-part1 .oversat-control-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    color: #555555;
}

.oversat-control-btn {
    background: #fff;
    border: 1px solid rgb(220, 220, 220);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #555555;
    border-radius: 4px;
}

.oversat-control-btn:hover {
    opacity: 0.8;
}

.oversat-control-btn.mic-btnsDiv {
    position: static;
}

.response-control-btns {
    background: #fff;
    border: 1px solid rgb(220, 220, 220);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #555555;
    border-radius: 4px;
}

.response-control-btns:hover {
    opacity: 0.8;
}

.oversat-controls-part2 {
    gap: 8px;
}

.oversat-control-label {
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    line-height: 18px;
}

.oversat-language-select {
    -webkit-appearance: none;
    appearance: none;
    padding: 0 28px 0 8px;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 10px;
    font-size: 14px;
    width: fit-content;
    min-width: 0;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 32px;
    box-sizing: border-box;
    color: #555555;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.oversat-language-select::-ms-expand {
    display: none;
}

.oversat-other-lang .oversat-other-input {
    min-height: 42px;
    height: auto;
    width: 100%;
}

#otherLang {
    background: transparent;
}

.oversat-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0px 14px;
    height: 34px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.oversat-submit-btn:disabled {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 14px;
    height: 34px;
    background: #fff !important;
    color: #666 !important;
    border: 1px solid rgb(220, 220, 220) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04)
}

.oversat-submit-btn:not([disabled]) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 14px;
    height: 34px;
    background: #70AFB8 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
}

.oversat-submit-btn:not([disabled]):hover {
    background: #5fa3a9 !important;
}

/*------------------------------- Page 1 ----------------------------------------  */
.heading-section p {

    color: #666;
}

.errorP {
    color: red !important;
    display: none;
    font-weight: 500 !important;
    margin-top: 10px;
}

section p {

    color: #666;
}

.upload-section {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 0 0;
}

.upload-option {
    width: 100%;
}

.upload-option p {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin-bottom: 8px;

}

.upload-button {
    background-color: var(--upload-button-color);
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    box-shadow: 0 1px 1px rgba(103, 103, 103, 0.2);
    transition: transform 0.5 ease;
}

.upload-button:hover {
    transform: scale(1.02);
}


.upload-option .Or-span {
    display: block;
    text-align: center;
    margin: 25px 0;
}

.showFile {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 5px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    background-color: #EFEFEF;
    box-shadow: 0 1px 1px rgba(103, 103, 103, 0.2);
}

.upload-option textarea {
    width: 100%;
    padding: 10px;
    height: 200px;
    resize: none;
    box-sizing: border-box;
    border-radius: 10px;
    outline: 0.5px solid rgb(164, 163, 163);
    border: none;
    border: 1px solid #ccc;
    box-shadow: 0 1px 1px rgba(103, 103, 103, 0.2);
}



.upload-option textarea:focus {
    outline: 1px solid black;

}

.textarea-with-button-container {
    position: relative;
    display: inline-block;
    /* Adjust depending on layout needs */
    width: 100%;
    margin-bottom: 20px;
    /* Space for after the container */
}

#jobpost-textarea-container textarea,
#cv-textarea-container textarea {
    width: 100%;
    padding: 10px;
    height: 200px;
    /* Adjust height as needed to fit content and button */
    resize: none;
    box-sizing: border-box;
    border-radius: 10px;
    outline: 0.5px solid rgb(164, 163, 163);
    border: 1px solid #ccc;
    /* Mimic border to match other textareas */
    box-shadow: 0 1px 1px rgba(103, 103, 103, 0.2);

    padding-bottom: 45px;

}

#jobpost-textarea-container .textarea-button,
#cv-textarea-container .textarea-button {
    position: absolute;
    bottom: 10px;
    /* Adjust to position the button correctly within the container */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border: 2px dashed grey;
    /* Dashed grey border */
    border-radius: 5px;
    background-color: transparent;
    /* Transparent background */
    color: grey;
    /* Match the border color for seamless design */
    cursor: pointer;
    font-size: 14px;
    /* Adjust font size as needed */
    text-align: center;
    transition: all 0.3s ease;
    /* Smooth transition for hover effects */
}

#jobpost-textarea-container .textarea-button:hover,
#cv-textarea-container .textarea-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    /* Slight highlight on hover */
    color: black;
    /* Darken text to indicate interactivity */
    border-color: black;
    /* Darken border on hover for visibility */
}

#jobpost-textarea-container textarea:focus,
#cv-textarea-container textarea:focus {
    outline: 1px solid black;
    /* Maintain focus style */
}


/*------------------------------- Page 4 ----------------------------------------  */
.page-4Section {
    margin-top: 20px;
}

.heading-btn-div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.rewrite-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 14px;
    height: 34px;
    background: #70AFB8 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px !important;
}

.rewrite-btn:hover {
    background: #5fa3a9 !important;
}

.textarea-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-controls {
    margin-bottom: 10px;
}

.save-btn,
.cancel-btn {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.save-btn {
    background-color: #4CAF50;

    color: white;
    border: none;
    border-radius: 5px;
}

.cancel-btn {
    background-color: lightgray;
    color: white;
    border: none;
    border-radius: 5px;
}

.hidden {
    display: none;
}

#text-section textarea.content {
    box-sizing: border-box;
    width: 100%;
}

.icons-control-div {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.textArea-editable {
    box-sizing: border-box;
    padding: 15px;
    background-color: lightgray;
}

/* the animation of the copy btn to tick btn  */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

.rewrite-reason-div {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(248, 248, 248, 0.97);
    backdrop-filter: blur(2px);
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 6px;
}

.rewrite-reason-div textarea,
#rewrite-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    color: #555555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    resize: none;
    margin-bottom: 12px;
}

.rewrite-reason-div textarea::placeholder,
#rewrite-textarea::placeholder {
    color: #AAAAAA;
}

.rewrite-reason-div textarea:focus,
#rewrite-textarea:focus {
    border-color: #555555;
    outline: none;
}

.rewrite-reason-div>div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    align-self: flex-end;
}

.rewrite-reason-div .btn-skip {
    height: 38px;
    min-width: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: rgb(60, 60, 60);
    border: 1px solid rgb(220, 220, 220);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    box-sizing: border-box;
}

.rewrite-reason-div .btn-skip:hover {
    opacity: 0.9;
}

.rewrite-reason-div .btn-rewrite {
    height: 38px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #70AFB8;
    color: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    box-sizing: border-box;
}

.rewrite-reason-div .btn-rewrite:hover {
    background: #5f9fa6;
}

.content {
    min-height: auto;
}



.paragraph-wrapper {
    position: relative;
    min-height: 50px;
    /* Ensure the wrapper can contain absolutely positioned children */
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    /* Adjust the overlay background as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.skeleton-loader {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
}

.skeleton-loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}




@keyframes shimmer {
    0% {
        left: -150%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 150%;
    }
}



@keyframes pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.response-navigation {
    display: flex;
    align-items: center;
    color: #555555;
}

.response-counter {
    font-size: 14px;
}

.response-counter {
    line-height: 2;
}

.response-navigation button {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
}

.response-navigation button svg {
    color: #4a4a4a !important;
}

.textarea.content {
    width: 100%;
    /* Full-width */
    padding: 10px;
    /* Padding inside the textarea */
    margin: 5px 0;
    /* Margin for spacing around each textarea */
    box-sizing: border-box;
    /* Include padding in total width and height */
    border: 1px solid #ccc;
    /* Light grey border */
    border-radius: 4px;
    /* Rounded borders */
    background-color: #f8f8f8;
    /* Light grey background */
    resize: none;
    /* Disable resizing */
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Professional font */
    font-size: 14px;
    /* Readable font size */
    line-height: 1.5;
    /* Spacing between lines */
    height: auto;
}

#copyAll-next-div {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;

}

/* ---------------------------------------------------------------------------------------- */
/* -------------------------------- central part =--------------------------- */
#dropdown-label {
    background-image: var(--next-button-color);
}

#paragraph1CV {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    color: #555555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    resize: none;
    overflow: hidden;
}

#paragraph1CV:focus {
    border-color: #555555;
    outline: none;
}

/* ---------------------------------------------------------------------------- */
.write-applicationDiv {
    /* background-color: white;
    border: 1px solid #ccc; */
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    background-image: var(--next-button-color);
    background-color: white;
    color: white;
    border: 1px solid grey;
}

.next-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-image: var(--next-button-color);
    padding: 12px 40px;
    color: white;
    border: none;
    border-radius: 5px;
    transition: transform 0.1s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

#title {
    width: 100%;
    text-align: center;
    margin: 8vh 0 2vh 0;
}

#subTitle {
    width: 80vw;
    margin: 0 auto;
    text-align: center;
}

form select {
    width: 72vw;
    min-width: 200px;
    border: 2px solid rgb(51, 51, 51);
    border-radius: 0.75rem;
    outline-color: rgb(51, 51, 51);
    margin: 0 auto;
    background-color: white;
}

form .shortD {
    width: 100%;
    min-width: 200px;
    min-height: 200px;
    border: 2px solid rgb(51, 51, 51);
    border-radius: 0.75rem;
    outline-color: rgb(51, 51, 51);
    margin: 0 auto;
    background-color: white;
    padding: 1rem;
}

/* form #genBtn {
    width: 35vw;
    min-width: 100px;
    padding: .5rem;
    background-color: #008080 !important;
    border-radius: 0.75rem;
    margin: 0 auto;
    max-width: 250px;
    color: white;
} */

#genBtn span {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
}

.selectCont p {
    color: #347754;
}

form label {

    width: 35vw;
    min-width: 200px;
    margin: 0 auto;
}

.selectCont,
.selectCont2 {
    width: 72vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 705px;
}

.selectCont2 .div {
    width: 35vw;
    min-width: 150px;
    margin: 2vh auto 0 auto;
    max-width: 250px
}

.selectCont .div {
    width: 72vw;
    min-width: 200px;
    margin: 0 auto;
    max-width: 350px;
}

.selectCont3 .div {
    max-width: 72vw;
}

form .shortF {
    min-height: 0px;
}

label span {
    min-width: 90px;
}

.hidden {
    display: none;
}

input[type=range] {
    height: 27px;
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 14px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 1px #50555C;
    background: #E0EBFF;
    border-radius: 14px;
    border: 0px solid #000000;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 1px 1px 5px #A1A1A1;
    border: 0px solid #000000;
    height: 20px;
    width: 40px;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -3px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #E0EBFF;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 14px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 1px #50555C;
    background: #E0EBFF;
    border-radius: 14px;
    border: 0px solid #000000;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 1px 1px 5px #A1A1A1;
    border: 0px solid #000000;
    height: 20px;
    width: 40px;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 14px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #E0EBFF;
    border: 0px solid #000000;
    border-radius: 28px;
    box-shadow: 0px 0px 1px #50555C;
}

input[type=range]::-ms-fill-upper {
    background: #E0EBFF;
    border: 0px solid #000000;
    border-radius: 28px;
    box-shadow: 0px 0px 1px #50555C;
}

input[type=range]::-ms-thumb {
    margin-top: 1px;
    box-shadow: 1px 1px 5px #A1A1A1;
    border: 0px solid #000000;
    height: 20px;
    width: 40px;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
    background: #E0EBFF;
}

input[type=range]:focus::-ms-fill-upper {
    background: #E0EBFF;
}


.listening {
    fill: rgb(12, 255, 12);
    /* Listening color */
}

.lds-roller {
    display: inline-block;
    position: relative;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #000;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#copyBtn {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;
    margin: 5px 5px -50px 0;
}

#copyBtn:active {
    color: red;
    box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.6);
}

#regenerateBtn {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;
    margin: 35px 5px -80px 0;
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    min-width: 0px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    min-width: 0px;

}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked+.slider {
    background-color: #8EB3E0;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #8EB3E0;
}

.switch input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#copyBtn {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;
    margin: -32px 0 -5px 0;

}

#start-btn {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;
    margin: -32px 0 -5px 0;


}

#copyBtn:active {
    color: red;
    box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.6);
}

#regenerateBtn {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;

    margin: -31px 35px -6px 0px;

}

#readResponseButton {
    width: 25pt;
    border-radius: 5px;
    float: right;
    position: relative;
    z-index: 5;

    margin: -31px 70px -6px 0px;

}

#stopIcon {
    display: none;
}

#rewrite-textarea {
    background-color: white;
}

/* ttsBtn states: speaker / loader / pause (oversat control row) */
.tts-btn-speaker,
.tts-btn-loader,
.tts-btn-pause,
.response-tts-speaker,
.response-tts-loader,
.response-tts-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tts-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tts-btn-spin 0.6s linear infinite;
}

@keyframes tts-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------ loader ---------------------------------- */
.paragraph-wrapper {
    position: relative;
    min-height: 50px;
    /* Ensure the wrapper can contain absolutely positioned children */
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    /* Adjust the overlay background as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.skeleton-loader {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
}

.skeleton-loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ===== Quill Editor Styles ===== */

/* Hide all Quill toolbars */
#cv-textarea-quill .ql-toolbar.ql-snow,
#paragraph1CV .ql-toolbar.ql-snow,
#text-section .ql-toolbar.ql-snow {
    display: none !important;
}

/* ---- Input Quill editor ---- */
#cv-textarea-quill .ql-container.ql-snow {
    border: none;
    font-family: inherit;
    font-size: inherit;
    height: 100% !important;
}

#cv-textarea-quill .ql-editor {
    padding: 0;
    min-height: 100%;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    background-color: #FFFFFF;
}

/* Force pasted code blocks (VS Code / ChatGPT / etc.) to drop their own
   colors and backgrounds. The clipboard matcher strips these on paste, but
   this is a CSS safety net for any inline styles that slip through. */
#cv-textarea-quill .ql-editor * {
    color: #555555 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 14px !important;
    text-align: left !important;
}

#cv-textarea-quill .ql-editor.ql-blank::before {
    color: rgba(0, 0, 0, 0.4);
    font-style: normal;
    left: 12px;
    right: 12px;
}

/* ---- Response Quill editor ---- */
#paragraph1CV .ql-container.ql-snow {
    border: none;
    font-family: inherit;
    font-size: inherit;
    height: auto !important;
}

#paragraph1CV .ql-editor {
    padding: 0;
    min-height: 60px;
    height: auto;
    overflow-y: visible;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

#paragraph1CV .ql-editor * {
    color: #555555 !important;
}

#paragraph1CV .ql-editor.ql-blank::before {
    color: rgba(0, 0, 0, 0.4);
    font-style: normal;
    left: 0;
    right: 0;
}

/* List spacing in Quill */
#paragraph1CV .ql-editor ol,
#paragraph1CV .ql-editor ul {
    margin: 4px 0;
    padding-left: 1.5em;
}

/* Headings in response */
#paragraph1CV .ql-editor h1,
#paragraph1CV .ql-editor h2,
#paragraph1CV .ql-editor h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0 4px;
}

/* ========================================
   Controls row — Mobile layout
   Stack parts onto multiple lines so the bar no longer
   overflows on narrow screens.
   ======================================== */
@media (max-width: 767px) {
    .oversat-controls-row {
        flex-wrap: wrap;
        row-gap: 12px;
        column-gap: 12px;
        justify-content: flex-start;
    }

    .oversat-controls-part {
        flex: 0 0 auto;
    }

    /* Mic + speaker buttons stay on the first row, left-aligned */
    .oversat-controls-part1 {
        order: 1;
    }

    /* Language selector: sits next to the buttons on row 1 */
    .oversat-controls-part2 {
        order: 2;
        margin-left: auto;
    }

    /* Submit button: full-width on its own line */
    .oversat-controls-part4 {
        order: 4;
        flex: 1 1 100%;
    }

    .oversat-controls-part4 .oversat-submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Keep the label from being cramped against the dropdown */
    .oversat-controls-part2 .oversat-control-label {
        white-space: nowrap;
    }
}

/* Paragraphs */
#paragraph1CV .ql-editor p {
    margin: 4px 0;
}