/* CUSTOM TYPES */
/* Library Types */
.library .actions-buttons button:not(.back-button) {
    display: none;
}

.library[type="ask"] #exportButton, .library[type="ask"] #copyButton,
.library[type="diagram"] #exportButton,
.library[type="flashcards"] #flashcardFilterButton, .library[type="flashcards"] #flashcardToggleButton,
.library[type="grammar"] #exportButton, .library[type="grammar"] #copyButton,
.library[type="homework"] #exportButton, .library[type="homework"] #copyButton,
.library[type="humanizer"] #exportButton, .library[type="humanizer"] #copyButton,
.library[type="presentation"] #exportButton,
.library[type="reader"] #exportButton, .library[type="reader"] #copyButton,
.library[type="rubric"] #exportButton,
.library[type="solve"] #exportButton, .library[type="solve"] #copyButton,
.library[type="solve-chemistry"] #exportButton, .library[type="solve-chemistry"] #copyButton,
.library[type="solve-math"] #exportButton, .library[type="solve-math"] #copyButton,
.library[type="solve-physics"] #exportButton, .library[type="solve-physics"] #copyButton,
.library[type="solve-statistics"] #exportButton, .library[type="solve-statistics"] #copyButton,
.library[type="summarize"] #exportButton, .library[type="summarize"] #copyButton,
.library[type="summarize-article"] #exportButton, .library[type="summarize-article"] #copyButton,
.library[type="summarize-audio"] #exportButton, .library[type="summarize-audio"] #copyButton,
.library[type="summarize-image"] #exportButton, .library[type="summarize-image"] #copyButton,
.library[type="summarize-pdf"] #exportButton, .library[type="summarize-pdf"] #copyButton,
.library[type="summarize-ppt"] #exportButton, .library[type="summarize-ppt"] #copyButton,
.library[type="summarize-video"] #exportButton, .library[type="summarize-video"] #copyButton,
.library[type="studyguide"] #exportButton, .library[type="studyguide"] #copyButton,
.library[type="transcribe"] #exportButton, .library[type="transcribe"] #copyButton,
.library[type="transcribe-audio"] #exportButton, .library[type="transcribe-audio"] #copyButton,
.library[type="transcribe-image"] #exportButton, .library[type="transcribe-image"] #copyButton,
.library[type="transcribe-video"] #exportButton, .library[type="transcribe-video"] #copyButton,
.library[type="translate"] #exportButton, .library[type="translate"] #copyButton,
.library[type="worksheet"] #exportButton, .library[type="worksheet"] #copyButton
{
    display: flex;
}

.library[type="diagram"] .extracted-text-container .textarea-privacy-notice,
.library[type="flashcards"] .extracted-text-container .textarea-privacy-notice,
.library[type="quiz"] .extracted-text-container .textarea-privacy-notice,
.library[type="rubric"] .extracted-text-container .textarea-privacy-notice {
    border-top: none;
}

.library[type="rubric"] .extracted-text-container {
    width: calc(100vw - 122px);
    width: calc(100dvw - 122px);
    max-width: 1118px;
}

@media (max-width: 1050px) {
    .library[type="rubric"] .extracted-text-container {
        width: calc(100vw - 102px);
        width: calc(100dvw - 102px);
    }
}

@media (max-width: 768px) {
    .library[type="rubric"] .extracted-text-container {
        width: calc(100vw - 90px);
        width: calc(100dvw - 90px);
    }
}

/* Type Items */
.type-item,
.controls-below-main .action-button,
.controls-below-main .display-upload-content,
.controls-below-main .upload-file-button {
    display: none;
}

.all-in-one .dragdrop .type-item-allinone,
.dragdrop[type="ask"] .type-item-text, .dragdrop[type="ask"] .textarea-controls-bar .type-item-math,
.dragdrop[type="detector"] .type-item-text,
.dragdrop[type="diagram"] .type-item-text, .dragdrop[type="diagram"] .type-item-diagram,
.dragdrop[type="essay"] .type-item-text,
.dragdrop[type="fact"] .type-item-text,
.dragdrop[type="flashcards"] .type-item-text, .dragdrop[type="flashcards"] .type-item-amount, .dragdrop[type="flashcards"] .type-item-difficulty,
.dragdrop[type="grammar"] .type-item-text,
.dragdrop[type="homework"] .type-item-text, .dragdrop[type="homework"] .textarea-controls-bar .type-item-math,
.dragdrop[type="humanizer"] .type-item-text,
.dragdrop[type="presentation"] .type-item-text, .dragdrop[type="presentation"] .type-item-amountalt2,
.dragdrop[type="quiz"] .type-item-text, .dragdrop[type="quiz"] .type-item-amountalt, .dragdrop[type="quiz"] .type-item-difficulty,
.dragdrop[type="rubric"] .type-item-text, .dragdrop[type="rubric"] .type-item-grade,
.dragdrop[type="solve"] .type-item-text, .dragdrop[type="solve"] .textarea-controls-bar .type-item-math,
.dragdrop[type="solve-chemistry"] .type-item-text, .dragdrop[type="solve-chemistry"] .textarea-controls-bar .type-item-math,
.dragdrop[type="solve-math"] .type-item-text, .dragdrop[type="solve-math"] .textarea-controls-bar .type-item-math,
.dragdrop[type="solve-physics"] .type-item-text, .dragdrop[type="solve-physics"] .textarea-controls-bar .type-item-math,
.dragdrop[type="solve-statistics"] .type-item-text, .dragdrop[type="solve-statistics"] .textarea-controls-bar .type-item-math,
.dragdrop[type="studyguide"] .type-item-text, .dragdrop[type="studyguide"] .type-item-grade,
.dragdrop[type="summarize"] .type-item-text, .dragdrop[type="summarize"] .type-item-summarize,
.dragdrop[type="summarize-article"] .type-item-text, .dragdrop[type="summarize-article"] .type-item-summarize,
.dragdrop[type="summarize-audio"] .type-item-summarize,
.dragdrop[type="summarize-image"] .type-item-summarize,
.dragdrop[type="summarize-pdf"] .type-item-summarize,
.dragdrop[type="summarize-ppt"] .type-item-summarize,
.dragdrop[type="summarize-video"] .type-item-summarize, .dragdrop[type="summarize-video"] .type-item-yt,
.dragdrop[type="transcribe-video"] .type-item-yt,
.dragdrop[type="translate"] .type-item-translate,
.dragdrop[type="worksheet"] .type-item-text, .dragdrop[type="worksheet"] .type-item-grade, .dragdrop[type="worksheet"] .type-item-questions {
    display: flex;
}

.all-in-one .dragdrop[type="transcribe"] .custom-select,
.all-in-one .dragdrop[type="reader"] .custom-select,
.dragdrop[type="summarize-audio"] .custom-select, .dragdrop[type="summarize-audio"] .custom-options,
.dragdrop[type="summarize-image"] .custom-select, .dragdrop[type="summarize-image"] .custom-options,
.dragdrop[type="summarize-pdf"] .custom-select, .dragdrop[type="summarize-pdf"] .custom-options,
.dragdrop[type="summarize-ppt"] .custom-select, .dragdrop[type="summarize-ppt"] .custom-options,
.dragdrop[type="summarize-video"] .custom-select, .dragdrop[type="summarize-video"] .custom-options,
.dragdrop[type="translate"] .custom-select, .dragdrop[type="translate"] .custom-options {
    width: 180px !important;
}

