:root {
    --backgroundColor: #303234;
    --bg-color: #303234;
    --bg-color-secondary: #3a3c3e;
    --color-orange: #FF9800;
    --color-green: #4ac201;
    --color-light-green: #8ef798;
    --pink: #d93c76;
    --greyLight-2: #d5e0f3;
    --granat: #4a478f;
    --gold: #ecc440;
}
*, *::before, *::after {
    outline: none;
}

.alert-popup-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0002;
    z-index: 999;
}

.alert-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.alert-popup .button-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-popup button {
    padding: 10px 40px !important;
    border-radius: 10px !important;
    margin-left: 20px !important;
}

.alert-popup button.ok-alert-btn {
    box-shadow: var(--shadow-concave);
    border: 2px solid #000000;
}

.alert-popup button.ok-alert-btn:hover {
    color: var(--color-orange);
}

#demo-exercises.popup-shadow,
#ccem-path-popup-video.popup-shadow,
#ccem-view-exercises.popup-shadow,
#ccem-flower-results.popup-shadow,
#ccem-card-results-popup.popup-shadow,
#ccem-download-certificate.popup-shadow{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: #0000009c;
}

#ccem-cat-description-popup.popup-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #0000009c;
}


#panel-intros-homeworks-popup,
#ccem-path-popup-video #video-style-box,
#ccem-flower-results #ccem-flower-results-box,
.cat-description-box,
#ccem-card-results-popup #ccem-card-results-box,
#ccem-download-certificate #ccem-download-certificate-box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    min-height: 270px;
    max-height: 90vh;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-concave);
    max-width: 1260px;
    background-color: var(--bg-color);
    color: #e0e0e0;
    border: 2px solid #000000;
}

.cat-description-box {
    width: 40%;
    min-width: 400px;
    max-width: 600px;
}

#ccem-card-results-popup #ccem-card-results-box {
    width: 660px;
}

#panel-intros-homeworks-popup .neu-inset,
#panel-intros-homeworks-popup .neu-inset-hov:hover,
#panel-intros-homeworks-popup .neu-inset-act:active,
#exercise-confirm.neu.active:active,
.neu.ok-alert-btn:active, .circle-small {
    background-color: rgba(var(--bg-color-black), 0.2);
    box-shadow: 4px -4px 8px 1px rgba(66, 69, 83, 0.51),
                4px 4px 8px 1px rgba(0, 0, 0, 0.35),
                inset -4px -4px 4px 0px rgba(0, 0, 0, 0.45),
                5px 6px 7px 1px rgba(0, 0, 0, 0.35),
                inset 2px 2px 2px 1px rgba(71, 80, 89, 1);
    border-radius: 99px;
    border: 2px solid #000000;
}

#exercise-confirm{
    margin-top: 16px;
    width: 15vw;
    margin-left: auto;
    margin-right: auto;
}

#panel-intros-homeworks-popup .neu,
#panel-intros-homeworks-popup .neu-ring-big,
#classes-exercise-section .finish-exercise-yes,
#classes-exercise-section .finish-exercise-no,
#panel-intros-homeworks-popup .switch:after,
.neu.alert-popup,
.alert-popup button.ok-alert-btn {
    border-radius: 18px;
    background-color: #303234;
    box-shadow: var(--shadow-concave);
    border: 2px solid #000000;
    padding: 0.5rem;
}

#panel-intros-homeworks-popup .card,
#panel-intros-homeworks-popup .card-title,
#panel-intros-homeworks-popup .btn,
#panel-intros-homeworks-popup.classes-exercise-answers,
.alert-popup button.ok-alert-btn:hover{
    color: var(--color-orange);
}

.done-text{
    margin: .2rem 0rem .2rem 1rem;
}

#classes-exercise-question{
    width: 96%;
}

.question-image {
    margin-top: 20px;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    cursor: zoom-in;
}

