.skriv-final-main {
    font-family: 'Poppins';
    padding: 20px;
}

/* ------------------------- skriv header ------------------------- */
.skriv-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.title {

    font-family: Poppins;
    font-size: 22px;
    font-weight: 400;
    line-height: 26.4px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #111111;
    margin-bottom: 9px;

}

.subtitle {

    font-family: Poppins;
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #606060;

}

.left-controls-div {
    display: flex;
    gap: 4.5px;
}

.right-control-div {
    display: flex;
    gap: 4.5px;
    align-items: center;
}

#inputTextHeading {

    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.2px;
    color: #111111;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: block;
    margin-bottom: 8px;
}

/* ------------------------- history ------------------------- */
.history-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

.history-btn span {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #104165;
}

.history-link {
    color: #0066cc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ------------------------- language-controls ------------------------- */
.dk-translation-box {
    display: flex;
    align-items: center;
    gap: 10px;

}

.dk-language-select {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    padding: 9.5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 151px;
    color: #606060;
}

.dk-language-select:hover {
    border-color: #e78799;
    box-shadow: 0 2px 8px rgba(231, 135, 153, 0.1);
}

.dk-language-icon {
    display: flex;
    align-items: center;
    justify-content: center;


}

.dk-language-text {
    font-size: 14px;
    color: #606060;
    font-weight: 400;

}

.dk-arrow {
    margin-left: auto;

    transition: transform 0.2s ease;
}

.dk-language-select.dk-active .dk-arrow {
    transform: rotate(180deg);
}


.dk-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dk-dropdown.dk-show {
    display: block;
    animation: dkFadeIn 0.2s ease;
}

.dk-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #606060;
    font-size: 14px;
    font-weight: 400;
}


.dk-dropdown-item:hover {
    background-color: rgba(231, 135, 153, 0.1);
}

@keyframes dkFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dk-dropdown-item.dk-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.dk-custom-language {
    padding: 8px;
    border-top: 1px solid #eee;
}

.dk-custom-input {
    width: 100%;
    padding: 6px;
    border: 0.5px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
}

.dk-custom-input:focus {
    outline: none;
    border-color: #E24668;
}

/* ================================ Page 1 Styles ================================ */
/* ------------------------------ Header ------------------------------ */
.back-button-history-div {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}


.inputTexts-headings {


    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.2px;
    color: #111111;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: block;
    margin-bottom: 8px !important;

}

/* --------------------------------- Text Input Section (inputText1) ----------------------------- */

.text-input-result {
    flex-basis: 74%;
    margin-bottom: 0;
    height: 382px;
    display: flex;
    flex-direction: column;
}

.input-header {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    /* margin-bottom: 12px; */
    display: flex;
    align-items: center;
    gap: 12px;

}

.input-header2,
.input-header1 {

    border: 1px solid #D1D1D1;
    background-color: #FDFDFD;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 13px 18px;
    justify-content: space-between;

}

.input-header span {
    display: flex;
    justify-content: center;
    align-items: center;
}



.textarea-container {
    position: relative;
    width: 100%;
    margin-bottom: 0 !important;
    position: relative;
    width: 100%;


}


.delete-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: none;
    /* Hidden by default */
}

.delete-btn:hover {
    color: #333;
}

.text-area {
    width: 100%;
    padding: 16px;
    resize: vertical;
    font-size: 16px;
    font-family: 'POPPINS';
    border: none;
    color: #414141;
}




#inputText2 {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    resize: none;
    font-size: 16px;
    font-family: 'POPPINS';
    border: none;
    outline: none;
    margin-bottom: 0 !important;
    background-color: #FFF;
    border: 1px solid #D1D1D1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    line-height: 25px;

}

#inputText1 {
    width: 100%;
    padding: 16px;
    resize: none;
    font-size: 16px;
    font-family: 'POPPINS';
    border: none;
    outline: none;
    margin-bottom: 0 !important;
    background-color: #FFF;
    border: 1px solid #D1D1D1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    line-height: 25px;

}

#inputText1 {
    min-height: 60px !important;
    min-height: unset;
    padding: 16px;
}

#inputText1 *,
#inputText2 * {
    line-height: 25px !important;
}

.text-area::placeholder {
    font-family: 'POPPINS';
    font-size: 16px;
    color: #9ca3af;
}


/* --------------------------------- Lower section ----------------------------- */
.lower-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 50%;
    margin: 17px auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.lower-container-unlimited {
    /* margin-top: 17px !important; */
}

.voice-section {
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 30px 10px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 35px;
    position: relative;
    margin-bottom: 29px;
}

.voice-header {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.2px;
    color: #111111;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: block;
    margin-bottom: 8px !important;
}

/* Container now positioned relative to first and last dots */
.voice-slider-container {
    position: relative;
    height: 8px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 16px 0 16px 0;
    /* Important: Set left and right margins to match dot positions */
    margin-left: 3px;
    /* Half of dot width */
    margin-right: 3px;
    width: calc(100% - 6px);
    /* Adjust for dot margins */
}

.voice-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(90deg,
            #e68a00 0%,
            #4CAF50 30.61%,
            #D6D6D6 53.54%,
            #B2E0F2 76.63%,
            #005F9E 100%);
    border-radius: 3px;
}

.voice-handle {
    position: absolute;
    top: 50%;
    width: 19px;
    height: 19px;
    background: white;
    border: 2px solid #e68a00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

/* Updated labels positioning */
.voice-labels {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 40px;
    padding-right: 50px;
    width: 100%;
}

.voice-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    /* Don't allow labels to grow or shrink */
}

/* Absolute positioning for dots */
.voice-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* Text styling */
.voice-label span {
    font-size: 14px;
    position: absolute;
    top: 14px;
    font-weight: 400;
    white-space: nowrap;

}