/* Character Limits */
.dragdrop[type="ask"] .textarea-char-limit,
.dragdrop[type="detector"] .textarea-char-limit,
.dragdrop[type="essay"] .textarea-char-limit,
.dragdrop[type="fact"] .textarea-char-limit,
.dragdrop[type="grammar"] .textarea-char-limit,
.dragdrop[type="homework"] .textarea-char-limit,
.dragdrop[type="humanizer"] .textarea-char-limit,
.dragdrop[type="solve"] .textarea-char-limit,
.dragdrop[type="solve-chemistry"] .textarea-char-limit,
.dragdrop[type="solve-math"] .textarea-char-limit,
.dragdrop[type="solve-physics"] .textarea-char-limit,
.dragdrop[type="solve-statistics"] .textarea-char-limit,
.dragdrop[type="translate"] .textarea-char-limit {
    display: inline;
}

/* Hide Top Buttons */
.dragdrop[type="detector"] .actions-header .copy-button, .dragdrop[type="detector"] .actions-header .export-button,
.dragdrop[type="diagram"] .actions-header .copy-button,
.dragdrop[type="essay"] .actions-header .copy-button, .dragdrop[type="essay"] .actions-header .export-button,
.dragdrop[type="fact"] .actions-header .copy-button, .dragdrop[type="fact"] .actions-header .export-button,
.dragdrop[type="flashcards"]  .actions-header .copy-button, .dragdrop[type="flashcards"] .actions-header .export-button,
.dragdrop[type="presentation"] .actions-header .copy-button,
.dragdrop[type="quiz"] .actions-header .copy-button, .dragdrop[type="quiz"] .actions-header .export-button,
.dragdrop[type="rubric"] .actions-header .copy-button {
    display: none;
}

/* Start on Textarea */
.main-content:not(.all-in-one) .dragdrop[type="ask"]:not(.show-upload) .textarea-container,
.main-content:not(.all-in-one) .dragdrop[type="grammar"]:not(.show-upload) .textarea-container,
.main-content:not(.all-in-one) .dragdrop[type="humanizer"]:not(.show-upload) .textarea-container,
.main-content:not(.all-in-one) .dragdrop[type="rubric"]:not(.show-upload) .textarea-container,
.main-content:not(.all-in-one) .dragdrop[type="worksheet"]:not(.show-upload) .textarea-container  {
    display: flex !important;
}

.main-content:not(.all-in-one) .dragdrop[type="ask"]:not(.show-upload) .main-button-wrapper, .main-content:not(.all-in-one) .dragdrop[type="ask"]:not(.show-upload) .textarea-controls-right.controls-below-main,
.main-content:not(.all-in-one) .dragdrop[type="grammar"]:not(.show-upload) .main-button-wrapper, .main-content:not(.all-in-one) .dragdrop[type="grammar"]:not(.show-upload) .textarea-controls-right.controls-below-main,
.main-content:not(.all-in-one) .dragdrop[type="humanizer"]:not(.show-upload) .main-button-wrapper, .main-content:not(.all-in-one) .dragdrop[type="humanizer"]:not(.show-upload) .textarea-controls-right.controls-below-main,
.main-content:not(.all-in-one) .dragdrop[type="rubric"]:not(.show-upload) .main-button-wrapper, .main-content:not(.all-in-one) .dragdrop[type="rubric"]:not(.show-upload) .textarea-controls-right.controls-below-main,
.main-content:not(.all-in-one) .dragdrop[type="worksheet"]:not(.show-upload) .main-button-wrapper, .main-content:not(.all-in-one) .dragdrop[type="worksheet"]:not(.show-upload) .textarea-controls-right.controls-below-main {
    display: none !important;
}

/* Comparison Results */
.dragdrop[type="grammar"] .actions-header h3,
.dragdrop[type="humanizer"] .actions-header h3 {
    visibility: hidden;
}

.dragdrop[type="humanizer"] .grammar-diff-added, .dragdrop[type="humanizer"] .grammar-diff-removed {
    background-color: inherit;
    color: inherit;
    padding: 0;
    font-weight: var(--font-weight-normal);
    text-decoration: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .dragdrop[type="grammar"] .dragdrop-inside:has(.extracted-text-container[style*="display: block"]) {
        flex-direction: column;
        gap: 10px;
    }

    .dragdrop[type="grammar"] .dragdrop-inside:has(.extracted-text-container[style*="display: block"]) > .upload-area,
    .dragdrop[type="grammar"] .dragdrop-inside:has(.extracted-text-container[style*="display: block"]) > .extracted-text-container {
        width: 100%;
    }
}

/* Special Cases */
.dragdrop[type="diagram"] .extracted-text-container .textarea-privacy-notice,
.dragdrop[type="flashcards"] .extracted-text-container .textarea-privacy-notice,
.dragdrop[type="quiz"] .extracted-text-container .textarea-privacy-notice,
.dragdrop[type="rubric"] .extracted-text-container .textarea-privacy-notice {
    border-top: none;
}

.dragdrop[type="flashcards"] .type-item-amount .custom-select-text::after {
    content: " Flashcards";
}

.dragdrop[type="quiz"] .type-item-amountalt .custom-select-text::after {
    content: " Questions";
}

.dragdrop[type="presentation"] .type-item-amountalt2 .custom-select-text::after {
    content: " Slides";
}

@media (max-width: 768px) {
    .dragdrop[type="flashcards"] .textarea-controls-bar.type-item-amount .custom-select-text::after,
    .dragdrop[type="quiz"] .textarea-controls-bar .type-item-amountalt .custom-select-text::after {
        content: '';
    }
}

.dragdrop[type="transcribe"] .custom-select-wrapper.type-item input,
.dragdrop[type="transcribe-audio"] .custom-select-wrapper.type-item input,
.dragdrop[type="transcribe-image"] .custom-select-wrapper.type-item input,
.dragdrop[type="transcribe-video"] .custom-select-wrapper.type-item input {
    max-width: 180px;
}

/* Math Live */
math-field {
    border: none;
    font-size: var(--font-size-base);
    color: var(--medium-gray) !important;
    padding: 0;
}

#mathFieldContainer {
    width: 100%;
}

#mathKeyboardContainer {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
}

.textarea-wrapper math-field#inputMathField {
    width: 100%;
    display: block;
    margin: 0;
    outline: none;
    border-radius: var(--border-radiusL);
    padding: 10px 12px;
    background: var(--white);
    font-size: var(--font-size-base);
}

.ML__container {
    --_caret-color: orange !important;
    --_caret-color: purple !important;
}

.ML__keyboard {
    --toolbar-text-active: var(--teal) !important;
    --_accent-color: var(--teal) !important;
    --keycap-text-hover: var(--teal) !important;
    --keycap-text-active: var(--teal-dark) !important;
    --keycap-text-pressed: var(--teal-dark) !important;
    --variant-panel-background: var(--light-gray) !important;
    --variant-keycap-text-active: var(--teal) !important;
    --variant-keycap-text-pressed: var(--teal) !important;
    --variant-keycap-text-hover: var(--teal) !important;
    --keyboard-toolbar-background-hover: var(--light-gray) !important;
    z-index: 1 !important;
}

.ML__error {
    background-image: none !important;
    background-color: none !important;
}

