@import url('https://fonts.cdnfonts.com/css/times-new-roman');

.apa_generator_content {
    padding:30px;
}
.apa_generator_form textarea {
    height:400px;
    border-radius:0;
}
.academic_levels > * {
    display:inline-block;
    cursor:pointer;
}

.tool_header {
    font-family: 'Pathway Extreme', sans-serif;
    font-weight: 800;
    font-size: 48px !important;
    text-align: left !important;
    margin-bottom: 3% !important;
}

.academic_levels_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 30px 0;
    border-bottom: 1px solid #e1e1e1;
    padding: 0 0 15px 0;
}

form#apa_generator_result_form textarea,
form#apa_generator_form textarea {
    background-color: #F9F9F9;
    border-color: #EFF0F3;
    /*background-image: url(../images/ew_logo_7.svg);*/
    background-repeat: no-repeat;
    background-position: 50%;
    padding: 16px 20px;
    font-family: 'Times New Roman', sans-serif;
    font-size: 22px;
    line-height: 2;
}

.apa_generator_results {
    flex-direction: row-reverse;
}

.apa_generator_results button {
    margin: 10px 0 10px 0;
}

.accordion_tool {
    padding-right: 0;
}
.accordion_tool .accordion_item {
    margin-bottom: 10px;
}

.accordion_tool .panel {
    margin: 10px 0 0 0;
    border-radius: 20px;
}

.accordion_tool .panel p {
    padding-bottom: 16px;
}

button.download {
    background: #fff;
    text-align: center;
    padding: 16px 0;
    border: 1px solid #6C54FF;
    color: #111111;
    border-radius: 16px;
    font-weight: 600;
    width: 250px;
    position: relative;
}

button.off {
    border: 1px solid #afafaf;
    color: #afafaf;
}

button.download:hover {
    -webkit-box-shadow: 0px 0px 13px 0px rgba(167,99,255,1);
    -moz-box-shadow: 0px 0px 13px 0px rgba(167,99,255,1);
    box-shadow: 0px 0px 13px 0px rgba(167,99,255,1);
}

button.off:hover {
    -webkit-box-shadow: unset;
    -moz-box-shadow: unset;
    box-shadow: unset;
}

button.download:after,
button.download:before {
    content: '';
    background-image: url(../images/ms_word_icon.svg);
    width: 32px;
    height: 27px;
    display: block;
    position: absolute;
    top: 15px;
    left: 10px;
}


button.off:after,
button.off:before {
    background-image: url(../images/ms_word_icon_off.svg);
}


button.download:after {
    content: '';
    background-image: url(../images/download_icon.svg);
    left: unset;
    right: 14px;
    width: 22px;
    height: 22px;
    top: 17px;
}

button.off:after {
    background-image: url(../images/download_icon_off.svg);
}

.counter_label {
    margin-right: 32px;
    font-weight: 500;
    color: #BDBBBB;
}

.result_level {
    color: #afafaf;
    border-bottom: 5px solid #afafaf;
}


@media screen and (max-width: 1300px){
    .academic_levels_block {
        align-items: center;
        flex-direction: column;
    }

    .academic_levels {
        text-align: center;
    }

    .tool_header {
        text-align: center !important;
        font-size: 35px !important;
        padding: 24px 0 20px 0;
    }

    button.download {
        width: 100%;
    }

}

@media screen and (max-width: 660px){
    .counter_label {
        margin: 16px 0;
    }
}

.text_area_block {
    position: relative;
}

.eyes_closed, .eyes_open  {
    height: 105px; width: 102px;
}
.eyes_closed {
    background-image: url('../images/logo_blink_2.svg');
}
.eyes_open  {
    background-image: url(../images/logo_blink_1.svg);
    animation: blink normal 2s infinite linear;
}

@keyframes blink {
    0%,10% { opacity:0; }
    11%,20% { opacity:1; }
    21%,30% { opacity:0; }
    31%,100% { opacity:1; }
}

.ai_tool_content {
    text-align: justify;
}

.ai_tool_content h2 {
    font-size: 38px;
    margin: 0 0 16px 0;
}

.ai_tool_content h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #959595;
    font-weight: 600;
}

.ai_tool_content p {
    text-indent: 32px;
    line-height: 2;
}

.ai_tool_content ul {
    line-height: 2;
}

@media screen and (max-width: 850px){
    .ai_tool_content {
        padding: 20px;
    }
}


#select_form_2 {
    color: #afafaf;
}