/* First label text alignment */
.voice-label:first-child span {
    transform: translateX(0);
    text-align: left;
}

/* Last label text alignment */
.voice-label:last-child span {
    text-align: right;
}

/* Dot colors */
.voice-label:nth-child(1) .dot {
    background: #e68a00;
}

.voice-label:nth-child(2) .dot {
    background: #4CAF50;
}

.voice-label:nth-child(3) .dot {
    background: #D6D6D6;
}

.voice-label:nth-child(4) .dot {
    background: #B2E0F2;
}

.voice-label:nth-child(5) .dot {
    background: #005F9E;
}

.voice-label.active span {
    color: #1A1A1A;
}




/*--------------------------------- Generate button styles -------------------*/
.generate-btn {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: #E75480;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border: 1px solid grey;
}

.generate-btn:hover {
    background: #D64D77;
}

.generate-btn:disabled {
    background-color: #FFFFFF;
    color: #111111;
    border: 1px solid grey;
    cursor: not-allowed;
    opacity: 0.7;
}

.generate-btn:not(:disabled) {
    background-color: #E75480;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

.generate-btn:not(:disabled):hover {
    background-color: #D64D77;
}

.lower-btns {
    display: flex;
    align-items: center;
    gap: 9px;
    height: fit-content;

}

/* ================================ Page 2 Styles ================================ */

/* -------------------------------- back button ----------------------------------- */
#backBtn {
    display: flex;
    padding: 8px 13px;
    gap: 10px;
    border-radius: 7px;
    justify-content: center;
    align-items: center;
    border: 1px solid #E6E6E6;
    /* background-color: white; */


    font-size: 14px;
    font-weight: 400;
    line-height: 25.2px;
    color: #E24668;
    background-color: #FCEDF0;

}

/* -------------------------------- Text Input Section (responseText) ----------------------------- */
.input-header4 {

    border: 1px solid #D1D1D1;
    background-color: #FDFDFD;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 9px 20px;
}

.responseTitle {
    margin-bottom: 0 !important;
}

.response-text-area {
    width: 100%;
    resize: none;
    font-size: 16px !important;
    font-family: 'POPPINS';
    line-height: 28px;
    border: none;
    background-color: #FFF !important;
    outline: none;
    margin-bottom: 0 !important;
    background-color: #FFF;
    border: 1px solid #D1D1D1 !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    height: 100% !important;
    /* Override inline style */
    min-height: 0;
    box-sizing: border-box;
    display: block;
    border: 1px solid #d1d1d1;
}




/* ---------------------------------- slider-gen-btn ----------------------------- */
.slider-gen-btn {
    background-color: #E75480;
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    margin-right: 10px;
}

/* ------------------------------- mic loader ----------------------------------- */
.loader {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.dotted-loader {
    position: relative;
    width: 16px;
    height: 20px;

}

.dotted-loader .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #888;
    border-radius: 50%;
    animation: fade 1s linear infinite;
    transform-origin: 10px 10px;
}

/* Create 8 dots positioned in a circle */
.dotted-loader .dot:nth-child(1) {
    transform: rotate(0deg) translateX(8px);
    animation-delay: 0s;
}

.dotted-loader .dot:nth-child(2) {
    transform: rotate(45deg) translateX(8px);
    animation-delay: 0.125s;
}

.dotted-loader .dot:nth-child(3) {
    transform: rotate(90deg) translateX(8px);
    animation-delay: 0.25s;
}

.dotted-loader .dot:nth-child(4) {
    transform: rotate(135deg) translateX(8px);
    animation-delay: 0.375s;
}

.dotted-loader .dot:nth-child(5) {
    transform: rotate(180deg) translateX(8px);
    animation-delay: 0.5s;
}

.dotted-loader .dot:nth-child(6) {
    transform: rotate(225deg) translateX(8px);
    animation-delay: 0.625s;
}

.dotted-loader .dot:nth-child(7) {
    transform: rotate(270deg) translateX(8px);
    animation-delay: 0.75s;
}

.dotted-loader .dot:nth-child(8) {
    transform: rotate(315deg) translateX(8px);
    animation-delay: 0.875s;
}

@keyframes fade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ---------------------------- new styling -------------------------------- */
#genderSelector span {
    display: flex;
    align-items: center;
    justify-content: center;
}

#genderSelector {
    padding: 7px;
}

.gender-option {
    gap: 4px;
    border-radius: 5px;
    padding: 7px 9px !important;
}

#stopBtn,
#pausePlayBtn {
    position: relative;
}

#stopBtn:focus,
#pausePlayBtn:focus,
#downloadBtn:focus {
    background-color: transparent !important;
}

#stopBtn::after,
#pausePlayBtn::after {
    content: "";
    position: absolute;
    top: 27%;
    right: 0;
    height: 50%;
    width: 0.7px;
    background-color: #D6D6D6;
}


/* ------------------------------- Loader ----------------------------- */
.mainResponseDiv {
    position: relative;
    flex: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
    /* height: calc(100% - 62px); */
    /* Subtract header height */
}

.loader-backdrop-2,
.loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #D1D1D1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-sizing: border-box;
}

.bubble-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-right: 9px;
    height: 60px;
}

.bubble {
    position: relative;
    /* Added for ripple effect */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff9daf;
    animation: bubble-animation 1.8s ease-in-out infinite;
}


@keyframes bubble-animation {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(3);
        opacity: 0.8;
    }
}

.bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ff9daf;
    opacity: 0.7;
    animation: ripple 1.8s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.loader-text-2,