.MLK__toolbar > div > div.selected {
    border-bottom: none !important;
    color: var(--teal) !important;
    background-color: var(--teal-light) !important;
    border-radius: var(--border-radiusS) !important;
    padding-top: 4px !important;
    margin-bottom: 4px !important;
}

.ML__edit-toolbar.right svg {
    height: 18px !important;
    width: 18px !important;
}

.ML__edit-toolbar.right .action {
    margin-left: -5px;
}

.caps-lock-indicator {
    background: var(--red) !important;
    box-shadow: inset 0 0 4px 0 var(--red), 0 0 4px 0 var(--red) !important;
}

.ML__keyboard {
    height: fit-content !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 25px 10px 0 !important;
    margin: -25px 0 15px !important
}

.MLK__toolbar {
    max-width: 100% !important;
    margin-bottom: 5px !important
}

.MLK__tooltip[data-tooltip="Roman Letters"] {
    display: none !important;
}

.MLK__rows > .MLK__row {
    justify-content: space-around !important;
}

.ML__keyboard.animate.is-visible.is-math-mode.can-paste {
    height: fit-content !important;
    background-color: var(--white) !important;
}

.MLK__rows > .MLK__row .action, .shift.bottom.left, .MLK__keycap {
    background-color: var(--light-gray) !important;
    cursor: pointer !important;
}

.MLK__rows > .MLK__row .action:hover, .shift.bottom.left:hover, .MLK__keycap:hover {
    background-color: var(--highlight-gray) !important;
}

.MLK__backdrop {
    position: relative !important;
    background-color: var(--white) !important;
}

math-field::part(virtual-keyboard-toggle), math-field::part(menu-toggle) {
    display: none !important
}

.ML__edit-toolbar.right {
    display: none !important;
}

/* Select Styles */
.custom-select-wrapper {
    position: relative;
    width: auto;
    margin: 10px auto -10px;
    max-width: 300px;
}

.custom-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    gap: 8px;
    width: 180px;
}

.custom-select:hover, .custom-select.active {
    border-color: var(--dark-gray);
}

.custom-select.active {
    border-color: var(--teal);
}

.custom-select svg {
    width: 20px;
    height: 20px;
    stroke: var(--medium-gray);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.active svg {
    transform: rotate(180deg);
    stroke: var(--teal);
}

.custom-select-text {
    flex: 1;
    text-align: left;
    color: var(--medium-gray);
}

/* Text Area */
.textarea-container {
    margin-top: 15px;
    display: none !important;
}

.textarea-container.active {
    display: flex !important;
}

.textarea-wrapper {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--border-radiusL);
    border: 1px solid var(--highlight-gray);
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 12px 16px 24px;
    background: var(--white);
    border: none;
    border-radius: var(--border-radiusL) var(--border-radiusL) 0 0;
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: var(--dark-gray);
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 200px;
    resize: none;
}

.textarea-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 8px 20px;
    background: var(--light-gray);
    border-radius: 0 0 var(--border-radiusL) var(--border-radiusL);
    gap: 16px;
    margin-top: -10px;
    z-index: 1;
    position: relative;
}

.textarea-controls-bar button.btn-secondary {
    padding: 10px;
    width: auto;
    box-shadow: none;
}

.textarea-controls-bar .btn-secondary svg {
    stroke: var(--dark-gray);
}

.textarea-char-count {
    font-size: var(--font-size-xs);
    color: var(--gray);
    white-space: nowrap;
    transition: color 0.2s ease, font-weight 0.2s ease;
    font-weight: var(--font-weight-medium);
}

.textarea-char-limit, .textarea-limit-text {
    display: none;
}

.textarea-char-count.over-limit {
    color: var(--red);
}

.textarea-char-count.over-limit #charCountDisplay {
    color: var(--red);
}

.textarea-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-flow: row wrap;
    justify-content: center;
}

.controls-below-main {
    flex-direction: column;
    justify-content: center;
    margin: 10px 0 20px;
    gap: 4px;
}

.controls-below-main.all-children-hidden {
    margin-bottom: 10px;
}

.controls-below-main .custom-select, .custom-select-wrapper.type-item input {
    width: 244px;
}

.controls-below-main .custom-select-wrapper {
    margin: 0;
}

.upload-area:hover .controls-below-main .custom-select {
    transform: scale(1.015);
}

.textarea-controls-bar .custom-select-wrapper {
    margin: 0;
    width: auto;
}

.textarea-controls-bar .custom-select-wrapper .custom-select, .textarea-controls-bar .custom-select-wrapper input {
    width: auto;
    height: 40px;
    padding: 8px 8px 8px 12px;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius);
}

.upload-area .textarea-controls-bar button {
    width: auto;
    gap: 6px;
    padding: 10px;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: none;
    height: 40px;
    width: 40px;
}

.upload-area .textarea-controls-bar button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: var(--medium-gray);
}

.upload-area .textarea-controls-bar button.action-button {
    background-color: var(--teal);
}

.upload-area .textarea-controls-bar button.action-button:hover {
    background-color: var(--teal-dark);
}

.upload-area .textarea-controls-bar button.action-button svg {
    stroke: var(--white);
}

.textarea-controls-bar .custom-options {
    width: 100%;
    min-width: 140px;
}

.controls-below-main .custom-options {
    width: 244px;
}

.action-button {
    padding: 8px;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.action-button svg {
    width: 20px;
    height: 20px;
}

.textarea-controls-bar .display-upload-content {
    padding: 10px 14px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 0;
}

.upload-area .textarea-controls-bar .display-upload-content svg {
    height: 20px;
    width: 20px;
    transform: scale(1.3);
    stroke-width: 1.6;
}

/* Custom Dropdown Options */
.custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 180px;
}

.custom-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    font-size: var(--font-size-xs);
    color: var(--dark-gray);
}

.custom-option:first-child {
    border-radius: var(--border-radiusL) var(--border-radiusL) 0 0;
}

.custom-option:not(:first-child) {
    border-top: 1px solid var(--highlight-gray);
}

.custom-option:last-child {
    border-radius: 0 0 var(--border-radiusL) var(--border-radiusL);
}

.custom-option:hover {
    background-color: var(--teal-light);
    color: var(--teal);
}

.custom-option.selected {
    /* background-color: var(--teal-light); */
    color: var(--teal);
    font-weight: var(--font-weight-medium);
}

/* Hide native select */
.custom-select-wrapper > select {
    display: none;
}

/* Scrollbar styling for custom options */
.custom-options::-webkit-scrollbar {
    width: 8px;
}

.custom-options::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: var(--border-radiusL);
}

