/* Per nascondere i pulsanti di incremento e decremento nei browser Webkit (Chrome, Safari, Edge) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Per nascondere i pulsanti di incremento e decremento in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.form-container {
    width: 596px;
    padding-bottom: 168px;
    padding-top: 86px;
}

.challenge-form-container {
    width: 1208px;
    padding-bottom: 168px;
    padding-top: 86px;
}

.input-field {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    border: 0;
    color: var(--aixl-color-richblack);
}

.input-container {
    display: flex;
    align-items: start;
    justify-content: flex-start;
}

.input-container button {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}

.input-container input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.5rem;
    margin: 0 10px;
}

.custom-multiselect-container {
    display: flex;
    flex-direction: column;
}

.custom-multiselect-container .custom-multiselect {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.custom-multiselect-container .custom-multiselect input[type="checkbox"] {
    display: none;
}

.custom-multiselect-container .custom-multiselect label {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--aixl-color-lightgray);
    cursor: pointer;
    margin-left: 8px; /* Space between the checkbox and label */
}

.custom-multiselect-container .custom-multiselect input[type="checkbox"]:checked + label {
    box-shadow: inset 0 0 0 3px var(--bs-primary);
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
}


.custom-multiselect-container .custom-multiselect label:hover {
    background-color: var(--bs-secondary);
}

.custom-multiselect-container .custom-multiselect label:before {
    display: inline-block;
    margin-right: 8px;
}

/* radio buttons */

.custom-radio-container {
    display: flex;
    flex-direction: column;
    width: 596px;
}

.custom-radio {
    margin-bottom: 10px;
}

.custom-radio input[type="radio"] {
    display: none;
}

.custom-radio input[type="radio"] + label {
    cursor: pointer;
    position: relative;
}

.custom-radio input[type="radio"] + label {
    display: flex;
    padding: 20px 36px;
    justify-content: space-between;
    align-self: stretch;
    border-radius: 18px;
    border: 3px solid var(--aixl-color-lightgray);
    color: var(--aixl-color-richblack);
    width: 100%;
}

.custom-radio input[type="radio"]:checked + label {
    background-color: var(--aixl-color-seasalt);
    color: var(--bs-primary);
    border: 3px solid var(--bs-primary);

}

.custom-radio input[type="radio"] + label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--aixl-color-lightgray);
    background-color: white;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-radio input[type="radio"]:checked + label::before {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}


.custom-check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.custom-check {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.custom-check input[type="radio"] {
    display: none;
}

.custom-check input[type="radio"] + label {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 1000px;
    width: 80px;
    height: 48px;
    padding: 16px 24px;
    gap: 4px;
    border: 3px solid var(--aixl-color-lightgray);
    color: var(--aixl-color-richblack);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.custom-check input[type="radio"]:checked + label {
    background-color: var(--aixl-color-indigo);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.custom-check input[type="radio"] + label::before {
    content: "";
    display: inline-block;
    width: 0; /* Non necessario, rimuoviamo il pallino */
    height: 0; /* Non necessario, rimuoviamo il pallino */
    margin-right: 0; /* Rimuove il margine */
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--aixl-color-richblack);
    background-color: #fff;
    background-clip: padding-box;
    border: 3px solid var(--aixl-color-lightgray);
    border-radius: 18px;
    min-height: 84px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-textarea:focus {
    color: var(--aixl-color-richblack);
    background-color: #fff;
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert.alert-danger ul {
    list-style-type: none;
    padding-left: 0;
}

.alert.alert-danger ul li {
    list-style-type: none;
}

.fixed-bottom-row {
    position: fixed;
    background: white;
    bottom: 0;
    width: 100%;
    z-index: 1;
    padding: 36px;
    left: 0;
    right: 0;
}

/* remove bootstrap form validators */
.was-validated .form-control:valid, .form-control.is-valid {
    background-image: none;
}

.was-validated .form-control:invalid, .form-control.is-invalid {
    background-image: none;
}

.select-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: var(--bs-secondary);
    color: var(--aixl-color-richblack);
}

.select-card:hover {
    transform: scale(1.05);
}

.select-card .material-symbols-rounded {
    background-color: white;
    color: var(--aixl-color-richblack);
}

.select-card.selected {
    box-shadow: inset 0 0 0 3px var(--bs-primary);
    background: var(--aixl-color-indigo);
    color: var(--bs-primary);
}

.select-card.selected .material-symbols-rounded {
    background-color: white;
    color: var(--bs-primary);
}

.scenario-card {
    cursor: pointer;
    position: relative;
    padding: 1rem;
    min-height: 215px;
    /*max-height: 215px;*/
    .scenario-card-thumb{
        font-size: 40px;
    }
}


input[type="radio"]:checked + label.scenario-card {
    box-shadow: inset 0 0 0 3px var(--bs-primary);
    background: var(--aixl-color-indigo) !important;
    color: var(--bs-primary);
}


/* File section style */
.custom-file-upload {
    width: 164px;
    height: 164px;
    display: flex;
    padding: 32px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    border: 3px dashed var(--Light-Gray, #E5E5E5);
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.file-input {
    display: none;
}

.file-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    justify-content: flex-start;
}

.file-item {
    width: 164px;
    height: 164px;
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    background: var(--Paper-White, #F1F0EC);
    position: relative;
    box-sizing: border-box;
}

.file-item p, .file-item a {
    margin: 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-item button {
    background-color: transparent;
    color: black;
    border: 1px solid black;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 1;
}

/* Hover file card */
.file-item button:hover {
    background-color: black;
    color: white;
}

.file-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-form-container {
    max-width: 800px;
}


.fixed-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    padding: 10px;
}

/* Checkbox fields for students selections */
.custom-checkbox-container {
    display: flex;
    flex-direction: column;
    width: 596px;
}

.custom-checkbox {
    margin-bottom: 10px;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox input[type="checkbox"] + label {
    cursor: pointer;
    position: relative;
}

.custom-checkbox input[type="checkbox"] + label {
    display: flex;
    padding: 20px 46px;
    justify-content: space-between;
    align-self: stretch;
    border-radius: 18px;
    border: 3px solid var(--aixl-color-lightgray);
    color: var(--aixl-color-richblack);
    width: 100%;
}

.custom-checkbox input[type="checkbox"]:checked + label {
    background-color: var(--aixl-color-seasalt);
    color: var(--bs-primary);
    border: 3px solid var(--bs-primary);
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
    content: "✔";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--aixl-color-seasalt);
}

.custom-checkbox input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 3px solid var(--aixl-color-lightgray);
    background-color: white;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s, border-color 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked + label::before {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}


/* Media Query for Tablet (width <= 768px) */
@media (max-width: 768px) {

    .custom-check-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        padding-left: 90px;
    }

    .challenge-form-container {
        width: 512px;
        padding-bottom: 224px;
        padding-top: 86px;
    }
}


@media (max-width: 450px) {
    .form-container {
        width: 327px;
        padding-bottom: 224px;
        padding-top: 86px;
    }

    .challenge-form-container {
        width: 327px;
        padding-bottom: 224px;
        padding-top: 86px;
    }

    .w-100-mobile {
        width: 100%;
    }

    .mobile-row {
        flex-direction: column;
    }

    .mobile-row > .mobile-col {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mb-2 {
        margin-bottom: 1rem;
    }

    .custom-radio-container {
        display: flex;
        flex-direction: column;
        width: 327px;
    }

    .custom-check-container {
        display: flex;
        align-items: center;
        margin-left: -40px;
    }

    /* Checkbox fields for students selections */
    .custom-checkbox-container {
        display: flex;
        flex-direction: column;
        width: 327px;
    }

}