.loader-text {
    font-family: Poppins;
    color: #414141;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}


/* ------------------------------- Correction options ----------------------------- */


.option-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    font-size: 14px;
    color: #414141;
    border: none;
    background: #F6F6F6;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}


/* Correction options */
.correction-options {

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #FDFDFD;
    border-radius: 7.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #E6E6E6;
    padding: 10px;

}

.options-row {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    font-size: 14px;
    color: #414141;
    border: none;
    background: #F6F6F6;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

.option-btn:hover {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.option-btn:focus {
    background-color: #f9fafb !important;
    color: #1f2937 !important;
}

.divider {
    color: #e5e7eb;
}

/* ------------------------------------ restart btn -------------------------------------- */
.restart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: 29px;
    background-color: #FDFDFD;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    width: fit-content;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border: 1px solid grey;
    opacity: 0.7;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.2px;
    color: black;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    padding: 12px 40px;
    border-radius: 5px;
}

.restart-btn span {
    margin-right: 10px;
}

/* ------------------------------------ inputHeader2 ------------------------------------ */
#input-header2 {
    color: #929292;
    font-family: Poppins;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

/* ==================================== rewrite modal =================================== */
#micButton3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------------------  new rewrite code -------------------------------------- */
/* =============================================================== rewrite modal =========================================== */
/* Modal styles */
.dk-hamdan-modal-container {
    width: 550px;
    max-width: 95vw;
    background: white;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.dk-hamdan-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dk-hamdan-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
}

.dk-hamdan-modal-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.dk-hamdan-close-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 5px;
    transition: all 0.2s;
}

.dk-hamdan-close-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Options grid */
.dk-hamdan-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.dk-hamdan-option-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    white-space: pre-wrap;
}



.dk-hamdan-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;

}



.dk-hamdan-option-title {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.dk-hamdan-option-description {
    font-size: 13px;
    color: #4b5563;
    text-align: center;
}

/* Custom input section */
.dk-hamdan-custom-input-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 16px;
    transition: all 0.2s;
}


.dk-hamdan-custom-input-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dk-hamdan-custom-input-label {
    background: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dk-hamdan-input-container {
    position: relative;
}

.dk-hamdan-custom-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 0.5px solid #e5e7eb !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    background-color: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    padding-right: 110px !important;
}

.dk-hamdan-custom-input:focus {
    border-color: rgb(232, 107, 134) !important;
    /* focus:border-transparent */
    box-shadow: 0 0 0 2px rgb(232, 107, 134);
}

.dk-hamdan-custom-input:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* hover:shadow-md */
}

.dk-hamdan-custom-input::placeholder {
    color: #9ca3af;
}

.dk-hamdan-enter-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.dk-hamdan-enter-key {
    background: #e5e7eb;
    color: #4b5563;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Icons */
.dk-hamdan-icon {
    width: 20px;
    height: 20px;
    color: rgb(232, 107, 134);
}

.dk-hamdan-icon-small {
    width: 16px;
    height: 16px;
}

.dk-hamdan-modal-container {
    display: none;

}


#convencing:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

#simplify:hover {
    background-color: rgba(16, 185, 129, 0.1);
}

#elaborate:hover {
    background-color: rgba(236, 72, 153, 0.1);
}

#concise:hover {
    background-color: rgba(124, 58, 237, 0.1);
}

.clear-icon {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 5px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: rgb(232, 107, 134);
    cursor: pointer;
    display: none;
    /* Hidden by default */
    padding: 5px;
}

.clear-icon:hover {

    background-color: rgba(128, 128, 128, 0.232);
    border-radius: 5px;

}

/* ------------------------------ navigation buttons ------------------------- */
.counter-nav-div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 15px;
    /* Allows for centering with absolute positioning */
}


.response-navigation {

    display: none;
    /* Ensure contents are aligned to the start */
}


/* ------------------------ Response navigation ------------------------------ */
.response-navigation {
    display: flex;
    align-items: center;
    padding: 5px;
    flex-basis: calc(50% - 43px);
    gap: 15px;
    justify-content: flex-start;


}

.nav-icons-div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #667185;
    padding: 5px;
    border-radius: 6px;
}

.response-navigation button {
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 0;

}

.response-counter {

    font-family: Poppins;
    font-size: 14px;
    font-weight: 500;
    line-height: 16.8px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #414141;

}

/* ------------------------ show saved history ------------------------------ */
/* ----------------------------------- popup of saved responses ------------------------------------ */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}


.popup-content {
    background-color: #F9F9F9;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hClose {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#savedResponsesList {
    flex-grow: 1;
    overflow-y: auto;
    margin: 0 -10px;
    /* Adjust as needed */
    padding: 0 10px;
    padding-right: 4px;
    /* Adjust as needed */
}

.delete-all-history {
    flex-shrink: 0;
    margin-top: 20px;
}


.close {

    cursor: pointer;
    margin-right: -12px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.saved-response {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    color: black;
    border-color: #E6E6E6;
    background-color: #FFFFFF;
    padding: 13px !important;
}

.copy-button-container {

    display: flex;
    margin-left: 5px;
    justify-content: flex-end;
}

.left-history-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#popup-heading {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #626262;
    margin-top: 1px;
}