.custom-options::-webkit-scrollbar-thumb {
    background: var(--highlight-gray);
    border-radius: var(--border-radiusL);
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* General */
.toolpage .content-wrapper:first-of-type .features-section:first-of-type {
    margin-top: 0;
    padding-top: 40px;
    margin-bottom: 60px;
}

.toolpage .content-wrapper:first-child {
    background-color: var(--light-gray);
}

.features-section .content {
    margin-top: 25px;
    padding: 25px;
    width: 1200px;
    border-radius: 30px;
    border: none;
    box-shadow: none;
    z-index: 1;
}

.dragdrop {
    max-width: calc(100vw - 40px);
}

.dragdrop-inside {
    border: none;
    border-radius: var(--border-radiusL);
    box-shadow: 0 0 0 25px rgb(1, 135, 119, 0.15);
}

.dragdrop:has(.upload-area[style*="display: none"]) {
    padding: 0;
}

.dragdrop-inside:has(.upload-area[style*="display: none"]) {
    margin: 25px;
    padding: 40px;
    background-color: var(--white);
    border: 2px solid var(--teal);
}

.features-section .header-description {
    margin-top: 4px;
    color: var(--medium-gray);
}

.dragdrop-inside > div {
    border-radius: var(--border-radiusL);
}

.upload-area {
    padding: 50px 20px;
    border-radius: var(--border-radiusL);
    border: 2px dashed var(--teal);
    transition: all 0.2s ease;
    position: relative;
}

.upload-area:has(.textarea-container.active) {
    cursor: default;
}

.upload-area:not(:has(.textarea-container.active)):hover {
    cursor: pointer;
    background-color: var(--teal-light);
}

.upload-area:not(:has(.textarea-container.active)):hover button {
    transform: scale(1.015);
}

.upload-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 5px;
}

.upload-content .section-description {
    margin-top: 4px;
}

.upload-content button {
    padding: 15px 30px 15px 20px;
    align-items: center;
    gap: 10px;
    width: 180px;
    white-space: nowrap;
    justify-content: center;
    font-size: var(--font-size-base);
}

.upload-content button svg {
    stroke: var(--white);
    height: 24px;
    width: 24px;
}

.upload-content p {
    color: var(--gray);
    margin-top: 0;
}

.upload-content p:last-of-type {
    margin: 25px 0 0;
    justify-content: center;
    margin-bottom: -22px;
    padding-top: 25px;
}

.description-subtext {
    font-size: var(--font-size-base);
}

.upload-area:not(:has(.textarea-container.active)) .description-subtext-file,
.upload-area:has(.textarea-container.active) .description-subtext-text {
    display: block;
}

.upload-area:not(:has(.textarea-container.active)) .description-subtext-text,
.upload-area:has(.textarea-container.active) .description-subtext-file  {
    display: none;
}

.description-credit-info {
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.text-output {
    border: none;
    display: block;
    color: var(--medium-gray);
    border-radius: var(--border-radiusL);
    font-family: inherit;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    resize: none;
    height: 100%;
    min-height: 200px;
    width: calc(100% + 80px);
    margin: 20px 0 0 -40px;
    padding: 0 40px 30px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.text-output-preview {
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    line-height: 1.5;
    overflow-x: auto;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 60px;
    margin: -20px 0 -10px;
    padding-top: 20px;
    padding-bottom: 10px;
    background-color: var(--white);
    z-index: 2;
}

.actions-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
}

.actions-header button {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px;
}

.actions-header h3 {
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 900px;
    text-align: left;
}

.textarea-privacy-notice {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 6px;
    margin: 25px 0 -20px;
    padding-top: 25px;
    color: var(--gray);
    border-top: 1px solid var(--highlight-gray);
    font-size: var(--font-size-tiny);
}

.extracted-text-container .textarea-privacy-notice {
    margin-top: 0;
    padding-bottom: 10px;
    justify-content: center;
}

.processing-content .textarea-privacy-notice {
    padding-bottom: 10px;
    justify-content: center;
}

.actions-header svg, .textarea-privacy-notice svg {
    stroke: var(--gray);
    height: 16px;
    width: 16px;
    stroke-width: 2;
}

/* Progress Bar Styles */
.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 25px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, #10b981 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    min-width: 40px;
    text-align: right;
}

.main-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    gap: 10px;
}

#textToggleButton {
    padding: 15px;
    margin: 0;
    width: auto;
    align-items: center;
    justify-content: center;
}

#textToggleButton svg {
    stroke: var(--medium-gray);
    width: 24px;
    height: 24px;
}

#textToggleButton:hover {
    background-color: var(--white);
}

/* Comp comparison styles */
.comp-container {
    padding: 20px 0 0;
}

.comp-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.comp-col {
    flex: 1;
    min-width: 0;
}

.comp-col:first-child {
    border-right: 1px solid var(--highlight-gray);
    padding-right: 20px;
    min-height: 300px;
    height: -webkit-fill-available;
}

.comp-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 15px 0;
    color: var(--dark-gray);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-word-count {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--medium-gray);
}

.comp-text {
    background: var(--white);
    min-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    text-align: left;
    font-size: var(--font-size-sm);
    padding-bottom: 30px;
    line-height: 1.5;
    color: var(--medium-gray);
}

.grammar-diff-removed {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 2px 4px;
    text-decoration: line-through;
    border-radius: var(--border-radiusS);
}

.grammar-diff-added {
    background-color: #dcfce7;
    color: #166534;
    padding: 2px 4px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radiusS);
}


/* Analysis Results Custom Display (used by detector, essay, etc.) */
.extracted-text-container:has(.analysis-results-container) .actions-header {
    background-color: transparent
}

.extracted-text-container:has(.analysis-results-container) .actions-header h3 {
    visibility: hidden;
}

.analysis-results-container {
    margin-top: 20px;
}

.analysis-result-box h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    line-height: 1.4;
}

.analysis-result-box h4 {
    margin: 40px 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: left;
}

.analysis-percentage-section {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -80px;
}

.analysis-circular-progress {
    width: 100%;
    max-width: 300px;
    min-width: 300px;
    height: auto;
    position: relative;
}

.analysis-progress-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 12;
}

.analysis-progress-arc {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.analysis-percentage-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 20px 10px;
    margin-top: -150px;
}

.percentage-label {
    margin: 0;
}

.percentage-label span {
    font-weight: 700;
    font-size: var(--font-size-4xl);
}

.classification-label {
    margin: 5px 0 0;
    font-size: var(--font-size-base);
    color: var(--medium-gray);
    text-align: center;
    font-weight: var(--font-weight-medium);
}

.analysis-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    color: #8b6914;
    background: #fff9e6;
    border: 1px solid #ffd966;
    border-radius: var(--border-radiusS);
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
}

.analysis-warning + .analysis-percentage-section {
    margin-top: -20px;
}

.analysis-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #ffa500;
}