.question-chart {
    --chart-bg: var(--bg-color-secondary);
    --chart-grid: rgba(213, 224, 243, 0.08);
    --chart-axis: var(--greyLight-2);
    --chart-label: #a9b1c2;
    --chart-curve-1: #39ddfa;
    --chart-curve-2: var(--color-orange);
    --chart-curve-3: var(--color-light-green);
    --chart-curve-4: var(--gold);
    --chart-locked: #8a8f99;
    --chart-mark: var(--pink);
    --chart-tooltip-bg: var(--bg-color);
    --chart-tooltip-text: #e0e0e0;
    width: 100%;
    max-width: 720px;
    margin: 20px auto 0;
    padding: 12px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.question-chart canvas {
    display: block;
    width: 100%;
    border-radius: 10px;
    touch-action: none;
}

.question-chart canvas:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.question-chart-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.question-chart-readout {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.question-chart-readout .question-chart-name {
    font-weight: bold;
}

.question-chart-readout .question-chart-note {
    margin-left: 8px;
    opacity: 0.7;
}

.question-chart-reset {
    padding: 8px 16px;
    border-radius: 10px;
    background-color: var(--bg-color-secondary);
    color: #e0e0e0;
    font-weight: bold;
    cursor: pointer;
}

#panel-intros-homeworks-popup .elements-intro-homework .card:hover,
#panel-intros-homeworks-popup .elements-intro-homework .card .btn:hover,
#panel-intros-homeworks-popup .elements-intro-homework .card .btn:active,
#panel-intros-homeworks-popup .neu.active,
.ai-info-text {
    color: var(--color-orange);
}

#panel-intros-homeworks-popup .neu-ring-inside {
    box-shadow: none !important;
    width: 20px;
    height: 20px;
    border-radius: 0%;
}

.check {
    position: relative;
    margin-left: auto;
    background-image: url("../img/icons/checkGrey.png");
    background-repeat: no-repeat;
    background-size: 21px 14px;
    background-position: center;
    pointer-events: none;
    border: 2px solid black;
}


.check .active {
    background-image: url("../img/icons/check.png");
    cursor: pointer;
    pointer-events: auto;
}

#classes-exercise-answers textarea,
.alert-popup button.ok-alert-btn  {
    background-color: var(--bg-color-secondary);
    color: #e0e0e0;
}

#exercise-steps .step {
    border-radius: 99px;
    border: 2px solid #000000;
}

#exercise-steps .step.next {
    background-color: rgba(250, 179, 15, 0.2);
    color: #000000;
}

#exercise-steps .step.disabled {
    background-color: rgba(250, 179, 15, 0.1);
    color: #808080;
}

#exercise-steps .active,
#test-steps .active,
#panels-steps .active,
#panel-intros-homeworks-popup .elements-intro-homework .card .btn:active {
    border: 2px solid black;
}

#classes-exercise-answers .answer.active,
#panel-intros-homeworks-popup button:active {
    background-color: var(--bg-color-secondary);
    box-shadow: inset 3px 3px 6px #26282a, inset -3px -3px 6px #3a3c3e;
}

#classes-exercise-answers .answer.active .answer-mark,
#classes-exercise-answers .answer.active .answer-text,
#classes-exercise-answers .answer.my-answer .answer-mark,
#classes-exercise-answers .answer:hover .answer-mark,
#panel-intros-homeworks-popup .switch-user-answer,
#panel-intros-homeworks-popup button:hover {
    color: var(--color-orange);
}

#classes-exercise-answers .answer.active .answer-mark,
#classes-exercise-answers .answer:hover .answer-mark,
#classes-exercise-answers .answer.my-answer .answer-mark {
    border: 3px solid var(--color-orange);
}

#classes-exercise-answers .answer.good .answer-mark{
    border-color: var(--color-light-green);
    color: var(--color-light-green);
}

#classes-exercise-answers .ai-background {
    background-size: cover;
    background-repeat: no-repeat;
}

#classes-exercise-answers .ai-star-container {
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 40px;
}

#classes-exercise-answers .ai-star {
    margin: 5px;
}

.ai-coach {
    width: 860px;
    max-height: 80%;
    height: 80%;
}

.ai-coach .coach-content, .ai-coach .coach-content .text {
    height: 100%;
}

.ai-star.disabled {
    box-shadow: none !important;
    background-color:#475059;
    border: none !important;
}

.ai-star {
    -webkit-mask: var(--un-icon) no-repeat;
    -webkit-mask-size: 100% 100%;
    width: 24px;
    height: 24px;
    margin: 7px;
}

.ai-star.disabled {
    --un-icon: url("../img/icons/star-empty.svg");
    background-color: var(--greyLight-2);
}

