.exercise-attempts a {
    position: relative;
    z-index: 2;
}
.exercise-attempts a:hover {
    box-shadow: 0 0 5px 1px #333;
}
.square-success, .square-danger, .square-warning, .square-secondary {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 25%;
    /*background-color: var(--bs-success);*/
    background-color: #4ac26b;
    border: 1px solid var(--bs-card-border-color);
}
.square-danger {
    background-color: var(--bs-danger);
}
.square-warning {
    background-color: var(--bs-warning);
}
.square-secondary {
    background-color: var(--bs-secondary-bg-subtle);
}
.current-exercise {
    z-index: 2;
    background-color: var(--bs-secondary-bg-subtle);
    border-color: var(--bs-secondary-bg-subtle);
}
.section-card, .exercise-card {
    display: block;
    text-decoration: none;
    color: var(--bs-dark);
    cursor: pointer;

    &:hover {
        border-color: #949393;
        box-shadow:var(--bs-box-shadow-lg);
        color: var(--bs-dark);
    }
}
.exercise-sections  {
    .accordion-button {
        background-color: var(--bs-tertiary-bg);
        color: #343a40;
    }
    .accordion-button:hover {
        background-color: var(--bs-secondary-bg);
        color: #343a40;
    }
    .accordion-button:not(.collapsed) {
        background-color: #e9ecef;
        color: #212529;
        border-color: #ced4da;
        border-left: 4px solid #adb5bd;
    }
    .accordion-button:not(.collapsed):hover {
        background-color: #dee2e6;
        color: #212529;
    }
    .accordion-button:focus {
        box-shadow: none;
        outline: 2px solid #6c757d;
        outline-offset: -2px;
        border-left-color: #adb5bd;
    }
    .accordion-button:focus:not(:focus-visible) {
        outline: none;
    }
    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23343a40'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c%2fsvg%3e");
    }
    .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c%2fsvg%3e");
    }
    .accordion-body{
        border-left: 4px solid #adb5bd;
    }
}
.exercise-card {
    .status-passed {
        border-color: var(--bs-success);
        color: var(--bs-success);
        background-color: #f6fcf8;
    }

    .status-in-progress {
        border-color: var(--bs-warning);
        color: var(--bs-warning);
        background-color: #fffcf2;
    }

    .status-failed {
        border-color: var(--bs-danger);
        color: var(--bs-danger);
        background-color: #fff7f7;
    }
}

.exercise-card-access-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--bs-secondary);
    font-size: 1rem;
    line-height: 1;
}
.exercise-card-difficulty-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: var(--bs-secondary);
    font-size: 1rem;
    line-height: 1;
}

/* pre-hide sentences before JS initialises to prevent flash of standard mode */
.multistep-pre-init .multistep-sentence {
    display: none;
}

/* MultiStep mode: hide all sentences, show only active one */
.multistep-active .multistep-sentence {
    display: none;
}

.multistep-active .multistep-sentence.active {
    display: block;
}

/* Progress indicator: row of short colored lines */
.exercise-progress-indicator {
    display: flex;
    gap: 4px;
    margin-block-end: 1rem;
    span {
        height: 6px;
        flex: 1;
        border-radius: 3px;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    .active {
        box-shadow: 0 3px 5px #3C3C3C;
    }
}

/* Mode switcher modal option cards */
.exercise-mode-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--bs-tertiary-bg);
    transition: border-color 0.15s;
}

.exercise-mode-card.active,
.exercise-mode-card:hover {
    border-color: var(--bs-primary);
}

.multistep-sentence {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.mode-multi_step:not(.completed) {
    .multistep-sentence {
        text-align: center;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}
.exercise-keys-info{
    font-size: .75rem;
    color: #BABDBFFF;
}
.exercise-form {
    .input-v1:focus {
        box-shadow: rgba(13, 110, 253, 0.15) 0 0 0 0.15rem;
    }
}

.exercise-top-action {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 1rem;
    z-index: 1;
}

.exercise-with-top-action .exercise-task-description1:first-of-type::before {
    content: '';
    float: inline-end;
    width: 2rem;
    height: 2.75rem;
}

.breadcrumb .breadcrumb-item.active  {
    a {
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
}

.badge-fixed {
    min-width: 3.5rem;
    text-align: center;
}

#shareExerciseModal .form-control {
    font-size: 1rem;
}