.analysis-warning span {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.analysis-key-findings {
    margin: 0 auto 25px;
}

.analysis-key-findings h4 {
    text-align: left;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.findings-explanation {
    text-align: left;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.analysis-key-findings h5 {
    text-align: left;
    margin: 35px 0 0 0;
    color: var(--dark-gray);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

.analysis-key-findings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-key-findings li {
    padding: 10px 0 0;
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    text-align: left;
}

.analysis-key-findings li:last-child {
    border-bottom: none;
}

/* Flashcards Custom Display */
.flashcards-container {
    width: 100%;
}

.flashcards-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.flashcards-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.flashcards-slides-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.flashcard-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    margin: 0 auto;
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.flashcard-front {
    background: var(--white);
    color: var(--dark-gray);
    flex-direction: column;
}

.flashcard-front-title {
    line-height: 1.4;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xl);
    margin-top: -35px;
}

.flashcard-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.flashcard-counter {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray);
    min-width: 60px;
    text-align: center;
}

.flashcard-chevron {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.2s;
    border-radius: var(--border-radiusS);
}

.flashcard-chevron:hover:not(:disabled) {
    background: var(--highlight-gray);
    color: var(--dark-gray);
}

.flashcard-chevron:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.flashcard-chevron svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.flashcard-back {
    background: var(--primary-color);
    color: var(--medium-gray);
    transform: rotateY(180deg);
    font-size: var(--font-size-base);
    flex-direction: column;
}

.flashcards-empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
    font-size: var(--font-size-base);
    border-radius: var(--border-radius);
    border: 1px solid var(--highlight-gray);
    margin: 20px 0 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.flashcard-back-content {
    margin-top: -35px;
    max-width: 450px;
    width: 100%;
}

.flashcard.flipped .flashcard-front {
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-back {
    transform: rotateY(0deg);
}

.flashcard .flashcards-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 0 25px;
    z-index: 10;
    pointer-events: auto;
}

.flashcard-rating-btn {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--dark-gray);
}

.flashcard-rating-btn:hover {
    transform: scale(1.05);
}

.flashcard-thumb-up:hover, .flashcard-thumb-up.active {
    background: #B7E2B8;
    border-color: #52B356;
}

.flashcard-thumb-up:hover svg, .flashcard-thumb-up.active svg {
    stroke: #52B356;
}


.flashcard-neutral:hover, .flashcard-neutral.active {
    background: #D5E1FF;
    border-color:  #547DC9;
}

.flashcard-neutral:hover svg, .flashcard-neutral.active svg {
    stroke:  #547DC9;
}

.flashcard-thumb-down:hover, .flashcard-thumb-down.active {
    background: #F0CEBD;
    border-color:  #ED6844;
}

.flashcard-thumb-down:hover svg, .flashcard-thumb-down.active svg {
    stroke:  #ED6844;
}

.flashcard-rating-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--medium-gray);
}

/* Quiz Custom Display */
.quiz-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin: 0;
}

.quiz-score {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--gray);
}

.quiz-slides {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease, height 0.3s ease;
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    margin: 20px 0 0;
    box-sizing: border-box;
}

.quiz-slides-container {
    position: relative;
    width: 100%;
}

.quiz-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 20px 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    opacity: 0;
    pointer-events: none;
}

.quiz-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Ensure container height matches active slide */
.quiz-slides-container .quiz-slide.active {
    position: relative;
}

.quiz-question-card {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0;
    background: var(--white);
    box-sizing: border-box;
    max-width: 500px;
}

.quiz-results-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 0 30px;
    background: var(--white);
    box-sizing: border-box;
}

.quiz-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.quiz-counter {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray);
    min-width: 60px;
    text-align: center;
}

.quiz-chevron {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.2s;
    border-radius: var(--border-radiusS);
}

.quiz-chevron:hover:not(:disabled) {
    background: var(--highlight-gray);
    color: var(--dark-gray);
}

.quiz-chevron:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-chevron svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.quiz-question-text {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.quiz-option {
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusS);
    padding: 16px 20px;
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option-letter {
    border-radius: var(--border-radiusS);
    background: var(--highlight-gray);
    color: var(--gray);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
    margin: 0 0 0 -4px;
}

.quiz-option-text {
    flex: 1;
    line-height: 1.5;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-xs);
}

.quiz-option:hover:not(:disabled) {
    color: var(--teal);
    background: var(--teal-light);
    border-color: var(--teal);
    transform: scale(1.02);
}

.quiz-option:hover:not(:disabled) .quiz-option-letter {
    background: var(--teal);
    color: var(--white);
}

.quiz-option.selected {
    border-color: var(--dark-gray);
    background: var(--highlight-gray);
    font-weight: var(--font-weight-medium);
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.quiz-explanation {
    font-size: var(--font-size-base);
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: left;
}

.quiz-next-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    width: 100%;
}

.quiz-next-button:hover {
    background: var(--primary-color-dark, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quiz-skip-button {
    background: var(--highlight-gray);
    color: var(--gray);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusS);
    padding: 12px 24px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.quiz-skip-button svg {
    stroke: var(--gray);
}

.quiz-skip-button:hover {
    transform: scale(1.02);
}

/* Quiz Results Styles */
.quiz-results-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin: 20px 0 40px;
    text-align: center;
}


.quiz-incorrect-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.quiz-retake-button {
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 15px auto;
    padding: 10px 18px 10px 15px;
    gap: 6px;
    border-radius: var(--border-radiusS);
}

.quiz-question-item {
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--highlight-gray);
}

.quiz-question-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 50px;
    border-bottom: none;
}

.quiz-question-number {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray);
    margin-bottom: 6px;
}

.quiz-incorrect-question {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.quiz-user-answer {
    font-size: var(--font-size-base);
    color: #8b3e26;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #F0CEBD;
    border-radius: var(--border-radiusS);
}

.quiz-correct-answer {
    font-size: var(--font-size-base);
    color: #2d5a2f;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #B7E2B8;
    border-radius: var(--border-radiusS);
}


.quiz-explanation-status {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 4px;
}

.quiz-explanation-status.quiz-status-label {
    color: var(--dark-gray);
}

.quiz-explanation-text {
    color: var(--medium-gray);
    font-size: var(--font-size-xs);
}

.quiz-results-options {
    pointer-events: none;
}

.quiz-results-option {
    cursor: default;
}

.quiz-results-option.quiz-option-correct {
    background-color: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal);
}

.quiz-results-option.quiz-option-correct .quiz-option-letter {
    background: var(--teal);
    color: var(--white);
}

.quiz-results-option.quiz-option-correct .quiz-option-letter svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.quiz-results-option.quiz-option-incorrect {
    background-color: #f1e9e5;
    border-color: #ED6844;
    color: #ED6844;
}

.quiz-results-option.quiz-option-incorrect .quiz-option-letter {
    background: #ED6844;
    color: var(--white);
}

.quiz-results-option.quiz-option-incorrect .quiz-option-letter svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.quiz-perfect-message {
    text-align: center;
    font-size: var(--font-size-lg);
    color: #2d5a2f;
    padding: 20px;
    background: #B7E2B8;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
}

.analysis-action-section {
    display: flex;
    justify-content: center;
}

.analysis-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.analysis-action-button, .analysis-action-button:hover{
    color: #ED6844;
    border: 2px solid #ED6844;
    padding: 12px 18px 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.analysis-action-button svg {
    stroke: transparent;
}

/* Rubric Custom Display */
.rubric-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0 0;
}

.rubric-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rubric-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

.rubric-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.rubric-table th {

    color: var(--medium-gray);
    padding: 16px 20px;
    text-align: left;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    background: var(--highlight-gray);
    border-right: 1px solid var(--white);
}

.rubric-table th:last-child {
    border-right: none;
}

.rubric-header-criterion {
    min-width: 180px;
    position: sticky;
    left: 0;
    background: var(--primary-color);
    z-index: 1;
}

.rubric-header-level {
    min-width: 200px;
    text-align: center;
}

.rubric-header-points {
    min-width: 100px;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
}

.rubric-table tbody tr {
    border-bottom: 1px solid var(--highlight-gray);
    transition: background-color 0.2s ease;
}

.rubric-table tbody tr:last-child {
    border-bottom: none;
}

.rubric-table td {
    text-align: left;
    padding: 16px 20px;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    color: var(--medium-gray);
    line-height: 1.6;
    vertical-align: top;
    border-top: 1px solid var(--white);
    border-right: 1px solid var(--highlight-gray);
    border-bottom: 1px solid var(--highlight-gray);
    background-color: var(--white);
}