.ai-star.empty {
    --un-icon: url("../img/icons/star-empty.svg");
    background-color: var(--color-orange);
}

.ai-star.filled {
    --un-icon: url("../img/icons/star-filled.svg");
    background-color: var(--color-orange);
}

.ai-star.mood-sad {
    --un-icon: url("../img/icons/mood-sad.svg");
    background-color: var(--pink);
}

.ai-star.mood-happy {
    --un-icon: url("../img/icons/mood-happy.svg");
    background-color: var(--gold);
}

.ai-star-container{
    height: 54px;
}

#classes-exercise-answers .ai-textbox-container {
    height: auto;
}

.ai-textbox-container .ai-microphone-active,
.ai-textbox-container .ai-microphone-inactive {
    margin: 0.3rem auto;
    width: 20px;
    height: 20px;
}
.ai-microphone {
    right: 11px;
    border-radius: 32px !important;
}

.ai-microphone-active {
    --un-icon: url(../img/icons/microphone_mk.svg);
}

.ai-microphone-inactive {
    --un-icon: url(../img/icons/microphone-off_mk.svg);
}

.ai-star.disabled {
    --un-icon: url("../img/icons/star-empty_mk.svg");
}

.ai-star.empty {
    --un-icon: url("../img/icons/star-empty_mk.svg");
}

.ai-star.filled {
    --un-icon: url("../img/icons/star-filled_mk.svg");
}

#classes-exercise-question .attachments-btn {
    background-image: url("../img/icons/attachmentMK.svg");
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center;
}

.GRID .grid-zoom-open {
    background-image: url("../img/icons/zoomGridMK.svg");
    background-size: 25px 25px;
    border: 2px solid #000000;
}

.check.active {
    background-image: url("../img/icons/check_mk.png");

}

#classes-exercise-question .attachments-box {
    right: 0!important;
}

.ai-tooltip-ico {
    width: 56px;
    height: 56px;
    bottom: 2px;
    right: 10px;
    border-radius: 59px !important;
}

.ai-tooltip-ico:hover .neu-inset-act {
    box-shadow: inset 3px 3px 6px #26282a, inset -3px -3px 6px #3a3c3e !important;
}

.ai-tooltip-ico .neu-inset-act:active {
    background-color: var(--bg-color-secondary) !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    outline: none !important;
}

#exercise-steps-box-hidden .neu-inset-act.done {
    color: #50c4d9;
    background-color: var(--bg-color-secondary);
    box-shadow: inset 3px 3px 6px #26282a, inset -3px -3px 6px #3a3c3e;
}

#exercise-steps-box-hidden .neu-inset-act.active {
    color: var(--color-orange);
    background-color: var(--bg-color-secondary);
    box-shadow: inset 5px 5px 8px rgba(0, 0, 0, 0.55),
            inset -5px -5px 6px rgba(73, 73, 73, 0.6);
    border-radius: 99px;
}
.mq-math-mode .mq-empty {
    background-color: var(--bg-color-secondary);
}

#show-ai-coach, #show-coach {
    box-shadow: -3px -2px 10px 1px rgba(66, 74, 83, 0.75), 5px 4px 7px 1px rgba(0, 0, 0, 0.51) !important;
    background-color: var(--color-orange) !important;
    color: #000000 !important;
    font-weight: bold !important;
}

.COMPLETE textarea, .DESCRIPTION textarea, .AI textarea {
    border-radius: 1rem !important;
    box-shadow: inset 3px 3px 6px #26282a, inset -2px -2px 4px #3a3c3e !important;
    background-color: var(--bg-color-secondary) !important;
    font-size: 1rem !important;
}

/* ========================================
   REUSABLE COMPONENTS - Ring Close Button
   ======================================== */

.close-popup, .turn-off {
    position: absolute;
    top: 0px;
    right: 0px;
    border-radius: 50%;
    cursor: pointer;
    width: 55px;
    height: 55px;
    z-index: 1;
}

.ring-big {
    color: #e0e0e0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-concave);
    border: 2px solid var(--color-black);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-inside {
    background-image: none !important;
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-block;
    position: relative;
}

.ring-inside::before,
.ring-inside::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 3px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

.ring-inside::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ring-inside::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ring-inside:active {
    background-color: var(--bg-color-secondary);
    box-shadow: inset 3px 3px 6px #26282a, inset -3px -3px 6px #3a3c3e;
}

.ai-stars-container{
    height: 56px;
}

#classes-exercise-answers{
    width: 96%;
}

