/* ================================================
   LAYOUT GENERALE
   ================================================= */

.tolc {
    width: 80%;
    margin: 0 auto;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

/* Colori di sfondo per le sezioni */
.bck-blue { background: #0d9fd7; }
.bck-orange { background: #f59f00; }
.bck-green { background: #61a561; }
.bck-bronze { background: #bd7c04; }

/* Colori per i pallini delle sezioni */
.dot.dot-blue { background: #0d9fd7; }
.dot.dot-yellow { background: #ffc627; }
.dot.dot-green { background: #30a559; }
.dot.dot-orange { background: #f28c28; }

/* ================================================
   HEADER TOLC (barra blu in alto)
   ================================================= */

.tolcheader {
    height: 35px;
    width: 100%;
}

/* ================================================
   BARRE SEZIONI (tabs)
   ================================================= */

.tolc-sections {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    margin: 0;
    background: #e8f2ff;
    border-bottom: 2px solid #1d75b0;
}

.tolc-section-bar {
    background: #e9faff;
    display: flex;
    align-items: center;
}

/* Tab sezione (non attivo) */
.tolc-section {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    background: transparent;
    border-radius: 0;
    cursor: default;
    height: 42px;
    border: 1px solid #c5d3e0;
}

/* Tab attivo */
.tolc-section.active {
    background: #ffffff;
    font-weight: 600;
    border: 1px solid #c5d3e0;
    border-radius: 0;
    border-bottom: none;
}

/* Tab clickable (sezione successiva) */
a.tolc-section {
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

a.tolc-section:hover {
    background: #d0e8f7;
}

/* Tab completato (non cliccabile) */
.tolc-section.completed {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dot colorata */
.tolc-section .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* ================================================
   BREADCRUMB
   ================================================= */

.tolc-breadcrumb-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #ccc;
}

.tolc-breadcrumb {
    font-size: 20px;
    font-weight: 500;
    color: #526069;
    padding: 12px 0 12px 15px;
}

.tolc-end-btn {
    padding: 16px;
    background-color: #e9faff;
    color: #003b70;
    font-weight: 600;
    font-size: 14px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    border-top: 1px solid #c5d3e0;
    border-left: 1px solid #c5d3e0;
}

/* ================================================
   BLOCCO DOMANDE
   ================================================= */

/* Testo domanda */
.tolc-question-container .qtext {
    font-size: 17px;
    color: #526069;
    margin-bottom: 20px;
}

/* Risposte */
.tolc-question-container .answer > div {
    margin-bottom: 12px;
}

.tolc-question-container input[type="radio"] {
    transform: scale(1.2);
    margin-right: 10px;
}

.tolc-question-container .que .info {
    display: none !important;
}

.tolc-question-container .que .content {
    margin: 0 !important;
}

.tolc-question-container .que .formulation {
    color: #526069;
    background-color: #fff !important;
    border: none;
}

.tolc-question-container .que .qtype_multichoice_clearchoice {
    display: none !important;
}

/* ================================================
   TIMER
   ================================================= */

.tolctimer {
    background: #5382a7;
    padding: 0px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: right;
    height: 20px;
}

/* =========================================================
   NAVIGAZIONE DOMANDE
   ========================================================= */

/* Contenitore della navigation */
.qn_buttons {
    background: #ffffff;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Singolo numero */
.qnbutton {
    width: 40px;
    height: 40px;
    border: 1px solid #c9d4df;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    color: #003b70;
    background: #f4f9ff;
    border-radius: 0;
    cursor: pointer;
}

/* Domanda corrente */
.qnbutton.thispage {
    background: #f0f4f8;
    color: #003b70;
    border-top: 3px solid #003b70 !important;
}

/* Risposta salvata - colori per sezione */
.qnbutton.answersaved.color-blue {
    background: #0d9fd7;
    border-color: #0a7db0;
    color: #fff;
}

.qnbutton.answersaved.color-orange {
    background: #f59f00;
    border-color: #d68700;
    color: #fff;
}

.qnbutton.answersaved.color-green {
    background: #61a561;
    border-color: #4f8a4f;
    color: #fff;
}

.qnbutton.answersaved.color-bronze {
    background: #bd7c04;
    border-color: #9d6603;
    color: #fff;
}

/* Non risposte */
.qnbutton.notanswered {
    background: #f0f4f8;
    border-color: #d0dce6;
}

/* Pulsanti < e > */
.qnbutton.nav-prev,
.qnbutton.nav-next {
    width: 38px;
    height: 38px;
    background: #4877a8;
    color: white !important;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    border: none;
    text-decoration: none;
}

.qnbutton.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================================
   REVIEW (RISULTATI)
============================================================================ */

.tolc-review {
    width: 80%;
    margin: 0 auto;
}

.tolc_result_section {
    padding: 15px;
}

.tolc_result_section h4 {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tolc_result_table,
.tolc_result_table tbody,
.tolc_result_table tr,
.tolc_result_table td {
    border: none !important;
}

.tolc_result_table {
    width: 100%;
    border-collapse: collapse;
}

.tolc_result_table tr.tolc_last_row {
    border-bottom: 2px solid #555 !important;
}

.tolc_result_table tr.tolc_last_row td {
    border-bottom: 2px solid #555 !important;
}

.tolc_result_table tr.tolc_section_score {
    font-weight: 700;
}

.tolc_result_table tr.tolc_section_score td {
    padding-top: 8px !important;
}

.tolc_result_label_column {
    padding: 0px 12px;
    text-align: left;
    color: #555;
}

.tolc_result_values_column {
    padding: 0px 12px;
    text-align: right;
    font-weight: 500;
}

.tolc_total_score {
    padding: 0px 15px;
    font-size: 24px;
}

.tolc_total_score b {
    font-size: 20px;
}

/* ============================================================================
   REVIEW ATTEMPT - Stati domande
============================================================================ */

/* Risposta corretta */
.qnbutton.correct {
    background: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
}

/* Risposta sbagliata */
.qnbutton.incorrect {
    background: #d9534f;
    border-color: #d43f3a;
    color: #fff;
}