.copy-btn1 {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.saved-response textarea {
    width: 100%;
    overflow: hidden;
    resize: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;

}

/* Add this class to make sure the specific textareas don't have a min-height */
textarea.no-min-height {
    min-height: 0;

    /* Override any default min-height */
}

.button-container {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1px;
    margin-right: -4px;
}

.delete-btns {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.del-history-text {
    color: #E35071;
    font-size: 16px;
    cursor: pointer;
}

.delete-all-history {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.loader2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px;
}

.dotted-loader {
    position: relative;
    width: 16px;
    height: 20px;

}

.dotted-loader .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #888;
    border-radius: 50%;
    animation: fade 1s linear infinite;
    transform-origin: 10px 10px;
}

/* Create 8 dots positioned in a circle */
.dotted-loader .dot:nth-child(1) {
    transform: rotate(0deg) translateX(8px);
    animation-delay: 0s;
}

.dotted-loader .dot:nth-child(2) {
    transform: rotate(45deg) translateX(8px);
    animation-delay: 0.125s;
}

.dotted-loader .dot:nth-child(3) {
    transform: rotate(90deg) translateX(8px);
    animation-delay: 0.25s;
}

.dotted-loader .dot:nth-child(4) {
    transform: rotate(135deg) translateX(8px);
    animation-delay: 0.375s;
}

.dotted-loader .dot:nth-child(5) {
    transform: rotate(180deg) translateX(8px);
    animation-delay: 0.5s;
}

.dotted-loader .dot:nth-child(6) {
    transform: rotate(225deg) translateX(8px);
    animation-delay: 0.625s;
}

.dotted-loader .dot:nth-child(7) {
    transform: rotate(270deg) translateX(8px);
    animation-delay: 0.75s;
}

.dotted-loader .dot:nth-child(8) {
    transform: rotate(315deg) translateX(8px);
    animation-delay: 0.875s;
}

@keyframes fade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.copy-btn1:hover,
.delete-btns:hover {
    background: #e0e0e0;
    border-radius: 4px;
}

.copy-btn1,
.delete-btns {
    padding: 3px !important;
}

/* Custom scrollbar styles for Webkit browsers (Chrome, Safari, Edge) */
#savedResponsesList::-webkit-scrollbar {
    width: 11px;
}

#savedResponsesList::-webkit-scrollbar-track {
    background: #F9F9F9;
    border-radius: 4px;
}

#savedResponsesList::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 4px;
    border: 2px solid #F9F9F9;
}

#savedResponsesList::-webkit-scrollbar-thumb:hover {
    background: #B8B8B8;
}


/* --------------------------------- delete buttons game ------------------------ */
#deleteBtn1,
#deleteBtn2 {
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#deleteBtn1:disabled,
#deleteBtn2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----------------- mic CSS ----------------- */
.lucide-mic.listening-glow {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 5px #28a745);
    }

    50% {
        filter: drop-shadow(0 0 15px #28a745);
    }

    100% {
        filter: drop-shadow(0 0 5px #28a745);
    }
}

/* ------------------------- buttons hovers --------------------------------- */
.control-btn {
    padding: 5px;
    border-radius: 9999px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #f3f4f6 !important;
    color: #374151;
}


#bookmarkBtn {
    margin-left: 3px;
}

#rewriteBtn:hover {
    background-color: #FCEDF0 !important;
}

/* --------------------------------- limited divs CSS ------------------------ */
.word-count {
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 14px;
}


.word-counter-div {
    display: none;
    align-items: center;
    padding: 5px;

    justify-content: center;
    margin-top: 11px;
}

textarea {
    overflow: hidden;
    resize: none;
}

/* ------------------------ Responsive Media Queries  ------------------------ */



/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
    .lang-legend-div {
        flex-wrap: nowrap;
    }

    .toolbar {
        /* min-width: 400px; */
    }
}

/* Desktop and Small Laptop (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .lang-legend-div {
        gap: 10px;
    }

    .toolbar {
        flex-wrap: nowrap;
    }
}

/* Tablet Landscape (768px to 991px) */
@media screen and (max-width: 991px) {
    .lang-legend-div {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-container {
        max-width: 100%;
    }

    .language-controls {
        justify-content: flex-start;
        width: 100%;
    }

    .legend-section {
        flex-wrap: nowrap;
    }
}

/* Tablet Portrait (576px to 767px) */
@media screen and (max-width: 767px) {


    #vertical-line {
        display: none;

    }

    #German,
    #French {
        display: none;
    }

    .other-lang-input {
        display: none;
    }

    #legend-section {
        display: none !important;
    }


}

/* Mobile (575px and below) */
@media screen and (max-width: 767px) {

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .legend-section {
        flex-direction: column;
        gap: 7.5px;
        width: 100%;
    }

    .legend-item {
        justify-content: flex-start;
    }

    .language-controls {
        /* flex-wrap: wrap; */
        gap: 5px;
        justify-content: center;
    }

    .other-lang-input {
        width: 100%;
        margin: 5px 0;
    }

    .language-controls {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
    }

    .language-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .toggle-section {
        width: 100%;
        justify-content: center;
    }

    .legend-item {
        width: 100%;
        justify-content: center;
    }

    .other-lang-input {
        padding: 10px;
        text-align: center;
    }

    .toolbar {
        padding: 12px;
    }

    .popup-content {
        background-color: #F9F9F9;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        height: 80%;
        max-height: 1000px;
        overflow: scroll;
        position: relative;
        border-radius: 10px;
    }

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

    .main-textarea-section {
        flex-basis: 100% !important;
    }

    .lower-container {
        width: 100%;
    }

    .elementor-21328 .elementor-element.elementor-element-5d92334 {
        margin-left: 0px !important;
    }

    .elementor-28587 .elementor-element.elementor-element-bc27633 {
        margin-left: 0px !important;
    }

    .response-navigation {
        flex-basis: 100%;
    }

    #voiceLabel2,
    #voiceLabel4 {
        display: none;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .lang-legend-div {
        gap: 7.5px;
    }

    .language-btn {
        font-size: 14px;
        padding: 8px;
    }

    .legend-text {
        font-size: 12px;
    }

    .switch-label {
        font-size: 12px;
    }

    .popup-content {
        background-color: #F9F9F9;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        height: 80%;
        max-height: 1000px;
        overflow: scroll;
        position: relative;
        border-radius: 10px;
    }

    .voice-label:nth-of-type(2),
    .voice-label:nth-of-type(4) {
        display: none;
    }
}

/* Handle height adjustments for better touch targets on mobile */
@media (hover: none) and (pointer: coarse) {

    .language-btn,
    .other-lang-input {
        min-height: 44px;
        /* Better touch target size */
    }

    .legend-item,
    .toggle-section {
        padding: 8px 0;
    }
}