#demo-paths-grid .div_concave_border.disabled {
    box-shadow: inset 8px 8px 16px #1e1f21, inset -8px -8px 16px #424447;;
    border-radius: 15px;
    border: none;
    opacity: 0.75;
    pointer-events: none;
    filter: grayscale(50%);
}

#panel-intros-homeworks-popup .ai-microphone.pushed .ai-microphone-active{
    background-color:var(--color-green);
}

#panel-intros-homeworks-popup .ai-microphone.pushed {
    box-shadow: inset 5px 5px 8px rgba(0, 0, 0, 0.55), inset -5px -5px 6px rgba(73, 73, 73, 0.6);
}

#classes-exercise-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 500px;
    padding-top: 15px;
    position: relative;
    width: 100%;
}

#order-section {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding-top: 50px;
    height: fit-content;
}

.order-question.card {
    font-size: 16px;
    text-align: justify;
    padding: 10px;
    font-weight: normal;
    width: 350px;
    min-height: fit-content;
    z-index: 0;
}

.order-question {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: default;
}

#order-section .order-answers {
    position: relative;
    width: 50%;
}

#order-section .order-answers .order-answer {
    width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    padding: 5px 60px;
    position: absolute;
    left: 0;
    margin-bottom: 15px;
    text-align: center;
    transition: top 0.3s;
}

#order-section .order-answers .order-answer > .order-move {
    margin-left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 5px;
    pointer-events: none;
}

#order-section .order-answers .order-answer > .order-bottom {
    left: auto;
    right: 5px;
}

#order-section .order-answers .order-answer > .order-move::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/icons/arrowGrey.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

#order-section .order-answers .order-answer > .order-bottom::after {
    transform: rotate(180deg);
}

#order-section .order-answers .order-answer > .order-move.active {
    cursor: pointer;
    pointer-events: auto;
}

#order-section .order-answers .order-answer > .order-move.active::after,
#order-section .order-elements .order-element > .order-move.active::after,
.popup.exercise-add #order-section .order-elements .order-element .order-move.active::after {
    background-image: url(../img/icons/arrowNav.png);
}

/* ORDER z grafiką - treść na całą szerokość, niżej grafika i odpowiedzi */
#order-section.has-image {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 55%);
    grid-template-areas:
        "question question"
        "image answers";
    justify-content: space-evenly;
    row-gap: 30px;
}

#order-section.has-image .order-question {
    grid-area: question;
}

#order-section.has-image .order-question.card {
    width: auto;
    margin-bottom: 15px;
}

#order-section.has-image .order-image {
    grid-area: image;
    align-self: start;
    padding: 10px;
    border-radius: 18px;
}

#order-section.has-image .order-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
}

#order-section.has-image .order-answers {
    grid-area: answers;
    width: 100%;
}

@media (max-width: 700px) {
    #order-section.has-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #order-section.has-image .order-question.card,
    #order-section.has-image .order-image,
    #order-section.has-image .order-answers {
        width: 95%;
    }
}