@media screen and (max-width: 1300px){
    .inputs_labels {
        display: none;
    }

    .academic_levels {
        text-align: center;
        display: flex;
        margin: 0 0 10px 0;
        width: 100%;
        justify-content: space-between;
    }

}

@media screen and (max-width: 660px){
    .buttons_block button.download {
        width: 100%;
    }

    .buttons_block div {
        width: 100%;
    }

}

.inactive , .inactive:hover {
    background: #cdcdcd !important;
}

.error_border {
    border: 1px solid red !important;
}

.upload {
    position: relative;
    font-weight: 600;
    padding-left: 25px;
    cursor: pointer;
    color: #111111;
    margin: 20px 20px 0 4px;
}

.upload:hover {
    /*text-decoration: underline;*/
}

.upload:before {
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    background-image: url('../images/upload_icon.svg');
    top: 0;
    left: -5px;
}


/* ---------------------------------------------------- */

.ai_tool_content h3 {
    color: black;
    font-weight: 600;
    text-align: center;
    font-size: 32px;
    margin: 0 0 24px;
}

.pType2 {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto 20px;
}


.button_blocks {
    margin-top: 0px !important;
}

.ai_features_table {
    display: flex;
    justify-content: center;
}

.ai_features_table table tr td {
    border: 1px solid;
    padding: 5px;
    text-align: left;
}

.ai_tool_content h2 {
    font-size: 22px;
}

.imageBlock {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.button_blocks {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.aiTool {
    padding: 1% 5% !important;
}

@media screen and (max-width: 1300px) {
    .button_blocks {
        flex-direction: column;
    }
    .button_blocks .right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .upload {
        margin: 0;
    }
    .counter_label {
        margin-right: 0;
    }
    .button_blocks .right {
        margin-bottom: 20px !important;
    }
}

@media screen and (max-width: 660px) {
    .button_blocks {
        margin-top: 0;
    }
    .button_blocks .right {
        margin-bottom: 20px !important;
    }
}

.upd_header_1 {
    font-family: 'Pathway Extreme', sans-serif;
    font-weight: bold !important;
    font-size: 48px !important;
    color: #6C54FF;
}

@media screen and (max-width: 660px) {
    .upd_header_1 {
        font-size: 32px !important;
    }
}











#gen_model {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    border-radius: 10px;
    padding: 10px 10px 10px 20px;
    font-weight: bold;
    appearance: none;
    position: relative;
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: 96% 52%;
    outline: none;
    cursor: pointer;
    width: 210px !important;
    margin: 0 4px 0 0;
    text-transform: capitalize;
    font-size: 14px;
}

.gen_model_label {
    font-family: 'Pathway Extreme', sans-serif;
    font-size: 16px;
    font-weight: bolder;
    margin-right: 3px;
    padding: 16px 0 16px 0;
    cursor: pointer;
    min-width: 70px;
}

.control_buttons.v2 {
    left: 80px;
}

.modelInfo {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    margin-left: 10px;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-image: url("/templates/images/qmark1.svg");
}

.toolTip2 {
    position: absolute;
    background-color: #101828;
    padding: 10px;
    border-radius: 10px;
    width: 450px;
    z-index: 1;
    bottom: 40px;
    display: none;
    text-align: left;
}

.toolTip2 p {
    font-size: 12px !important;
    color: #fff !important;
    margin: 0;
    line-height: 170%;
}

.toolTip2 .bottomArrow {
    position: absolute;
    width: 10px;
    height: 10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #101828;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.modelInfo:hover .toolTip2 {
    display: block;
}

@media screen and (max-width: 1300px){
    button.download {
        position: relative;
        right: 0;
        top: 23px;
    }
    .upload {
        margin-right: 0;
    }
    .control_buttons {
        display: none;
    }
}

@media screen and (max-width: 1400px) {
    button.download {
        top: 0;
    }

    .counter_label {
        top: -46px;
    }

    .counter2 {
        margin-left: -36px;
    }

    .upload {
        margin-right: 0;
        top: -10px;
    }

    form#paraphrase_form textarea {
        margin-right: 0;
    }

    form#paraphrase_result_form textarea {
        margin-left: 0;
    }
}

@media screen and (max-width: 660px){
    .counter2 {
        margin-left: 0;
    }
    .toolTip2 {
        width: 200px;
        top: 40px;
        right: 0;
        bottom: unset;
    }
    .toolTip2 .bottomArrow {
        display: none;
    }
}

.academic_levels {
    position: relative;
}

.modelInfo {
    position: absolute;
    top: 21px;
    right: -40px;
}