/* Ensure proper spacing when keyboard is visible on mobile */
@media screen and (max-height: 500px) {
    .lang-legend-div {
        gap: 5px;
    }

    .toolbar {
        padding: 6px;
    }
}

@media screen and (max-width: 450px) {
    .word-counter-div {
        display: flex;
        flex-wrap: wrap;
    }
}

/* ----------------------------- correction-option div ----------------------------- */


/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
    .options-container {
        padding: 10px 20px;
    }

    .options-row {
        gap: 15px;
    }


}

/* Desktop and Small Laptop (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .options-container {
        max-width: 95%;
    }

    .lower-container {
        width: 100% !important;
    }
}

/* Tablet Landscape (768px to 991px) */
@media screen and (max-width: 991px) {
    .options-row {
        gap: 10px;
        padding: 5px;
        justify-content: center;
    }

    .option-btn {
        flex: 0 1 auto;
    }

    .divider {
        display: none;
        /* Hide divider on smaller screens */
    }
}

/* Tablet Portrait (576px to 767px) */
@media screen and (max-width: 767px) {
    .options-container {
        padding: 7.5px;
    }

    .options-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .option-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    /* Adjust spacing for read button icons */
    .lucide-volume-2,
    .lucide-pause {
        width: 18px;
        height: 16px;
    }

    /* Stack buttons vertically */
    .rewrite-btn {
        margin-top: 8px;
        order: -1;
        /* Move rewrite button to top on mobile */
    }
}

/* Mobile (575px and below) */
@media screen and (max-width: 575px) {
    .correction-options {
        margin-top: 10px;
    }

    .options-container {
        padding: 5px;
        border-radius: 8px;
    }

    .option-btn {
        font-size: 13px;
        padding: 10px;
    }

    .option-btn svg {
        width: 16px;
    }

    /* Adjust text spacing */
    .option-btn span {
        font-size: 13px;
    }
}