.elements-intro-homework .results .done-numbers {
    padding: 0 1rem;
}
.elements-intro-homework .results .done-numbers.negative {
    color: var(--color-orange);
}
.elements-intro-homework {
    display: flex;
    justify-content: space-evenly;
    margin-top: 50px;
    flex-wrap: wrap;
}
.elements-intro-homework .neu.results {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.elements-intro-homework .overflow-box {
    overflow: auto;
    height: 70vh;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) #fff5;
}
.elements-intro-homework .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 200px;
    height: 250px;
    margin: 20px;
}
.elements-intro-homework .card .card-top {
    margin-left: 0;
}
.card-top {
    width: calc(100% + 20px);
    height: 60%;
    display: flex;
    justify-content: space-around;
    margin-left: -20px;
}
.elements-intro-homework .card .card-top .card-photo {
    background-position: center;
}
.card-photo.exercise {
    background-image: url("../img/images/elementExercises.png");
}
.card-photo {
    width: 80%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
}
.card-title {
    position: relative;
    height: 10%;
    font-weight: normal;
    text-overflow: ellipsis;
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}
.card-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60%;
    border-bottom: 1px solid var(--lineColor);
    transform: translateX(-50%);
    box-shadow: 0px 1px 1px #fff;
}
.elements-intro-homework .card .btn {
    width: 70%;
}
#panel-intros-homeworks-popup .element {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 230px;
}
#exercise-steps-box, #test-steps-box, #panels-steps-box {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-56%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    height: 60px;
    max-width: 340px;
    overflow: hidden;
    z-index: 1;
}
#exercise-steps-box-hidden, #test-steps-box-hidden, #panels-steps-box-hidden {
    overflow: hidden;
    max-width: 260px;
}
#exercise-steps, #test-steps, #panels-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    height: 60px;
    width: max-content;
    overflow: hidden;
    transition: 0.3s;
}
#exercise-steps > *:not(:last-child), #test-steps > *:not(:last-child), #panels-steps > *:not(:last-child) {
    margin-right: 10px;
}
#exercise-steps > *, #test-steps > *, #panels-steps > * {
    margin-left: 0;
}
.circle-small {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: -30px;
}
#scrollToFinishBtn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    scrollbar-gutter: stable;
    max-height: 79vh;
    margin-top: 30px;
}
#classes-exercise-question {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 40px;
    text-align: justify;
    position: relative;
}
.link-to-attachment, .attachments-btn {
    position: absolute;
    bottom: 0;
    right: 2px;
}
.attachments-box {
    position: absolute;
    top: calc(100% + 20px);
    width: 200px;
    flex-direction: column;
    z-index: 2;
}
#classes-exercise-answers > * {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
#classes-exercise-answers .answer {
    width: 45%;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.answer-mark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--lineColor);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--lineColor);
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    min-width: 50px;
}
.answer-text {
    font-weight: normal;
}
#math-popup {
    position: fixed;
    background-color: #0002;
    z-index: 999;
    border-radius: 15px;
    top: -100%;
    height: 300%;
    left: -100%;
    width: 300%;
    display: none;
}
.exercise-footer {
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}
.pdf-attachments {
    width: 860px;
    max-height: 80%;
    height: 80%;
}
.coach, .ai-coach, .pdf-attachments {
    text-align: justify;
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.pdf-attachments .coach-content {
    height: calc(100% - 20px);
    margin-top: 20px;
}
.pdf-attachments .coach-content .text {
    height: 100%;
}
.close-popup > div, .close-math-popup > div, .turn-off > div {
    background-image: url("../img/icons/undo.png");
    background-repeat: no-repeat;
    background-position: center;
    width: 25px!important;
    height: 25px!important;
}
.ai-background {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    margin: -30px 0 40px 0;
}
.ai-tooltip-container {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 530px;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    display: none;
    z-index: 999;
    pointer-events: auto;
}
.ai-chat-text {
    position: absolute;
    top: 5%;
    left: 10px;
    right: 10px;
    background-color: #FF9800;
    border: 1px solid #000000;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    padding: 12px;
    overflow: hidden;
    overflow-wrap: break-word;
    width: 30%;
    height: auto;
    max-height: 90%;
    white-space: pre-line;
    text-align: justify;
}
.ai-chat-text.left {
    border-radius: 0px 36px 36px 36px;
    -webkit-border-radius: 0px 36px 36px 36px;
    -moz-border-radius: 0px 36px 36px 36px;
}
.ai-chat-text.right {
    border-radius: 36px 0px 36px 36px;
    -webkit-border-radius: 36px 0px 36px 36px;
    -moz-border-radius: 36px 0px 36px 36px;
}
.neu-ring-big {
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.ai-tooltip-ico {
    position: absolute;
    background-size: cover;
    background-position: center;
}
.ai-tooltip-ico .neu-ring-inside {
    background-repeat: no-repeat;
    background-position: center;
}
.ai-stars-container {
    width: 274px;
    margin: auto;
    margin-bottom: -15px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}
.ai-star {
    -webkit-mask: var(--un-icon) no-repeat;
    -webkit-mask-size: 100% 100%;
}
.ai-textbox-container {
    position: relative;
    width: 100%;
}
.AI textarea {
    padding: 20px 50px 20px 20px;
}
.COMPLETE textarea, .DESCRIPTION textarea, .AI textarea {
    width: 100%;
    min-height: 140px;
    resize: none;
}
.ai-microphone {
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 17px;
}
.ai-microphone-inactive {
    -webkit-mask: var(--un-icon) no-repeat;
    -webkit-mask-size: 100% 100%;
    background-color: var(--bg-color-secondary);
}
.ai-microphone-active {
    -webkit-mask: var(--un-icon) no-repeat;
    -webkit-mask-size: 100% 100%;
    background-color: var(--color-green);
    cursor: pointer;
}
.exercise-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}
.check.active {
    cursor: pointer;
    pointer-events: auto;
}
.check {
    position: relative;
    margin-left: auto;
    background-image: url("../img/icons/checkGrey.png");
    background-repeat: no-repeat;
    background-size: 21px 14px;
    background-position: center;
    pointer-events: none;
    border: 2px solid black;
}
#exercise-steps > *.not-active, #test-steps > *.not-active, #panels-steps > *.not-active {
    opacity: 0.4;
    cursor: default;
}
.ai-tooltip-ico:hover + .ai-tooltip-container,
.ai-tooltip-container:hover {
    display: block;
}
.exercise-footer {
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    z-index: 1;
}
#question-result {
    height: 50px;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-weight: bold;
}
.exercise-footer #show-coach, .exercise-footer #show-correct {
    color: #FFFFFF;
}
.exercise-footer .switch {
    height: 50px;
    width: 350px;
    padding-left: 11px;
    padding-right: 9px;
    text-align: center;
}
.switch {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 20px;
    padding: 5px 9px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    user-select: none;
    cursor: pointer;
    align-items: center;
}
.exercise-footer .switch-user-answer, .exercise-footer .switch-correct-answer {
    width: 150px;
    align-items: center;
}
.switch-user-answer {
    display: flex;
    justify-content: space-between;
    font-weight: normal;
    transition: 0.3s;
}
.icon-user-answer {
    -webkit-mask: url("../img/icons/user-check.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask: url("../img/icons/user-check.svg") no-repeat center;
    mask-size: contain;
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    z-index: 2;
    transition: 0.3s;
}
.exercise-footer .user-answer-name, .exercise-footer .correct-answer-name {
    font-size: 14px;
    width: 100px;
    line-height: 1.1;
}
.switch-correct-answer {
    display: flex;
    justify-content: space-between;
    font-weight: normal;
    color: var(--grayShadow);
    transition: 0.3s;
}
.icon-correct-answer {
    -webkit-mask: url("../img/icons/square-check.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask: url("../img/icons/square-check.svg") no-repeat center;
    mask-size: contain;
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    z-index: 2;
    transition: 0.3s;
}

#switch-type:checked + label::after,
#switch-type-homework:checked + label::after,
#switch-type-structures:checked + label::after,
#switch-type-etap-0:checked + label::after,
#switch-type-sync:checked + label::after,
#switch-type1:checked + label::after {
    left: calc(100% - 40px);
}

#switch-type:checked + label .switch-correct-answer,
#switch-type-structures:checked + label .switch-correct-answer,
#switch-type-etap-0:checked + label .switch-correct-answer,
#switch-type1:checked + label .switch-correct-answer,
#switch-type-sync:checked + label .classes-asynchronous {
    color: var(--color-green);
}