@media screen and (max-width: 1300px) {
    #gen_model {
        width: 80%;
    }
    .academic_levels {
        justify-content: flex-start;
    }
    .modelInfo {
        top: 12px;
        right: 3%;
    }
}

@media screen and (max-width: 930px) {
    .modelInfo {
        right: 0;
    }
}

@media screen and (max-width: 570px) {
    #gen_model {
        width: 60%;
    }
}


#gen_model
{
    padding: 15px 20px;
    font-family: var(--main-font), serif;
    border: 1px solid #DFEAF2;
    border-radius: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    color: #888888;
    font-size: 14px;
    user-select: none;
    position: relative;
    z-index: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
    font-weight: 500;
}

form#apa_generator_result_form textarea, form#apa_generator_form textarea {
    padding: 15px 20px;
    font-family: var(--main-font), serif;
    border: 1px solid #DFEAF2;
    border-radius: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    width: 100%;
    color: #888888;
    font-size: 14px;
    user-select: none;
    position: relative;
    z-index: unset;
    outline: none;
}

#gen_model:hover,
form#apa_generator_result_form textarea:focus,
form#apa_generator_form textarea:focus
{
    border: 1px solid #6c54ff !important;
    box-shadow: 0 0 0 4px rgba(108, 84, 255, 0.1);
}

button.download
{
    border-radius: 10px;
}

button.download:after, button.download:before {
    top: 11px;
}

button.download:after {
    top:14px;
}

.gen_model_label {
    font-weight: 500;
    font-size: 14px;
    margin-right: 20px;
}

.button_blocks {
    margin-top: 0;
    align-items: center;
}

@media screen and (max-width: 1300px) {
    .button_blocks {
        align-items: unset;
    }
    .button_blocks .right {
        margin-bottom: 0;
    }
    .upload {
        top: 0 !important;
    }
    form#apa_generator_result_form textarea,
    form#apa_generator_form textarea {
        margin-bottom: 0;
    }
}


#gen_model {
    color: #111;
}

#gen_model:hover {
    border: 1px solid #6c54ff !important;
    box-shadow: 0 0 0 4px rgba(108, 84, 255, 0.1);
}

.trigger_content,
.summarizer_button, .download {
    cursor: pointer;
}

.page h1
{
    font-size: 32px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
}

.button_blocks {
    margin-top: 20px;
}

.upload:before {
    width: 22px !important;
    height: 22px !important;
}



@media screen and (max-width: 1300px) {
    .button_blocks .right {
        margin-top: 20px !important;
    }
    #gen_model {
        width: calc(100% - 75px) !important;
    }
}
.upload:hover {
    text-decoration: underline !important;
}


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


.inactive, .inactive:hover {
    /*background: #fff !important;*/
}

button.download[disabled]:hover {
    box-shadow: 0px 0px 13px 0px #ff8c8c;
    border: 1px solid #ff5454;
}

.img.t2 {
    display: flex;
}
.img.t2 img.t1 {
    width: unset;
}
@media screen and (max-width: 1200px) {
    .img.t2 img.t1 {
        width: 100%;
    }
}


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

