    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f0f2f5;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #2c3e50, #3498db);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .description {
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        .config-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 400px;
            background-color: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .config-content {
            max-width: 500px;
            width: 100%;
            text-align: center;
        }
        
        .config-title {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 1.8rem;
        }
        
        .config-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            text-align: left;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .form-group input[type="number"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 1.1rem;
            transition: border-color 0.3s ease;
        }
        
        .form-group input[type="number"]:focus {
            border-color: #3498db;
            outline: none;
        }
        
        .range-container {
            margin-top: 10px;
        }
        
        .range-value {
            display: inline-block;
            padding: 5px 15px;
            background-color: #3498db;
            color: white;
            border-radius: 20px;
            font-weight: bold;
            margin-top: 10px;
        }
        
        .config-btn {
            background-color: #2ecc71;
            color: white;
            padding: 15px 30px;
            font-size: 1.1rem;
            margin-top: 20px;
        }
        
        .config-btn:hover {
            background-color: #27ae60;
        }
        
        .hidden {
            display: none;
        }
        
        .questions-count-info {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
            border-left: 5px solid #3498db;
            font-weight: bold;
        }
        
        .questions-count-info span {
            color: #3498db;
        }
        
        .test-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
        }
        
        .test-info {
            flex: 1;
            min-width: 300px;
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        
        .timer-container {
            background-color: #2c3e50;
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 25px;
        }
        
        .timer {
            font-size: 3rem;
            font-weight: bold;
            font-family: monospace;
            margin: 10px 0;
            color: #3498db;
        }
        
        .timer-controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .btn-start {
            background-color: #2ecc71;
            color: white;
        }
        
        .btn-start:hover {
            background-color: #27ae60;
        }
        
        .btn-pause {
            background-color: #f39c12;
            color: white;
        }
        
        .btn-pause:hover {
            background-color: #d68910;
        }
        
        .btn-reset {
            background-color: #e74c3c;
            color: white;
        }
        
        .btn-reset:hover {
            background-color: #c0392b;
        }
        
        .progress-container {
            margin-bottom: 25px;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .progress-bar {
            height: 15px;
            background-color: #ecf0f1;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background-color: #3498db;
            width: 0%;
            transition: width 0.5s ease;
        }
        
        .question-counter {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            font-weight: bold;
            margin-bottom: 20px;
            border-left: 5px solid #3498db;
        }
        
        .test-questions {
            flex: 2;
            min-width: 300px;
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        
        .question {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
            display: none;
        }
        
        .question.active {
            display: block;
        }
        
        .question-text {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #2c3e50;
        }
        
        .options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .option {
            display: flex;
            align-items: center;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        
        .option:hover {
            background-color: #e9ecef;
        }
        
        .option.selected {
            border-color: #3498db;
            background-color: #e1f0fa;
        }
        
        .option.correct {
            border-color: #2ecc71;
            background-color: #d5f4e6;
        }
        
        .option.incorrect {
            border-color: #e74c3c;
            background-color: #fadbd8;
        }
        
        .option input {
            margin-right: 15px;
            transform: scale(1.3);
        }
        
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        
        .btn-nav {
            padding: 12px 25px;
            background-color: #3498db;
            color: white;
        }
        
        .btn-nav:hover {
            background-color: #2980b9;
        }
        
        .btn-nav:disabled {
            background-color: #bdc3c7;
            cursor: not-allowed;
        }
        
        .btn-submit {
            background-color: #2ecc71;
            color: white;
            padding: 12px 30px;
            font-size: 1.1rem;
        }
        
        .btn-submit:hover {
            background-color: #27ae60;
        }
        
        .results {
            display: none;
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            margin-top: 30px;
        }
        
        .results.active {
            display: block;
        }
        
        .results h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .score-container {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 30px 0;
        }
        
        .score-box {
            flex: 1;
            padding: 25px;
            border-radius: 10px;
            color: white;
            max-width: 250px;
        }
        
        .correct-box {
            background-color: #2ecc71;
        }
        
        .incorrect-box {
            background-color: #e74c3c;
        }
        
        .time-box {
            background-color: #3498db;
        }
        
        .score-value {
            font-size: 3rem;
            font-weight: bold;
            margin: 10px 0;
        }
        
        .score-label {
            font-size: 1.2rem;
        }
        
        .grade {
            font-size: 2rem;
            font-weight: bold;
            margin: 20px 0;
            color: #2c3e50;
            text-align: center;
        }
        
        .restart-btn {
            background-color: #f39c12;
            color: white;
            margin-top: 20px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
        
        .restart-btn:hover {
            background-color: #d68910;
        }
        
        /* Estilos para o relatório de questões */
        .questions-report {
            margin-top: 40px;
        }
        
        .report-title {
            font-size: 1.5rem;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }
        
        .report-questions-container {
            max-height: 600px;
            overflow-y: auto;
            padding-right: 10px;
        }
        
        .report-question {
            background-color: #f8f9fa;
            margin-bottom: 20px;
            padding: 20px;
            border-radius: 8px;
            border-left: 5px solid #bdc3c7;
        }
        
        .report-question.correct {
            border-left-color: #2ecc71;
            background-color: #f0f9f4;
        }
        
        .report-question.incorrect {
            border-left-color: #e74c3c;
            background-color: #fdf2f0;
        }
        
        .report-question-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-weight: bold;
        }
        
        .question-number {
            font-size: 1.2rem;
            color: #2c3e50;
        }
        
        .question-status {
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: white;
        }
        
        .status-correct {
            background-color: #2ecc71;
        }
        
        .status-incorrect {
            background-color: #e74c3c;
        }
        
        .report-question-text {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .answers-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 15px;
        }
        
        .answer-box {
            flex: 1;
            min-width: 250px;
            padding: 15px;
            border-radius: 8px;
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .answer-title {
            font-weight: bold;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }
        
        .user-answer {
            border: 2px solid #3498db;
        }
        
        .correct-answer {
            border: 2px solid #2ecc71;
        }
        
        .answer-option {
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 5px;
            background-color: #f8f9fa;
        }
        
        .answer-option.selected {
            background-color: #e1f0fa;
            font-weight: bold;
        }
        
        .answer-option.correct {
            background-color: #d5f4e6;
            font-weight: bold;
        }
        
        .explanation {
            margin-top: 15px;
            padding: 15px;
            background-color: #e8f4fc;
            border-radius: 8px;
            border-left: 4px solid #3498db;
        }
        
        .explanation-title {
            font-weight: bold;
            margin-bottom: 5px;
            color: #2c3e50;
        }
        
        .report-summary {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
            font-weight: bold;
            color: #2c3e50;
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            .test-container {
                flex-direction: column;
            }
            
            .score-container {
                flex-direction: column;
                align-items: center;
            }
            
            .timer {
                font-size: 2.5rem;
            }
            
            .answers-container {
                flex-direction: column;
            }
        }
        
        /* Estilos para histórico */
        .history-container {
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            margin-top: 30px;
            max-height: 500px;
            overflow-y: auto;
        }
        
        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .history-title {
            font-size: 1.5rem;
            color: #2c3e50;
        }
        
        .history-item {
            background-color: #f8f9fa;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid #3498db;
        }
        
        .history-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .history-date {
            font-weight: bold;
            color: #2c3e50;
        }
        
        .history-score {
            font-weight: bold;
            color: #2ecc71;
        }
        
        .history-details {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: #7f8c8d;
        }
        
        .no-history {
            text-align: center;
            padding: 30px;
            color: #7f8c8d;
        }
        
        .toggle-history-btn {
            background-color: #9b59b6;
            color: white;
            margin-top: 20px;
        }
        
        .toggle-history-btn:hover {
            background-color: #8e44ad;
        }
        
        .clear-history-btn {
            background-color: #e74c3c;
            color: white;
            margin-top: 10px;
        }
        
        .clear-history-btn:hover {
            background-color: #c0392b;
        }
        
        .btn-show-details {
            background-color: #3498db;
            color: white;
            margin-top: 20px;
        }
        
        .btn-show-details:hover {
            background-color: #2980b9;
        }
     .history-details-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.history-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-details-title {
    color: #2c3e50;
    margin: 0;
}

.history-test-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.history-test-info-item {
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.history-questions-report {
    margin-top: 30px;
}

.history-item-actions {
    margin-top: 15px;
    text-align: center;
}

.btn-view-details {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-view-details:hover {
    background-color: #2980b9;
}

.answer-option.not-answered {
    background-color: #fff3cd;
    border: 2px solid #f39c12;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.answer-option.correct-option {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

/* Estilos para as caixas de pontuação */
.unanswered-box {
    background-color: #fff3cd;
    border: 2px solid #f39c12;
    color: #856404;
}

.unanswered-box .score-label {
    color: #856404;
}

/* Melhorias no histórico */
.history-item {
    border-left: 5px solid #3498db;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.history-date {
    font-weight: bold;
    color: #2c3e50;
}

.history-score {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
}

.history-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.no-history {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.clear-history-btn {
    background-color: #e74c3c;
    color: white;
    margin-top: 20px;
}

.clear-history-btn:hover {
    background-color: #c0392b;
}

/* Estilos para navegação automática */
.option {
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.option.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #3498db;
}

/* Responsividade */
@media (max-width: 768px) {
    .history-details {
        grid-template-columns: 1fr;
    }
    
    .history-test-info {
        grid-template-columns: 1fr;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-score {
        margin-top: 5px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-nav, .btn-submit {
        width: 100%;
    }
}