.switch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background-color: var(--backgroundColor);
    border-radius: 50%;
    z-index: -1;
    transition: 0.3s;
    /* box-shadow: 9px 9px 16px var(--grayShadow),
							-9px -9px 16px var(--white); */
    box-shadow: 3px 3px 10px var(--grayShadow), -6px -6px 10px var(--white);
}
.coach .coach-content {
    overflow-y: auto;
    max-height: 400px;
    padding: 10px 60px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) #fff5;
}
.COMPLETE.txtPlaceholder,
.DESCRIPTION.txtPlaceholder {
    position: relative;
}

.COMPLETE textarea,
.DESCRIPTION textarea,
.AI textarea {
    border: none;
    width: 100%;
    min-height: 140px;
    border-radius: 15px;
    resize: none;
    padding: 20px;
}

.AI textarea {
    padding: 20px 50px 20px 20px;
}

.COMPLETE.txtPlaceholder::after,
.DESCRIPTION.txtPlaceholder::after,
.AI.txtPlaceholder::after {
    content: "Miejsce na Twoją odpowiedź";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--grayShadow);
    /* color: var(--lineColor); */
    font-weight: bold;
    font-size: 18px;
    cursor: text;
    text-align: center;
    pointer-events: none;
}

.COMPLETE textarea::placeholder,
.DESCRIPTION textarea::placeholder,
.AI textarea::placeholder {
    padding-top: 30px;
    color: var(--grayShadow);
    font-weight: bold;
    font-size: 18px;
    cursor: text;
    text-align: center;
    pointer-events: none;
}