.rightBlock .grader {
    background: #1c2534;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    border-radius: 8px;
    width: 250px;
    position: relative;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.rightBlock .grader .icon {
    width: 19px;
    height: 19px;
    margin-right: 10px;
    background-position: 0;
    background-image: url('/templates/images/grader_icon_1.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.rightBlock .grader:hover {
    filter: brightness(1.5);
    cursor: pointer;
}

.grader.inactive {
    cursor: not-allowed !important;
    background: #c9c9c9 !important;
}

.grader.inactive .icon {
    /*background-image: url('/templates/images/grader_icon_3.svg');*/
}

.grader.inactive:hover {
    filter: unset !important;
}


@media screen and (max-width: 1300px) {
    .rightBlock {
        flex-direction: column-reverse;
        align-items: center;
    }

    .rightBlock a,
    .rightBlock .grader {
        width: 100%;
    }
}

.rightBlock {
    flex-direction: row-reverse !important;
}

.rightBlock .grader {
    background: #ffffff;
    color: #000;
    border: 1px solid #6C54FF;
}

.rightBlock .grader .icon {
    background-image: url('/templates/images/grader_icon_2.svg') !important;
}

.grader.inactive:hover,
.grader.inactive {
    background: #fff !important;
    color: #868686 !important;
    border: 1px solid #a1a1a1;
}

.grader.inactive:hover,
.grader.inactive {
    background: #fff !important;
    color: #868686 !important;
    border: 1px solid #a1a1a1;
}

.grader.inactive .icon {
    background-image: url('/templates/images/grader_icon_2.svg') !important;
    opacity: 0.3 !important;
}

.rightBlock .grader:hover {
    filter: unset !important;
    box-shadow: 0px 0px 13px 0px #cca5ff;
}

.rightBlock .grader.inactive:hover {
    filter: unset !important;
    box-shadow: 0px 0px 13px 0px #ffa5a5;
}


@media screen and (max-width: 600px) {
    .rightBlock.upd1 {
        flex-direction: column-reverse !important;
    }
}

button.download {
    font-family: var(--main-font);
}

@media screen and (max-width: 1400px) {
    .upload {
        margin-right: 10px;
        top: 0;
    }
}


img.t1 {
    max-width: 700px;
}

ul.t1 {
    max-width: 700px;
}

h1.t1, h2.t1, h3.t1, h4.t1, h5.t1 {
    max-width: 700px;
}

p.t1 {
    max-width: 700px;
}


.ai_loader_container_wr {
    z-index: 10000 !important;
}

.ai_loader_container {
    z-index:  10001 !important;
}

.graderContainer {
    z-index:  9998 !important;
}




.mla-tool {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 20px;
    color: #333;
}

.mla-tool .container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mla-tool h1 {
    color: #1a5f7a;
    font-size: 28px;
    margin-bottom: 8px;
}

.mla-tool .subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.mla-tool .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* Model Cards */
.mla-tool .model-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mla-tool .model-card {
    flex: 1;
    min-width: 240px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: #fafafa;
}

.mla-tool .model-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.mla-tool .model-card.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.mla-tool .model-card input {
    position: absolute;
    opacity: 0;
}

.mla-tool .checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.mla-tool .model-card.selected .checkmark {
    display: flex;
}

.mla-tool .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.mla-tool .model-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    padding-right: 30px;
}

.mla-tool .recommended-badge {
    background: #fbbf24;
    color: #78350f;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 8px;
}

.mla-tool .model-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.mla-tool .features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mla-tool .feature {
    font-size: 12px;
    color: #7c3aed;
    margin: 0;
    padding: 0;
    border: none;
    width: unset;
}

.mla-tool .feature::before {
    content: '✓ ';
    font-weight: bold;
}

/* Textarea */
.mla-tool .textarea-container {
    margin-bottom: 8px;
}

.mla-tool .main-textarea {
    width: 100%;
    min-height: 280px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.mla-tool .main-textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.mla-tool .main-textarea::placeholder {
    color: #999;
}

/* Action Section */
.mla-tool .action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Generate Button - Full Width */
.mla-tool .generate-btn {
    width: 100%;
    padding: 12px 24px;
    background: #c4c4c4;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--main-font), serif;
}

.mla-tool .generate-btn:not(:disabled) {
    background: #7c3aed;
    cursor: pointer;
}

.mla-tool .generate-btn:not(:disabled):hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Bottom Row */
.mla-tool .bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mla-tool .left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upload-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.mla-tool .upload-btn:hover {
    background: #ebebeb;
    border-color: #b0b0b0;
}

.mla-tool .word-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mla-tool .essay-grader-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.mla-tool .essay-grader-btn:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* Icons */
.mla-tool .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .mla-tool .container {
        padding: 20px;
    }

    .mla-tool h1 {
        font-size: 24px;
    }

    .model-cards {
        gap: 10px;
    }

    .mla-tool .model-card {
        min-width: 200px;
        padding: 12px;
    }

    .mla-tool .main-textarea {
        min-height: 200px;
    }

    /* Keep horizontal layout on mobile but adjust spacing */
    .mla-tool .action-section {
        gap: 8px;
    }

    .mla-tool .word-count {
        font-size: 13px;
    }

    .mla-tool .center-group {
        gap: 8px;
    }

    .mla-tool .upload-btn,
    .mla-tool .generate-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .mla-tool .essay-grader-btn {
        font-size: 13px;
    }

    /* Hide icons on very small screens to save space */
    @media (max-width: 400px) {
        .mla-tool .icon {
            display: none;
        }
    }
}

#essay_grader_button.inactive {
    cursor: not-allowed !important;
    background: #fff !important;
    color: #808080 !important;
}

#essay_grader_button .icon {
    margin-bottom: 1px;
}

#essay_grader_button.inactive .icon {
    stroke: #808080;
}

.textarea-container {
    position: relative;
}