.rubric-table td:hover {
    background-color: var(--light-gray);
}

.rubric-table td:last-child {
    border-right: none;
}

.rubric-row td.rubric-criterion-cell {
    border-right: none;
    color: var(--medium-gray);
    font-weight: var(--font-weight-normal);
    background: var(--highlight-gray);
    min-width: 180px;
    border-bottom: 1px solid var(--white);
}

.rubric-level-cell {
    text-align: left;
    min-width: 200px;
}

.rubric-points-cell {
    text-align: center;
    min-width: 100px;
}

.rubric-total-row {
    background: var(--highlight-gray);
    font-weight: var(--font-weight-semibold);
}

.rubric-total-label {
    text-align: right;
    padding-right: 20px !important;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-gray);
    background: var(--highlight-gray) !important;
    border-right: none !important;
}

.rubric-total-points {
    text-align: center;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    color: var(--primary-color);
    background: var(--white) !important;
    min-width: 100px;
}

#backButton svg {
    transform: scale(1.2);
    stroke-width: 1.6;
}

/* Diagram Custom Display */
.diagram-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0 0;
}

.diagram-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radiusL);
    padding: 20px;
    margin-bottom: -15px;
    box-sizing: border-box;
}

.diagram-wrapper .mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
    text-align: center;
}

.diagram-wrapper svg {
    max-width: 100%;
    height: auto;
}

.extracted-text-container:has(.diagram-container) .textarea-privacy-notice {
    margin-top: 20px;
}

/* Custom Slides */
.template-selection-container {
    width: 100%;
    display: block;
}