/* Small Mobile (360px and below) */
@media screen and (max-width: 360px) {
    .options-container {
        padding: 5px;
    }

    .option-btn {
        padding: 8px;
        font-size: 12px;
    }

    .option-btn svg {
        width: 14px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .option-btn {
        min-height: 44px;
        /* Better touch target */
        padding: clamp(12px, 1.5vw, 16px);
    }

    /* Increase tap target area */
    .option-btn+.option-btn {
        margin-top: 8px;
    }
}



/* Ensure proper button behavior when keyboard is visible */
@media screen and (max-height: 500px) {
    .options-container {
        position: static;
        transform: none;
    }

    .options-row {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .option-btn {
        flex: 1 1 auto;
    }
}

/* High DPI Screens */
@media screen and (min-resolution: 192dpi) {
    .option-btn svg {
        stroke-width: 1.25;
    }
}

/* Print Styles */
@media print {
    .correction-options {
        display: none !important;
    }
}






@media screen and (max-width: 767px) {
    .options-container {
        padding: 7.5px;
    }

    .options-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        padding: 5px;
    }

    /* Base styles for all buttons */
    .option-btn {
        width: 100%;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        white-space: nowrap;
        background-color: white;
        border: 1px solid #E6E6E6;
        border-radius: 6px;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Explicit order for each button */
    /* Explicit order for each button */
    #copyBtn {
        order: 1;
    }

    #readBtn {
        order: 2;
    }

    .download-container {
        order: 3;
    }

    .rewrite-btn {
        order: 4;
        background-color: #FCEDF0;
        color: #E24668;
    }


    /* Remove the divider */
    .divider {
        display: none;
    }

    /* Consistent icon styling */
    .option-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    /* Consistent text styling */
    .option-btn span {
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .option-btn {
        min-height: 44px;
        height: 44px;
    }
}



@media screen and (max-width: 399px) {
    .options-row {
        grid-template-columns: 1fr;
        /* Single column layout */
        grid-template-rows: auto;
        /* Adjust rows based on content */
        gap: 8px;
        /* Maintain spacing between buttons */
        padding: 5px;
    }
}

.text-area-container {
    display: flex;
    justify-content: space-between;
}

/* ----------------------------------- correction sidebar ------------------------ */
.correction-sidebar.hidden {
    display: none;
}

.correction-sidebar {
    transition: display 0.3s ease;
}

.correction-sidebar {
    flex-basis: 25%;
    background: #F9F9F9;

    border-top-right-radius: 7.5px;
    border-bottom-right-radius: 7.5px;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid #D1D1D1;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}



.header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #D1D1D1;
    position: sticky;
    padding: 13px 15px;
    background-color: #FDFDFD;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    z-index: 10;
    font-size: 9px;
    gap: 10px;
}

.analysis-card {
    width: 91%;
    margin: 0 auto;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.analysis-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.analysis-title-subtitle {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.analysis-subtitle {
    color: #414141;
    font-family: Poppins;
    font-size: 11px;
    font-weight: 400;
    line-height: 12.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.warning-message {

    display: flex;
    align-items: center;
    gap: 8px;
    color: #414141;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 400;
    line-height: 12.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    background-color: #E7ECF0;

}

.warning-inner {
    display: flex;
    align-items: center;
    padding: 14px 0px;
    margin-left: 5%;
    margin-right: 5%;
    gap: 5px;

}

.style-conversion {

    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.style-label {
    padding: 6px 14px;
    border-radius: 4px;
}

.style-label.informal {
    background: #E7ECF099;
    color: #606060;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 400;
    line-height: 12.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.style-label.professional {
    background: #FCEDF0;
    color: #E24668;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 400;
    line-height: 12.6px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}


.action-button {
    background: #E75D77;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    width: 91%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-button:hover {
    background: #d84d68;
}

.correction-inner {

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --------------------------- change style content ----------------------- */


/* Layout styling for content containers */
.correction-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 16px 0px;
    transition: none;
    height: 100%;
    border-top: 1px solid #D1D1D1;
}

.style-inner {

    flex-direction: column;
    gap: 12px;
    padding: 4px 20px;
    transition: none;
    border-top: 1px solid #D1D1D1;
}

.style-option {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid #F4F4F4;
}

.style-option:last-child {
    border-bottom: none;
}

.style-option:nth-child(1):hover {
    background-color: rgba(59, 130, 246, 0.1);
    /* #convencing */
}

.style-option:nth-child(2):hover {
    background-color: rgba(16, 185, 129, 0.1);
    /* #simplify */
}

.style-option:nth-child(3):hover {
    background-color: rgba(236, 72, 153, 0.1);
    /* #elaborate */
}

.style-option:nth-child(4):hover {
    background-color: rgba(124, 58, 237, 0.1);
    /* #concise */
}

.style-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

.style-icon.formal {
    background-color: #e8eaff;
    color: #6b77ff;
}

.style-icon.chat {
    background-color: #e6faea;
    color: #2ed573;
}

.style-icon.book {
    background-color: #fff0ff;
    color: #cd84f1;
}

.style-icon.humor {
    background-color: #fff4e4;
    color: #ffaf40;
}

.style-content {
    flex: 1;
}

.style-title {
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    margin-bottom: 4px;
}

.style-description {
    font-size: 12px;
    color: #414141;
    line-height: 1.4;
}


.ai-analysis-text {
    color: #104165;
    font-family: Poppins;
    font-size: 12px;
    font-weight: 500;
    line-height: 15.4px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.search-icon {
    background-color: #E7ECF0;
    display: flex;
    padding: 3px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

.demo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
}

#gif {

    /* margin-bottom: 10px; */
}

#gif svg {
    width: 90px !important;
    height: 90px !important;
    margin-bottom: -20px;
}

.correction-inner-main {
    display: flex;
    flex-direction: column;
    gap: 16px;

    transition: none;
    height: 100%;
}

.correction-message {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Update these styles */
.main-textarea-section,
.correction-sidebar,
#inputText {
    transition: none;
    min-height: 0;
    /* Remove any minimum height constraints */
}



.header-section {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap */
    gap: 10px;
    /* Space between wrapped items */
    min-height: fit-content;
    /* Ensure it grows with content */
}


/* --------------------- new header ---------------------------- */


.hk-dropdown-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.hk-dropdown-button {
    width: 100%;
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hk-dropdown-button:hover {
    border-color: #e78799;
    background-color: transparent !important;
    box-shadow: 0 2px 8px rgba(231, 135, 153, 0.1)
}

.hk-dropdown-button:focus {
    border-color: #e78799;
    background-color: transparent !important;
    box-shadow: 0 2px 8px rgba(231, 135, 153, 0.1)
}


.selected-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hk-dropdown-text {
    flex-grow: 1;
    text-align: left;
    font-size: 14px;
    color: #606060;
}

.hk-dropdown-arrow {
    transition: transform 0.2s ease;
}

.hk-dropdown-button.active .hk-dropdown-arrow {
    transform: rotate(180deg);
}

.hk-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.hk-dropdown-content.show {
    display: block;
}

.hk-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hk-dropdown-option span {
    font-size: 14px;
    color: #606060;
}

.hk-dropdown-option:hover {
    background-color: rgba(231, 135, 153, 0.1);
}

.hk-dropdown-option svg path {
    transition: stroke 0.2s ease;
}

.hk-dropdown-option.active svg path {
    stroke: #E24668;
}

.correction-inner,
.style-inner {
    display: none;
}

.correction-inner.active,
.style-inner.active {
    display: flex;
}

/* ------------------------ toolbar container ------------------------- */

.toolbar-container {
    display: flex;
    justify-content: center;
    /* margin-top: 12px; */
}

.toolbar {
    background-color: #F9F9F9;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    gap: 10px;
}



/* Toggle section styles */
.toggle-section {
    display: flex;
    align-items: center;
    gap: 7.5px;
    padding: 5px 10px;

}


/* Switch styles */
.switch {
    position: relative;
    width: 36px;
    height: 20px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 20px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 10px;
    bottom: 5px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch-input:checked+.switch-slider {
    background-color: #141B34;
}

.switch-input:checked+.switch-slider:before {
    transform: translateX(13px);
}

.switch-label {
    color: #111111;
    font-family: Poppins;
    font-size: 11px;
    font-weight: 500;
    line-height: 13.2px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}


/* --------------------- circle loader ------------------- */
.gradient-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
            rgba(226, 70, 104, 0.2),
            rgba(226, 70, 104, 1),
            rgba(226, 70, 104, 0.2));
    background-size: 200% 100%;
    animation: gradient-move 1.5s ease-in-out infinite;
}



@keyframes gradient-move {
    0% {
        background-position: 100% 0;
    }

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

@media screen and (max-width: 767px) {
    .toolbar-container {
        display: none !important;
    }

    .skriv-header {
        align-items: center;
    }
}


/* Add this to your CSS file */
.text-area ul,
.text-area .editor-list {
    list-style-type: disc !important;
    margin-left: 20px !important;
    padding-left: 20px !important;
}

.text-area ol {
    list-style-type: decimal !important;
    margin-left: 20px !important;
    padding-left: 20px !important;
}

.text-area li,
.text-area .editor-list-item {
    display: list-item !important;
    list-style-position: outside !important;
}

/* .text-area p {
    margin: 0 !important;
} */

.markdown-body {
    padding: 0;
    max-width: 100%;
    font-family: Poppins;
    background-color: #F9F9F9;
    color: #414141;
}

.saved-response .textarea-container .response-text-area {
    border: none !important;
}



/* Styles for the contenteditable divs */
.text-area {
    position: relative;

}

/* Placeholder styling using ::before and the is-empty class */
.text-area.is-empty::before {
    content: attr(placeholder);
    position: absolute;
    left: 16px;
    top: 16px;
    color: #888;

}

.saved-response .response-text-area {
    background-color: #fff;
}

.textarea-container .markdown-body {
    background-color: #fff;
}

#inputText1>*:first-child,
#inputText2>*:first-child {
    display: block !important;
}

.markdown-body table {
    width: 100% !important;
}

.markdown-body tr {
    background-color: white !important;
}

/* --------------------------------- download-------------------------------- */
.download-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 4px;
}

.download-option {
    padding: 8px 16px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.download-option:hover {
    background-color: #f5f5f5;
}

/* --------------------------------- Bookmark code-------------------------------- */

/* Prompt Saver Container */
.hmk-prompt-saver-div {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #D1D1D1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Header */
.hmk-header {
    display: flex;
    align-items: center;
    padding: 18px 7px;
    padding-right: 10px;
    border-bottom: 2px solid #D1D1D1;
    background-color: #FDFDFD;
}

.hmk-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.hmk-header-icon svg {
    width: 18px;
    height: 18px;
    fill: #e75480;
}

.hmk-header-title {
    flex-grow: 1;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 25.2px;
    color: #111111;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    display: block;

}

.hmk-close-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add prompt button */
.hmk-add-prompt-container {
    padding: 10px 11px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    background-color: #F9F9F9;
}

.hmk-prompt-card:first-child {
    margin-top: 10px;
}

.hmk-add-prompt-button {
    background: none;
    border: none;
    color: #e75480;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.hmk-add-prompt-button svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.hmk-search-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hmk-search-button svg {
    width: 15px;
    height: 15px;
    color: #999;
}

/* Search bar */
.hmk-search-container {
    width: 100%;
    display: none;
    flex-direction: row;
    border: 1px solid #cecece;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.hmk-search-container span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hmk-search-container.active {
    display: block;
}

#searchClose {
    margin-right: 9px;
}

#searchLine {
    width: 1px;
    height: 27px;
    background-color: #dad6d6;
    border: none;
    transform: rotate(0deg);
    margin: 0 6px;
}


.hmk-search-input {
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    border: none;
}

.hmk-search-input:focus {
    outline: none;
    border: none;
}

.hmk-search-input:active {
    outline: none;
    border: none;
}

/* Prompts container */
.hmk-prompts-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 5px 16px 10px;
    background-color: #F9F9F9;
    position: relative;

}

.hmk-no-result {
    text-align: center;
    color: #999;
    margin-top: 120px;
    font-size: 14px;
}

/* Prompt Card */
.hmk-prompt-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #DBDBDB;
}

.hmk-prompt-card:last-child {
    margin-bottom: 0;
}

.hmk-prompt-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.hmk-prompt-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add/Edit prompt modal */
.hmk-modal {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    margin-top: 10px;
}

.hmk-modal.active {
    display: flex;
}

.hmk-modal-header {
    display: flex;
    justify-content: flex-end;
    background-color: #FCEDF0;
    padding-right: 12px;
    padding-top: 12px;
}

.hmk-modal-body {
    padding: 12px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    background-color: #FCEDF0;
}

.hmk-input-container {
    margin-bottom: 12px;

}

.hmk-input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 29px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    font-size: 14px;
}

.hmk-input:focus {
    outline: none;
    border: 1px solid #D1D1D1;
}

.hmk-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
    flex-grow: 1;
    min-height: 100px;
    padding-right: 29px;
    overflow-y: auto;
}