.textarea-container .filesBlock {
    position: absolute;
    /* background: red; */
    width: 100%;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 5px 10px;
}

.textarea-container .filesBlock .upload {
    color: #000 !important;
    border: 1px dashed #000 !important;
    font-family: var(--main-font), serif;
    font-size: 12px;
    margin: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background: #f9f9f9;
}

form#apa_generator_result_form textarea, form#apa_generator_form textarea {
    padding-bottom: 90px;
    margin-bottom: 0;
}

.upload:before {
    display: none !important;
}

.upload:hover {
    text-decoration: none !important;
    background: #efefef !important;
}

#input_text_2 {
    min-height: unset !important;
    height: 200px;
}

.mla-tool h1 {
    margin: 0 0 0 0 !important;
}




.model-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.model-card {
    flex: 1 1 calc(33% - 16px);
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.model-card.selected {
    border-color: #4a90e2;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.4);
}

@media (max-width: 992px) {
    .model-card {
        flex: 1 1 calc(50% - 16px); /* по 2 карточки в ряд */
    }
}

@media (max-width: 600px) {
    .model-card {
        flex: 1 1 100%; /* каждая карточка на всю ширину */
    }
}

/* small button compact view */

.mla-tool .container {
    padding: 30px 30px 12px 30px;
}

.mla-tool .generate-btn {
    width: 300px;
    z-index: 2;
}

.action-section {
    position: relative;
}

.mla-tool .action-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mla-tool .bottom-row {
    width: 100%;
    position: absolute;
    z-index: 1;
    bottom: 5px;
}

@media (max-width: 800px) {
    .mla-tool .generate-btn {
        width: 100%;
    }
    .mla-tool .bottom-row {
        position: unset;
    }
    .mla-tool .upload-btn, .mla-tool .generate-btn {
        padding: 11px 12px;
        font-size: 14px;
    }
}

form#apa_generator_result_form textarea, form#apa_generator_form textarea {
    color: #000;
    background: #fff;
}

.mla-tool h1 {
    text-align: center;
}

.mla-tool .subtitle {
    text-align: center;
}

.mla-tool .model-name {
    display: flex;
    align-items: center;
    gap: 7px;
}

.textarea-container .filesBlock {
    width: 150px;
    top: 12px;
    bottom: unset;
    right: 2px;
}

.textarea-container .filesBlock .upload {
    background: #fff;
    border: 1px solid #ddd !important;
    width: 140px;
    padding: 6px 0;
    border-radius: 5px;
}

.textarea-container .filesBlock .upload img {
    width: 18px;
    height: 18px;
}

form#apa_generator_result_form textarea, form#apa_generator_form textarea {
    padding: 20px 60px 20px 20px !important;
}

.mla-tool .essay-grader-btn {
    border: 1px solid #7c3aed;
    padding: 6px 15px;
    border-radius: 7px;
    background: #f6edff;
    text-decoration: none !important;
}

#essay_grader_button.inactive {
    border-color: #ddd;
}

.mla-tool .essay-grader-btn:hover {
    filter: brightness(0.95);
}

#export_to_apa img {
    width: 18px;
    height: 18px;
}

.mla-tool .generate-btn:not(:disabled) {
    background: linear-gradient(90deg,rgba(138, 165, 251, 1) 0%, rgba(195, 134, 251, 1) 100%);
}

.mla-tool .generate-btn:not(:disabled):hover {
    background: linear-gradient(90deg,rgba(120, 145, 231, 1) 0%, rgba(175, 114, 231, 1) 100%);
}

#essay_grader_button .icon {
    width: 20px;
    height: 19px;
    background-size: contain;
    background: url('/templates/img/grader4.svg') !important;
    background-repeat: no-repeat;
}

#essay_grader_button.inactive .icon {
    background: url('/templates/img/grader3.svg') !important;
    opacity: 0.5;
}

#downloadWayContainer {
    background: #0000009c;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
}

.mla-tool #clear {
    background-color: #ffffff;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 13px;
    right: 152px;
    z-index: 1;
    background-image: url('/templates/img/clear1.svg');
    background-size: 17px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border-radius: 7px;
    border: 1px solid #ddd;
}

.mla-tool #clear:hover {
    background-color: #ffeaea;
    border: 1px solid #ff8989;
    background-image: url('/templates/img/clear1_red.svg');
}

@media screen and (max-width: 600px) {
    form#apa_generator_result_form textarea,
    form#apa_generator_form textarea,
    #input_text_2 {
        padding: 60px 60px 20px 20px !important;
    }
}