/* GRID Question Type */
.GRID {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -5.5%;
    font-size: small;
}

.GRID .grid-container {
    display: grid;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    border-radius: 15px;
    padding: 0;
    align-items: stretch;
    justify-items: stretch;
}

.GRID .grid-field {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 5px;
    height: 100%;
    min-width: 0;
}

.GRID .grid-field.grid-field-readonly {
    font-weight: normal;
    pointer-events: none;
    color: #ffffff;
    padding-right: 8px;
}

.GRID .grid-field input.grid-input,
.GRID .grid-field select.grid-select {
    color: var(--grid-field-color, var(--white));
    background: var(--grid-field-bg, #1f2122);
    border: 1.5px solid #000;
    box-shadow: inset -4px -4px 4px #c4c4c41a, inset 4px 4px 4px #0004;
    border-radius: 10px;
    padding: 0px 8px;
    font-size: var(--defaultFontSize);
    text-align: inherit;
    transition: all 0.3s ease;
    height: auto;
    line-height: normal;
    min-width: 0;
    max-width: 100%;
}

.GRID .grid-field input.grid-input:focus,
.GRID .grid-field select.grid-select:focus {
    outline: none;
    box-shadow: inset -6px -6px 6px #c4c4c41a, inset 6px 6px 6px #0004;
}

.GRID .grid-field input.grid-input:disabled,
.GRID .grid-field select.grid-select:disabled {
    opacity: 0.7;
    cursor: default;
}

.GRID .grid-field .grid-unit {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}

.GRID .grid-field.grid-field-correct input,
.GRID .grid-field.grid-field-correct select {
    border-color: #8ef798;
}

.GRID .grid-field.grid-field-incorrect input,
.GRID .grid-field.grid-field-incorrect select {
    border-color: #eb5757;
}

/* Custom Select dla GRID */
.GRID .grid-custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
    height: 25px;
    min-width: 0;
}

.GRID .grid-custom-select.disabled {
    opacity: 1;
    pointer-events: none;
}

.GRID .grid-custom-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--grid-field-bg, linear-gradient(145deg, #2a2d2e, #1a1c1d));
    border: 1.5px solid #000;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.4),
        -2px -2px 6px rgba(80, 80, 80, 0.15),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    min-width: 0;
}

.GRID .grid-custom-select.open .grid-custom-select-header {
    border-radius: 20px 20px 0 0;
}

.GRID .grid-custom-select-text {
    color: var(--primary-light);
    font-size: var(--defaultFontSize);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.GRID .grid-custom-select.has-value .grid-custom-select-text {
    color: var(--grid-field-color, var(--white));
    white-space: nowrap;
    overflow: hidden;
}

.GRID .grid-custom-select-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid var(--primary-light);
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.GRID .grid-custom-select.open .grid-custom-select-arrow {
    transform: rotate(180deg);
}

.GRID .grid-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: max-content;
    background: var(--grid-field-bg, #1f2122);
    border: 1.5px solid #000;
    border-top: none;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
}

.GRID .grid-custom-select.open .grid-custom-select-options {
    max-height: 200px;
    opacity: 1;
    overflow-y: auto;
}

.GRID .grid-custom-select-option {
    padding: 2px 10px;
    color: var(--grid-field-color, var(--white));
    font-size: var(--defaultFontSize);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.GRID .grid-custom-select sub,
.GRID .grid-custom-select sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.GRID .grid-custom-select sub {
    bottom: -0.25em;
}

.GRID .grid-custom-select sup {
    top: -0.5em;
}

.GRID .grid-custom-select-option:hover {
    color: var(--green);
}

.GRID .grid-custom-select-option.selected {
    color: var(--green);
}

.GRID .grid-field.grid-field-correct .grid-custom-select-header {
    border-color: #8ef798;
}

.GRID .grid-field.grid-field-incorrect .grid-custom-select-header {
    border-color: #eb5757;
}

/* END - GRID Question Type */

/* DRAG_DROP - przeciągnij i upuść (CCEM ładuje mainNeu.css tylko na wybranych stronach, dlatego pełny zestaw reguł) */
#classes-exercise-answers .DRAG_DROP {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#classes-exercise-answers .DRAG_DROP .dd-containers {
    display: grid;
    grid-template-columns: repeat(var(--dd-count, 2), minmax(0, 1fr));
    gap: 20px;
}

#classes-exercise-answers .DRAG_DROP .dd-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 15px;
}