.template-selection-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.template-selection-content h2 {
    margin: 0 0 5px 0;
    padding-top: 10px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.template-selection-content .description-subtext {
    margin: 0 0 20px;
}

.template-selection-content .textarea-privacy-notice {
    justify-content: center;
    padding-bottom: 5px;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.template-item {
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.template-item:not(.selected):hover {
    border: 1px dashed var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.template-item.selected {
    border-color: var(--teal);
}

.template-preview {
    width: 100%;
    height: 100px;
    background: var(--light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: var(--normal);
}

/* Templates */
.template-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    transform: scale(3.5);
}

.template-wavy {
    background-color: var(--light-gray);
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--light-gray) 10px), repeating-linear-gradient(rgba(231, 232, 238, 0.33), var(--highlight-gray));
}

.template-rhombus {
    background-color: var(--light-gray);
    background-image: linear-gradient(135deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(225deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(45deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(315deg, var(--highlight-gray) 25%, var(--light-gray) 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 10px 10px;
    background-repeat: repeat;
}

.template-circles {
    background-color: var(--light-gray);
    background-image: radial-gradient(circle at center center, var(--highlight-gray), var(--light-gray)), repeating-radial-gradient(circle at center center, var(--highlight-gray), var(--highlight-gray), 10px, transparent 20px, transparent 10px);
    background-blend-mode: multiply;
}

.template-zigzag {
    background-color: var(--light-gray);
    background-image: linear-gradient(135deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(225deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(45deg, var(--highlight-gray) 25%, transparent 25%), linear-gradient(315deg, var(--highlight-gray) 25%, var(--light-gray) 25%);
    background-position: 10px 0, 10px 0, 0 0, 0 0;
    background-size: 20px 20px;
    background-repeat: repeat;
}

.template-3d {
    background-color: var(--light-gray);
    background: linear-gradient(135deg, rgba(231, 232, 238, 0.33) 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(225deg, var(--highlight-gray) 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(315deg, rgba(231, 232, 238, 0.33) 25%, transparent 25%) 0px 0/ 20px 20px, linear-gradient(45deg, var(--highlight-gray) 25%, var(--light-gray) 25%) 0px 0/ 20px 20px;
}

.template-isometric {
    background-color: var(--light-gray);
    background-image: linear-gradient(30deg, var(--highlight-gray) 12%, transparent 12.5%, transparent 87%, var(--highlight-gray) 87.5%, var(--highlight-gray)), linear-gradient(150deg, var(--highlight-gray) 12%, transparent 12.5%, transparent 87%, var(--highlight-gray) 87.5%, var(--highlight-gray)), linear-gradient(30deg, var(--highlight-gray) 12%, transparent 12.5%, transparent 87%, var(--highlight-gray) 87.5%, var(--highlight-gray)), linear-gradient(150deg, var(--highlight-gray) 12%, transparent 12.5%, transparent 87%, var(--highlight-gray) 87.5%, var(--highlight-gray)), linear-gradient(60deg, rgba(231, 232, 238, 0.47) 25%, transparent 25.5%, transparent 75%, rgba(231, 232, 238, 0.47) 75%, rgba(231, 232, 238, 0.47)), linear-gradient(60deg, rgba(231, 232, 238, 0.47) 25%, transparent 25.5%, transparent 75%, rgba(231, 232, 238, 0.47) 75%, rgba(231, 232, 238, 0.47));
    background-size: 20px 35px;
    background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

.template-grid {
    background-color: var(--light-gray);
    background-image: linear-gradient(var(--highlight-gray) 2px, transparent 2px), linear-gradient(90deg, var(--highlight-gray) 2px, transparent 2px), linear-gradient(var(--highlight-gray) 1px, transparent 1px), linear-gradient(90deg, var(--highlight-gray) 1px, var(--light-gray) 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.template-boxes {
    background-color: var(--light-gray);
    background-image: linear-gradient(var(--highlight-gray) 1px, transparent 1px), linear-gradient(to right, var(--highlight-gray) 1px, var(--light-gray) 1px);
    background-size: 20px 20px;
}

.template-cross {
    background-color: var(--light-gray);
    background: radial-gradient(circle, transparent 20%, var(--light-gray) 20%, var(--light-gray) 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, var(--light-gray) 20%, var(--light-gray) 80%, transparent 80%, transparent) 25px 25px, linear-gradient(var(--highlight-gray) 2px, transparent 2px) 0 -1px, linear-gradient(90deg, var(--highlight-gray) 2px, var(--light-gray) 2px) -1px 0;
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
}

.template-moon {
    background-color: var(--light-gray);
    background-image: radial-gradient(ellipse farthest-corner at 10px 10px, var(--highlight-gray), var(--highlight-gray) 50%, var(--light-gray) 50%);
    background-size: 10px 10px;
}

.template-rectangles {
    background-color: var(--light-gray);
    background-image: repeating-linear-gradient(45deg, var(--highlight-gray) 25%, transparent 25%, transparent 75%, var(--highlight-gray) 75%, var(--highlight-gray)), repeating-linear-gradient(45deg, var(--highlight-gray) 25%, var(--light-gray) 25%, var(--light-gray) 75%, var(--highlight-gray) 75%, var(--highlight-gray));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.template-plain {
    background-color: var(--light-gray);
    opacity: 1;
}

.template-polka {
    background-color: var(--light-gray);
    background-image: radial-gradient(var(--highlight-gray) 0.5px, var(--light-gray) 0.5px);
    background-size: 10px 10px;
    opacity: 1;
}

.template-diagonal-left {
    background-color: var(--light-gray);
    background: repeating-linear-gradient(45deg, var(--highlight-gray), var(--highlight-gray) 5px, var(--light-gray) 5px, var(--light-gray) 25px);
}

.template-diagonal-right {
    background-color: var(--light-gray);
    background: repeating-linear-gradient(-45deg, var(--highlight-gray), var(--highlight-gray) 5px, var(--light-gray) 5px, var(--light-gray) 25px);
}

.template-horizontal {
    background-color: var(--light-gray);
    background-image: linear-gradient(0deg, var(--light-gray) 50%, var(--highlight-gray) 50%);
    background-size: 10px 10px;
}

.template-vertical {
    background-color: var(--light-gray);
    background-image: linear-gradient(to right, var(--highlight-gray), var(--highlight-gray) 5px, var(--light-gray) 5px, var(--light-gray));
    background-size: 10px 100%;
}

.template-triangles { 
    background-color: var(--light-gray);
    background-image: linear-gradient(45deg, var(--highlight-gray) 50%, var(--light-gray) 50%);
    background-size: 10px 10px;
}  

.template-name {
    font-weight: 500;
    font-size: 14px;
}

.template-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.template-actions button {
    padding: 12px 24px;
    border-radius: var(--border-radiusS);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

button.template-continue {
    padding-right: 16px;
}

.presentation-container {
    width: 100%;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.custom-slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    max-width: min(1920px, 100%);
    max-height: min(1080px, 100%);
    display: flex;
    flex-direction: column;
}

.custom-slides {
    width: 100%;
    height: 100%;
    position: relative;
    flex: 1;
    overflow: hidden;
}

.custom-slide {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    container-type: inline-size;
}

.custom-slide.active {
    display: flex;
}

.custom-slide {
    border: 1px solid var(--highlight-gray);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    font-size: clamp(14px, 1.5vw, 24px);
    line-height: 1.6;
    overflow: hidden;
}

.custom-slide-inside {
    width: auto;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.custom-slide-inside:has(.timeline) {
    text-align: left;
}

.custom-slide h1 {
    font-size: clamp(28px, 4vw, 64px);
    margin-top: 0;
    margin-bottom: clamp(15px, 2vw, 30px);
    width: 100%;
    font-weight: 700;
    line-height: 1.2;
}

.custom-slide h2 {
    font-size: clamp(16px, 3.5vw, 30px);
    margin-top: 0;
    margin-bottom: clamp(12px, 1.5vw, 24px);
    width: 100%;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.custom-slide h3 {
    font-size: clamp(20px, 3vw, 48px);
    margin-top: clamp(10px, 1.2vw, 20px);
    margin-bottom: -5px;
    width: 100%;
    font-weight: 600;
    line-height: 1.4;
}

.custom-slide h4 {
    font-size: clamp(18px, 2.5vw, 40px);
    margin-top: 0;
    margin-bottom: clamp(8px, 1vw, 16px);
    width: 100%;
    font-weight: 600;
}

.custom-slide h5,
.custom-slide h6 {
    font-size: clamp(16px, 2vw, 32px);
    margin-top: 0;
    margin-bottom: clamp(8px, 1vw, 16px);
    width: 100%;
    font-weight: 600;
}

.custom-slide p {
    font-size: clamp(12px, 1.5vw, 18px);
    margin: 10px 0 0;
    width: 100%;
    line-height: 1.6;
    color: var(--dark-gray);
}

.custom-slide ul,
.custom-slide ol {
    font-size: clamp(14px, 1.5vw, 18px);
    width: 100%;
    max-width: 100%;
    padding-left: clamp(15px, 2.5vw, 23px);
    line-height: 1.6;
}

.custom-slide ul {
    padding-left: clamp(0px, 2.5vw, 17px);
}

.custom-slide .callout-box {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: clamp(20px, 2.5vw, 35px);
    margin: clamp(15px, 2vw, 30px) 0;
    text-align: left;
}

.custom-slide .callout-box h3 {
    margin-top: 0;
    margin-bottom: clamp(12px, 1.5vw, 20px);
    font-size: clamp(18px, 2.5vw, 28px);
}

.custom-slide .callout-box p {
    margin: clamp(8px, 1vw, 16px) 0;
    font-size: clamp(12px, 1.5vw, 18px);
    margin-bottom: 0;
    line-height: 1.6;
}

.custom-slide:has(ol, .concepts-item) {
    text-align: left;
}

.custom-slide:has(.concepts-item) h2 {
    text-align: center;
}

.custom-slide li {
    font-size: clamp(8px, 1.5vw, 16px);
    margin: clamp(4px, 0.5vw, 8px) 0;
    line-height: 1.6;
    width: fit-content;
    text-align: left;
    color: var(--dark-gray);
}

.custom-slide blockquote {
    font-size: clamp(16px, 2vw, 26px);
    width: 100%;
    max-width: 100%;
    margin: clamp(12px, 1.5vw, 24px) 0;
    padding: clamp(15px, 2vw, 30px);
    border-radius: var(--border-radius);
    font-style: italic;
    line-height: 1.6;
    background-color: var(--white);
    border: 2px solid var(--dark-gray);
}

.custom-slide blockquote footer {
    font-size: clamp(12px, 1.2vw, 18px);
    margin-top: clamp(8px, 1vw, 16px);
    font-style: normal;
    color: var(--medium-gray);
}

.custom-slide table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    font-size: clamp(11px, 1.1vw, 18px);
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin: 10px auto 0;
    width: fit-content;
    border-radius: 6px;
    overflow: hidden;
}

.custom-slide thead {
    background: var(--dark-gray);
    color: white;
}

.custom-slide th {
    padding: clamp(8px, 1vw, 16px) clamp(12px, 1.5vw, 24px);
    font-size: clamp(12px, 1.2vw, 18px);
    font-weight: var(--font-weight-normal);
    text-align: left;
    letter-spacing: 0.3px;
    border: none;
}

.custom-slide tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.custom-slide tbody tr:hover {
    background: #f8f9fa;
}

.custom-slide tbody tr:last-child {
    border-bottom: none;
}

.custom-slide td {
    padding: clamp(8px, 1vw, 16px) clamp(12px, 1.5vw, 24px);
    font-size: clamp(12px, 1.1vw, 24px);
    color: var(--dark-gray);
    border: none;
    text-align: left;
}

.custom-slide tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.custom-slide tbody tr:nth-child(even):hover {
    background: #e9ecef;
}

.custom-slide h1,
.custom-slide h2,
.custom-slide h3,
.custom-slide h4,
.custom-slide h5,
.custom-slide h6 {
    display: block;
}

.custom-slide .timeline {
    margin-top: 10px;
}

.custom-slide .timeline, .custom-slide .timeline-event {
    font-size: clamp(8px, 1.5vw, 16px);
    color: var(--dark-gray);
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: start;
    margin-bottom: -10px;
}

.custom-slide .timeline-event {
    margin-bottom: 10px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: start;
    text-align: left;
    gap: 5px;
}

.timeline-event strong {
    white-space: nowrap;
}

.custom-slide .concepts-items {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 5px;
    width: 100%;
}

.custom-slide .concepts-item {
    padding: clamp(15px, 2vw, 20px);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-gray);
}

.custom-slide .concepts-item h3 {
    font-size: clamp(12px, 2.5vw, 18px);
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: var(--font-weight-semibold);
}

.custom-slide .concepts-item p {
    margin: 0;
    font-size: clamp(8px, 1.5vw, 16px);
}

.custom-slide .process-steps {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    width: 100%;
    gap: 5px;
    text-align: left;
}

.custom-slide .process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(5px, 2vw, 15px);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-gray);
}

.custom-slide .process-step-number {
    flex-shrink: 0;
    width: clamp(15px, 4vw, 20px);
    height: clamp(15px, 4vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-gray);
    color: white;
    border-radius: 50%;
    font-weight: var(--font-weight-normal);
    font-size: clamp(10px, 2vw, 10px);
}

.custom-slide .process-step-description {
    flex: 1;
    font-size: clamp(8px, 1.5vw, 16px);
    color: var(--dark-gray);
    margin: 0;
}

.custom-slide .pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
}

.custom-slide .pros-section,
.custom-slide .cons-section {
    padding: clamp(15px, 2vw, 25px);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-gray);
}

.custom-slide .pros-section h3 {
    color: #52B356;
    font-size: clamp(12px, 2.5vw, 18px);
    margin-top: 0;
    margin-bottom: clamp(10px, 1.5vw, 15px);
}

.custom-slide .cons-section h3 {
    color: #ED6844;
    font-size: clamp(12px, 2.5vw, 18px);
    margin-top: 0;
    margin-bottom: clamp(10px, 1.5vw, 15px);
}

.custom-slide .pros-section ul,
.custom-slide .cons-section ul {
    margin: 0;
    padding-left: clamp(0, 2.5vw, 17px);
}

.custom-slide .pros-section li,
.custom-slide .cons-section li {
    font-size: clamp(8px, 1.5vw, 16px);
    margin: clamp(5px, 0.8vw, 10px) 0;
    line-height: 1.6;
}

.custom-slide:has(.process-step, .pros-cons-container) {
    text-align: left;
}

.custom-slide:has(.process-step, .pros-cons-container) h2 {
    text-align: center;
}

/* Custom slides controls */
.custom-slides-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    gap: 15px;
}

.custom-slides-nav {
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 8px;
}

.custom-slides-nav svg {
    stroke: var(--white);
    height: 20px;
    width: 20px;
    stroke-width: 2px;
}

.custom-slides-nav:hover:not(:disabled) {
    background: var(--teal-dark);
}

.custom-slides-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.custom-slides-progress {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.custom-slides-progress-fill {
    height: 100%;
    background: var(--teal);
    transition: width 0.3s ease;
    width: 0%;
}

.custom-slides-counter {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

body:has(.presentation-container) {
    overflow: auto !important;
}

/* Export font size fixes */
.custom-slide.exporting-slide {
    font-size: 14.4px !important;
}

.custom-slide.exporting-slide h1 {
    font-size: 38px !important;
}

.custom-slide.exporting-slide h2 {
    font-size: 34px !important;
}

.custom-slide.exporting-slide h3 {
    font-size: 28px !important;
}

.custom-slide.exporting-slide h4 {
    font-size: 24px !important;
}

.custom-slide.exporting-slide h5,
.custom-slide.exporting-slide h6 {
    font-size: 19px !important;
}

.custom-slide.exporting-slide p,
.custom-slide.exporting-slide ul,
.custom-slide.exporting-slide ol,
.custom-slide.exporting-slide li,
.custom-slide.exporting-slide .callout-box p,
.custom-slide.exporting-slide .timeline,
.custom-slide.exporting-slide .timeline-event,
.custom-slide.exporting-slide .concepts-item p,
.custom-slide.exporting-slide .process-step-description,
.custom-slide.exporting-slide .pros-section li,
.custom-slide.exporting-slide .cons-section li {
    font-size: 14px !important;
}

.custom-slide.exporting-slide blockquote {
    font-size: 19px !important;
}

.custom-slide.exporting-slide blockquote footer {
    font-size: 11px !important;
}

.custom-slide.exporting-slide table {
    font-size: 10px !important;
}

.custom-slide.exporting-slide th,
.custom-slide.exporting-slide td {
    font-size: 11px !important;
}

.custom-slide.exporting-slide .callout-box h3,
.custom-slide.exporting-slide .concepts-item h3,
.custom-slide.exporting-slide .pros-section h3,
.custom-slide.exporting-slide .cons-section h3 {
    font-size: 24px !important;
}

.extracted-text-container:has(.presentation-container) {
    overflow: visible;
}

button#startConvertingBtn {
    width: fit-content;
    justify-content: center;
    display: flex;
    margin: 50px auto 0;
    padding: 12px 18px 12px 24px;
    gap: 6px;
}

#limitModalAction:hover {
    color: var(--white);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .text-mobile-hidden {
        display: none;
    }

    h1 {
        font-size: var(--font-size-2xl);
    }

    .upload-area {
        padding-top: 40px;
    }

    .upload-content h2 {
        font-size: var(--font-size-base);
        margin-bottom: 4px;
    }

    .upload-content p {
        font-size: var(--font-size-sm);
    }

    p.textarea-privacy-notice {
        font-size: var(--font-size-xs);
    }

    .dragdrop-inside:has(.upload-area[style*="display: none"]) {
        margin: 0;
        padding: 20px;
    }

    .dragdrop-inside {
        border: none;
        box-shadow: none;
    }

    .dragdrop-inside h3 {
        font-size: var(--font-size-base);
    }
    
    .progress-container {
        gap: 8px;
    }
    
    .progress-text {
        font-size: 12px;
        min-width: 35px;
    }

    .features-section .content {
        border-radius: 10px;
        padding: 0;
    }

    .textarea-privacy-notice {
        justify-content: center;
        padding-top: 15px;
        margin-bottom: 0;
    }

    .text-output {
        width: calc(100% + 40px);
        margin: 20px 0 0 -20px;
        padding: 0 20px 20px;
    }

    .comp-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--highlight-gray);
        min-height: auto;
    }

    .comp-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .comp-col {
        width: 100%;
    }
 
    .comp-text {
        min-height: 100px;
    }

    .upload-content p:last-of-type {
        margin: 20px 0 -30px;
        padding-top: 20px;
    }

    .actions-header {
        top: 50px;
    }

    .textarea-controls-bar {
        flex-direction: column;
        gap: 8px;
    }

    .textarea-limit-text {
        display: inline;
    }

    .processing-content .textarea-privacy-notice, .extracted-text-container .textarea-privacy-notice  {
        padding-bottom: 0;
    }

    .textarea-controls-bar {
        padding-left: 8px;
    }

    .flashcards-amount-selector .custom-select span {
        display: none;
    }

    .quiz-slides {
        border: none;
    }

    .quiz-slide {
        padding: 0;
    }

    .quiz-question-card {
        padding: 20px 0;
    }

    .quiz-retake-button {
        margin: 0 auto;
    }

    .quiz-results-card {
        padding-top: 20px;
    }

    .quiz-results-title {
        margin-bottom: 0;
    }

    .quiz-question-item {
        padding-top: 40px;
        margin-bottom: 40px;
    }

    .template-selection-content h2 {
        font-size: var(--font-size-base);
        padding-top: 20px;
    }

    .template-selection-content .textarea-privacy-notice {
        padding-bottom: 0;
    }
}

@media (min-width: 2000px) {
    .presentation-container {
        max-width: 1920px;
    }
    
    .custom-slides-wrapper {
        max-width: 1920px;
        max-height: 1080px;
    }
}