.hmk-textarea:focus {
    outline: none;
    border: 1px solid #D1D1D1;
}

.hmk-button {
    width: 100%;
    padding: 7px 12px;
    background-color: #e75480;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
}

.hmk-mic-button {
    background: none;
    border: none;
    position: absolute;
    right: 12px;
    color: #999;
    cursor: pointer;
}

.hmk-title-mic {
    top: 16px;
}

.hmk-content-mic {
    bottom: 80px;
}


/* Additional CSS for new features */

.hmk-prompt-card-container {
    display: block;
    width: 100%;
}

.hmk-card-actions {
    display: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.hmk-prompt-card {
    position: relative;
}

.hmk-prompt-card.active {
    box-shadow: 0px 4px 8px rgba(255, 199, 209, .5);
    border: 1px solid #ffc7d1;
}

.hmk-prompt-card:hover .hmk-card-actions {
    display: flex;
    gap: 0px;
}

.hmk-prompt-card:hover {
    transform: scale(1) translateY(-5px);
    transition: transform .3s ease;
    z-index: 10;
}

.hmk-prompt-content {
    border-top: 1px solid #e6e6e6;
    padding-top: 8px;
    margin-top: 8px;
}

.hmk-edit-btn,
.hmk-delete-btn {
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.hmk-edit-btn:hover,
.hmk-delete-btn:hover {
    background: #e0e0e0;
}

/* Update existing styles */
.hmk-modal {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}




.hmk-input-container,
.hmk-textarea-container {
    position: relative;
}

/* Common mic icon styles */
.mic-icon-hmk {
    position: absolute;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mic icon inside input field - right middle */
.hmk-input-container .mic-icon-hmk {
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mic icon inside textarea - bottom right */
.hmk-textarea-container .mic-icon-hmk {
    right: 7px;
    bottom: 16px;
}

.hmk-prompt-title {
    font-weight: 500;
    color: #1E1E1E !important;
    margin: 0 !important;
}

.text-input-section-container {
    height: fit-content;
}

.loader1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


/* Card action loading state */
.hmk-card-actions.loading {
    position: relative;
    pointer-events: none;
}

.hmk-card-actions.loading:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(231, 84, 128, 0.3);
    border-top-color: #e75480;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Custom scrollbar styles for Webkit browsers (Chrome, Safari, Edge) */
.hmk-prompts-container::-webkit-scrollbar {
    width: 8px;
}

.hmk-prompts-container::-webkit-scrollbar-track {
    background: #F9F9F9;
    border-radius: 4px;
}

.hmk-prompts-container::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 4px;
    border: 2px solid #F9F9F9;
}

.hmk-prompts-container::-webkit-scrollbar-thumb:hover {
    background: #B8B8B8;
}

.hmk-textarea::-webkit-scrollbar {
    width: 8px;
}

.hmk-textarea::-webkit-scrollbar-track {
    background: #F9F9F9;
    border-radius: 4px;
}

.hmk-textarea::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 4px;
    border: 2px solid #F9F9F9;
}

.hmk-textarea::-webkit-scrollbar-thumb:hover {
    background: #B8B8B8;
}

#hmkMainContainer {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hmkPromptButton {
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 16px;
}

.hmk-prompts-container {
    background-image: url('https://skrivsikkert.dk/wp-content/uploads/2025/05/SAVED-PROMP_blur.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================== input field =========================== */
/* Hide the default Quill toolbar */
.ql-toolbar.ql-snow {
    display: none;
}

/* Style the editor to match the original textarea */
.ql-container.ql-snow {
    border: none;
    font-family: inherit;
    font-size: inherit;
}

#editor-container {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

#editor1,
#editor2 {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 1px solid #D1D1D1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 16px;
}

.ql-editor {
    padding: 20px;
}

.ql-editor.ql-blank::before {
    color: rgba(0, 0, 0, 0.6);
    content: attr(data-placeholder);
    font-style: normal;
    left: 20px;
    pointer-events: none;
    position: absolute;
    right: 15px;
}

#editor1 *,
#editor2 *,
#responseText * {
    color: #414141 !important;
    background-color: #fff !important;
    font-family: Poppins !important;
    /* font-size: 16px !important; */
    text-align: left !important;
    /* border: none !important; */
    line-height: 28px;

}

#uploadImg {
    margin-left: 3px;
}