#classes-exercise-answers .DRAG_DROP .dd-container-name {
    font-weight: bold;
    color: var(--greyLight-2);
    text-align: center;
    overflow-wrap: anywhere;
}

/* .dd-element-text bez prefiksu - klon przeciąganego elementu (.dd-ghost) jest dołączany do body */
#classes-exercise-answers .DRAG_DROP .dd-container-name sub,
#classes-exercise-answers .DRAG_DROP .dd-container-name sup,
.dd-element-text sub,
.dd-element-text sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

#classes-exercise-answers .DRAG_DROP .dd-container-name sub,
.dd-element-text sub {
    bottom: -0.25em;
}

#classes-exercise-answers .DRAG_DROP .dd-container-name sup,
.dd-element-text sup {
    top: -0.5em;
}

#classes-exercise-answers .DRAG_DROP .dd-drop,
#classes-exercise-answers .DRAG_DROP .dd-pool {
    min-height: 120px;
    padding: 12px;
    border-radius: 15px;
    display: flex;
    gap: 10px;
}

#classes-exercise-answers .DRAG_DROP .dd-drop {
    flex: 1;
    flex-direction: column;
    position: relative;
}

#classes-exercise-answers .DRAG_DROP .dd-drop.dd-empty::before {
    content: attr(data-placeholder);
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--greyLight-2);
    border-radius: 10px;
    color: var(--greyLight-2);
    opacity: 0.6;
    pointer-events: none;
}

#classes-exercise-answers .DRAG_DROP .dd-pool {
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

#classes-exercise-answers .DRAG_DROP.dd-locked .dd-pool.dd-empty {
    display: none;
}

#classes-exercise-answers .DRAG_DROP .dd-drop.dd-over,
#classes-exercise-answers .DRAG_DROP .dd-pool.dd-over {
    outline: 3px dashed var(--greyLight-2);
    outline-offset: -6px;
}

.dd-element {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 3px solid transparent;
    border-radius: 10px;
    background-color: var(--bg-color-secondary);
    color: var(--greyLight-2);
    cursor: grab;
    user-select: none;
    overflow-wrap: anywhere;
}

#classes-exercise-answers .DRAG_DROP:not(.dd-locked) .dd-element {
    touch-action: none;
}

#classes-exercise-answers .DRAG_DROP.dd-locked .dd-element {
    cursor: default;
}

.dd-element .dd-grip {
    width: 10px;
    height: 16px;
    flex-shrink: 0;
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.6px);
    background-size: 5px 5px;
    opacity: 0.6;
}

#classes-exercise-answers .DRAG_DROP.dd-locked .dd-grip {
    display: none;
}

#classes-exercise-answers .DRAG_DROP .dd-element.dd-selected,
#classes-exercise-answers .DRAG_DROP .dd-element:focus-visible,
#classes-exercise-answers .DRAG_DROP .dd-drop:focus-visible,
#classes-exercise-answers .DRAG_DROP .dd-pool:focus-visible {
    outline: 3px solid var(--greyLight-2);
    outline-offset: 2px;
}

#classes-exercise-answers .DRAG_DROP .dd-element.dd-dragging {
    opacity: 0.35;
}

.dd-element.dd-ghost {
    position: fixed;
    z-index: 10000;
    margin: 0;
    opacity: 0.9;
    pointer-events: none;
    cursor: grabbing;
}

#classes-exercise-answers .DRAG_DROP .dd-element.good {
    border-color: var(--color-green);
}

#classes-exercise-answers .DRAG_DROP .dd-element.bad {
    border-color: var(--pink);
    border-style: dashed;
}

@media (max-width: 700px) {
    #classes-exercise-answers .DRAG_DROP .dd-containers {
        grid-template-columns: minmax(0, 1fr);
    }
}
