:root {
    --primary-color: #2196F3;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --text-color: #333333;
    --background-color: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: #f3f3f3;
    border-radius: 5px;
    margin: 20px 0;
}

.progress-bar div {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.score {
    font-size: 1.2em;
    color: var(--primary-color);
}

#quiz-content {
    margin-bottom: 30px;
}

.question {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: #f8f8f8;
}

.option.selected {
    border-color: var(--primary-color);
    background: #f8f8f8;
}

.option.correct {
    background: var(--success-color);
    color: white;
}

.option.incorrect {
    background: var(--error-color);
    color: white;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.btn:not(.disabled):hover {
    opacity: 0.9;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*botão finalizar que só exibira após a última questão*/
.submit-btn {
    background: #d32f2f !important;
    color: #fff !important;
    border: none;
}

.submit-btn:hover:not(.disabled) {
    background: #1976D2;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;/* Botão Próxima (azul) */
    #nextBtn {
        background: #4CAF50;
        color: #fff;
    }
    #nextBtn:disabled {
        background: #A5D6A7;
        color: #fff;
        cursor: not-allowed;
    }
    
    /* Botão Finalizar Quiz (vermelho) */
    #submitBtn {
        background: #F44336 !important;
        color: #fff !important;
        border: none;
    }
    #submitBtn:disabled {
        background: #ffcdd2 !important;
        color: #fff !important;
        cursor: not-allowed;
    }
    
    /* Botão Imprimir PDF (amarelo) */
#printBtn {
    background: #FFEB3B;
    color: #333;
    border: 1px solid #FBC02D;
}
#printBtn:disabled {
    background: #FFF9C4;
    color: #BDBDBD;
    cursor: not-allowed;
}
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
}
/* <-- FECHA O BLOCO @media AQUI! */
.quiz-feedback {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
}

.quiz-feedback.success {
    background: #e8f5e9;
    color: #388e3c;
}
.quiz-feedback.fail {
    background: #ffebee;
    color: #c62828;
}

.toast-confirm {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px #d32f2f55, 0 2px 8px #0002;
    padding: 32px 40px 24px 40px;
    min-width: 340px;
    max-width: 94vw;
    font-size: 1.15em;
    border: 2px solid #d32f2f;
    color: #222;
    animation: fadeInPopup .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.toast-content {
    text-align: center;
}
.toast-actions {
    margin-top: 22px;
    text-align: center;
}
.toast-actions .btn {
    margin: 0 12px;
    background: #d32f2f;
    color: #fff;
    border-radius: 6px;
    padding: 8px 22px;
    font-weight: bold;
    font-size: 1em;
    border: none;
    box-shadow: 0 2px 6px #d32f2f22;
    transition: background 0.2s;
}
.toast-actions .btn:hover {
    background: #b71c1c;
}
#toastMsg {
    color: #b71c1c;
    font-weight: 600;
    font-size: 1.08em;
}
@keyframes fadeInPopup {
    from { opacity: 0; transform: translate(-50%, 0);}
    to   { opacity: 1; transform: translate(-50%, -50%);}
}

