/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ef;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header h1 i {
    color: #3498db;
    margin-right: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Seções */
section {
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

section.active {
    display: block;
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Configuração do teste */
.config-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.theme-selection, .test-config {
    flex: 1;
    min-width: 300px;
}

.theme-selection h3, .test-config h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #e9ecef;
}

.theme-option:hover {
    background-color: #e9f7fe;
    border-color: #b3e0f7;
}

.theme-option input {
    margin-right: 15px;
    transform: scale(1.3);
}

.theme-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    flex-grow: 1;
}

.question-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.select-all {
    padding: 10px 0;
}

.select-all label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
}

.select-all input {
    margin-right: 10px;
    transform: scale(1.2);
}

.config-item {
    margin-bottom: 20px;
}

.config-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.config-item input, .config-item select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.config-item input:focus, .config-item select:focus {
    border-color: #3498db;
    outline: none;
}

.config-item input[type="number"] {
    max-width: 150px;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Botões */
button {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
}

.btn-finish {
    background-color: #2ecc71;
    color: white;
}

.btn-finish:hover {
    background-color: #27ae60;
}

/* Teste */
.test-header {
    margin-bottom: 25px;
}

.test-info {
    margin-top: 15px;
}

.progress {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background-color: #3498db;
    width: 10%;
    transition: width 0.5s;
}

.test-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
}

.score {
    background-color: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.question-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.question-theme {
    background-color: #3498db;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-number {
    font-weight: 600;
    color: #2c3e50;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #2c3e50;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    background-color: white;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #f1f8ff;
    border-color: #b3e0f7;
}

.option.selected {
    background-color: #e1f5fe;
    border-color: #3498db;
}

.option.correct {
    background-color: #d5f4e6;
    border-color: #2ecc71;
}

.option.wrong {
    background-color: #ffeaea;
    border-color: #e74c3c;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #ecf0f1;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.option.selected .option-label {
    background-color: #3498db;
    color: white;
}

.option.correct .option-label {
    background-color: #2ecc71;
    color: white;
}

.option.wrong .option-label {
    background-color: #e74c3c;
    color: white;
}

.option-text {
    flex-grow: 1;
}

.question-feedback {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.feedback-correct {
    background-color: #d5f4e6;
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.feedback-wrong {
    background-color: #ffeaea;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Resultados */
.result-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.score-circle span:first-child {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.score-details {
    flex-grow: 1;
    min-width: 250px;
}

.score-details h3 {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e6ef;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.detail-value {
    font-weight: 700;
}

.detail-value.correct {
    color: #27ae60;
}

.detail-value.wrong {
    color: #e74c3c;
}

.result-breakdown h3 {
    margin-bottom: 20px;
}

.theme-breakdown-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.theme-breakdown-name {
    font-weight: 600;
    width: 180px;
    color: #2c3e50;
}

.theme-breakdown-bar {
    flex-grow: 1;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.theme-breakdown-fill {
    height: 100%;
    border-radius: 10px;
    background-color: #3498db;
}

.theme-breakdown-score {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.review-section h3 {
    margin-bottom: 20px;
}

.review-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.review-item.correct {
    border-left-color: #2ecc71;
}

.review-item.wrong {
    border-left-color: #e74c3c;
}

.review-question {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.review-answer {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.review-correct-answer {
    background-color: #d5f4e6;
    color: #27ae60;
}

.review-explanation {
    margin-top: 10px;
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Adicionar questão */
.add-question-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

#new-question-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select:focus, .form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.alternatives-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alternative-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alternative-item input[type="radio"] {
    transform: scale(1.2);
}

.alternative-text {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
}

.alternative-text:focus {
    border-color: #3498db;
    outline: none;
}

.questions-preview {
    flex: 1;
    min-width: 300px;
}

#questions-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    padding: 10px;
}

.question-item {
    padding: 15px;
    border-bottom: 1px solid #e0e6ef;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 6px;
}

.question-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.question-item-theme {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.question-item-text {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.question-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ef;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-info {
    margin-top: 10px;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .config-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .theme-selection, .test-config {
        min-width: 100%;
    }
    
    .result-score {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .score-details {
        width: 100%;
    }
    
    .add-question-container {
        flex-direction: column;
    }
    
    #new-question-form, .questions-preview {
        min-width: 100%;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
}

/* Adicione estas regras ao arquivo style.css */

/* Para as questões não respondidas na tela do teste */
.option.unanswered {
    background-color: #fff8e1;
    border-color: #ffc107;
}

.option.unanswered .option-label {
    background-color: #ffc107;
    color: #333;
}

/* Para as questões não respondidas na revisão */
.review-item.unanswered {
    border-left-color: #ffc107;
    background-color: #fff8e1;
}

.review-item.unanswered .review-question {
    color: #ff8f00;
}

.review-item.unanswered .review-answer {
    background-color: #fff3cd;
    color: #856404;
}

/* Para questões corretas na revisão - ajuste para verde mais suave */
.review-item.correct {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.review-item.correct .review-question {
    color: #155724;
}

.review-item.correct .review-answer {
    background-color: #c3e6cb;
    color: #155724;
}

/* Para questões erradas na revisão - ajuste para vermelho mais suave */
.review-item.wrong {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.review-item.wrong .review-question {
    color: #721c24;
}

.review-item.wrong .review-answer {
    background-color: #f5c6cb;
    color: #721c24;
}

/* Para opções corretas na tela do teste */
.option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.option.correct .option-label {
    background-color: #28a745;
    color: white;
}

/* Para opções erradas na tela do teste */
.option.wrong {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.option.wrong .option-label {
    background-color: #dc3545;
    color: white;
}

/* Estilos para a barra de status no resultado */
.score-breakdown {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.score-item {
    text-align: center;
    flex: 1;
}

.score-item-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.score-item-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.score-correct .score-item-number {
    color: #28a745;
}

.score-wrong .score-item-number {
    color: #dc3545;
}

.score-unanswered .score-item-number {
    color: #ffc107;
}
/* Adicione ao seu arquivo style.css */

.review-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-item.correct {
    border-left-color: #28a745;
    background-color: #f8fff9;
}

.review-item.wrong {
    border-left-color: #dc3545;
    background-color: #fff8f8;
}

.review-question {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
    color: #333;
}

.review-question strong {
    color: #2c3e50;
}

.review-answers {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.review-user-answer, .review-correct-answer {
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
}

.review-user-answer.review-correct {
    background-color: #e6ffe6;
    border: 1px solid #c3e6c3;
    color: #155724;
}

.review-user-answer.review-wrong {
    background-color: #ffe6e6;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.review-correct-answer {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.review-answer-label {
    font-weight: bold;
    min-width: 120px;
    margin-right: 10px;
}

.review-answer-content {
    flex: 1;
    line-height: 1.4;
}

.review-explanation {
    margin-top: 15px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 5px;
    border-left: 4px solid #2196f3;
}

.explanation-label {
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 5px;
    display: block;
}

.explanation-content {
    line-height: 1.5;
    color: #333;
}

/* Estilo para questões não respondidas */
.review-user-answer:contains("Não respondida") {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}