.revert-clear-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;

    border-radius: 8px;
    padding: 3.5px 2px;
}

#revertBack,
#revertBack1 {
    margin-right: 7px;
    margin-left: 7px;
}

#deleteBtn2,
#deleteBtn1 {
    margin-right: 5px;
    margin-left: 5px;
}

.vertical-hr {
    border: none;
    border-left: 1px solid #D9D9D9;

    height: 15px;

    width: 0;

}

#editor1 h1,
#editor2 h1 {
    font-size: 16px !important;
}

#editor1 h2,
#editor2 h2 {
    font-size: 16px !important;
}

#editor1 h3,
#editor2 h3 {
    font-size: 16px !important;
}

#editor1 h4,
#editor2 h4 {
    font-size: 16px !important;
}

#editor1 h5,
#editor2 h5 {
    font-size: 16px !important;
}

#editor1 h6,
#editor2 h6 {
    font-size: 16px !important;
}

.ql-editor>h1:first-child+p>br:only-child,
.ql-editor>h2:first-child+p>br:only-child,
.ql-editor>h3:first-child+p>br:only-child,
.ql-editor>h4:first-child+p>br:only-child,
.ql-editor>h5:first-child+p>br:only-child,
.ql-editor>h6:first-child+p>br:only-child {
    display: none !important;
}

.ql-editor ol {
    margin: 16px 0 !important;
}

.ql-editor ul {
    margin: 16px 0 !important;
}

.ql-editor p {
    margin: 0 0 5px !important;
}

.ql-container {
    overflow-anchor: none;
}

.ql-container,
.ql-editor {
    overflow: hidden !important;
    max-height: none !important;
}

#editor1 {
    min-height: 60px;
}


#editor1 h1,
#editor2 h1,
#responseText h1,
#editor1 h2,
#editor2 h2,
#responseText h2,
#editor1 h3,
#editor2 h3,
#responseText h3,
#editor1 h4,
#editor2 h4,
#responseText h4,
#editor1 h5,
#editor2 h5,
#responseText h5,
#editor1 h6,
#editor2 h6,
#responseText h6 {
    font-size: 16px !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {

    border-bottom: none !important;
    font-size: 16px !important;
}


.ql-table-menus-container {
    display: none !important;
}

.ql-operate-line-container {
    display: none !important;
}

.ql-table-better {
    margin-bottom: 20px !important;
}

.ql-editor table {
    font-size: 16px !important;
}

/* --------------------------------- media query for responsive design -------------------------------- */
@media (max-width: 599px) {
    .hmk-card-actions {
        display: none !important;
    }
}

.char-limit-warning-red {
    color: #E24668 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.char-limit-warning-limited {
    color: rgb(96, 96, 96);
    font-size: 14px !important;
    margin-bottom: 0px !important;
}

.char-limit-warning {
    color: rgb(96, 96, 96);
    font-size: 14px !important;
    margin-bottom: 0px !important;
}

.hamdan-robot-container {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hamdan-speech-bubble {
    position: absolute;
    bottom: calc(100% - 0px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 30%, #ffffff 70%, #f8fafc 100%);
    color: #1e293b;
    padding: 15px 18px;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.3;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.04), 0 12px 24px rgba(15, 23, 42, 0.03), 0 6px 12px rgba(15, 23, 42, 0.02), 0 2px 4px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(148, 163, 184, 0.04);
    white-space: nowrap;
    animation: hamdan-fadeInScale-5115 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(20px) saturate(1.2);
    z-index: 10;
}

.hamdan-speech-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 28px;
    opacity: 0.8;
}

.hamdan-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.03)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
}



@keyframes hamdan-fadeInScale-5115 {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}