/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.logo {
    flex: 1;
    text-align: center;
}

.logo h1 {
    color: #4A90E2;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
}

.home-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.home-btn.active {
    background: linear-gradient(135deg, #357ABD, #2E5B8A);
}

/* Navegação */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-category-header {
    margin-bottom: 12px;
    text-align: center;
}

.nav-category-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    min-width: 160px;
    white-space: nowrap;
}

.submenu-btn {
    font-size: 0.8rem;
    padding: 10px 14px;
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.15);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.submenu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #4A90E2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.submenu-btn.active {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(6px);
}

/* Conteúdo Principal */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 500px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Página Inicial - Dashboard */
.home-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: #4A90E2;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-home {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-card-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(74, 144, 226, 0.1);
}

.recent-activity h3 {
    color: #4A90E2;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.2);
}

.activity-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.activity-text {
    flex: 1;
    color: #555;
    font-size: 0.95rem;
}

.activity-time {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #4A90E2, #357ABD);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.btn-secondary:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Headers dos Testes */
.test-header {
    text-align: center;
    margin-bottom: 30px;
}

.test-header h2 {
    color: #4A90E2;
    font-size: 2rem;
    margin-bottom: 10px;
}

.test-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Layout Compacto dos Testes */
.test-container {
    max-width: 1200px;
    margin: 0 auto;
}

.test-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.test-header-compact h2 {
    color: #4A90E2;
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.model-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.model-display span {
    font-weight: 600;
    color: #666;
}

.model-display .model-symbol {
    background: #4A90E2;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
}

.test-info {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.test-info .timer {
    background: #FF6B6B;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.test-info .score {
    background: #4ECDC4;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.btn-start {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.symbols-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.question-number {
    background: #4A90E2;
    color: white;
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Conteúdo compacto dos testes */
.logic-content-compact,
.spatial-content-compact,
.perception-content-compact,
.math-content-compact {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.logic-question,
.spatial-question,
.perception-question,
.math-question {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.logic-options,
.spatial-options,
.perception-options,
.math-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

/* Teste de Atenção */
.model-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.model-symbol {
    font-size: 3rem;
    margin: 15px 0;
    color: #4A90E2;
    font-weight: bold;
}

.timer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.timer, .score {
    font-size: 1.2rem;
    font-weight: 500;
}

.timer {
    color: #ff6b6b;
}

.score {
    color: #51cf66;
}

.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    gap: 4px;
    height: 450px;
    overflow: hidden;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.symbol-item {
    width: 55px;
    height: 55px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.symbol-item:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: scale(1.08);
    border-color: #4A90E2;
    color: #2d3436;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.symbol-item.selected {
    background: #4A90E2;
    color: white;
    border: 3px solid #357ABD;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.4);
}

.symbol-item.correct {
    background: #00b894;
    color: white;
    border: 3px solid #00a085;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(0, 184, 148, 0.4);
}

.symbol-item.incorrect {
    background: #e17055;
    color: white;
    border: 3px solid #d63031;
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(225, 112, 85, 0.4);
}

/* Questões de Múltipla Escolha */
.question-counter {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
}

.logic-question, .spatial-question, .perception-question, .math-question {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
}

.question-item {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
}

.question-item.unknown {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #999;
    font-size: 3rem;
    font-weight: bold;
}

.logic-options, .spatial-options, .perception-options, .math-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.option-item {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
}

.option-item:hover {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.05);
}

.option-item.selected {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.option-item.correct {
    border-color: #51cf66;
    background: #51cf66;
    color: white;
}

.option-item.incorrect {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: white;
}

.option-label {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
}

/* Equações Matemáticas */
.equation-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
}

.equation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.symbol {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
}

.heart { background: #ff6b9d; color: white; }
.star { background: #ffd93d; color: #333; }
.square { background: #4ecdc4; color: white; }
.circle { background: #a8e6cf; color: #333; }

/* Controles dos Testes */
.test-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.logic-score, .spatial-score, .perception-score, .math-score {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #4A90E2;
    margin-top: 20px;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
}

/* Simulado */
.simulator-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.stat-card h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.time-display, .score-display {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.simulator-content {
    min-height: 300px;
}

.simulator-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.simulator-intro h3 {
    color: #4A90E2;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.simulator-intro ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
    color: #666;
}

.simulator-intro li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #4A90E2;
    margin-bottom: 20px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.instructions-content {
    max-height: 400px;
    overflow-y: auto;
}

.instruction-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border-left: 4px solid #4A90E2;
}

.instruction-item h3 {
    color: #4A90E2;
    margin-bottom: 10px;
}

.instruction-item p {
    color: #666;
    line-height: 1.6;
}

/* Resultados */
#resultsContent {
    text-align: center;
}

.result-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.result-score {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-percentage {
    font-size: 1.2rem;
    opacity: 0.9;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    text-align: center;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 5px;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
}

.performance-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.performance-message.excellent {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 2px solid rgba(81, 207, 102, 0.3);
}

.performance-message.good {
    background: rgba(255, 193, 61, 0.2);
    color: #ffc13d;
    border: 2px solid rgba(255, 193, 61, 0.3);
}

.performance-message.needs-improvement {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

/* Configuração de Simulado Personalizado */
.custom-config {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid rgba(74, 144, 226, 0.1);
    margin-bottom: 25px;
}

.custom-config h3 {
    color: #4A90E2;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.config-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.config-section h4 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.section-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.section-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-checkboxes label:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.section-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4A90E2;
}

.time-config {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-config label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.time-config label:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.time-config input[type="radio"] {
    accent-color: #4A90E2;
}

.time-config select {
    margin-left: 8px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
}

.questions-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.questions-config label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.questions-config input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
}

.total-questions {
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #4A90E2;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.difficulty-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.difficulty-config label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.difficulty-config label:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.difficulty-config input[type="radio"] {
    accent-color: #4A90E2;
}

.detran-style {
    grid-template-columns: repeat(20, 1fr) !important;
    gap: 2px !important;
    font-size: 0.9rem !important;
}

.detran-style .symbol-item {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
}
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 15px 10px;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-width: 120px;
        flex: 0 1 auto;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 3px;
        padding: 15px;
    }
    
    .symbol-item {
        width: 50px;
        height: 50px;
        font-size: 2.8rem;
    }
    
    .logic-options, .spatial-options, .perception-options, .math-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .option-item {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .question-item {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .test-types {
        grid-template-columns: 1fr;
    }
    
    .quick-start {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .simulator-stats {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    /* Nav menu responsivo */
    .nav-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-group {
        padding: 12px;
    }
    
    .nav-category-header h3 {
        font-size: 0.9rem;
    }
    
    .submenu-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    /* Dashboard responsivo */
    .quick-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card-home {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Config personalizado responsivo */
    .section-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .difficulty-config {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-config label {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

@media (max-width: 480px) {
    .welcome-card h2 {
        font-size: 2rem;
    }
    
    .test-header h2 {
        font-size: 1.5rem;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        height: 380px;
        gap: 3px;
        padding: 10px;
    }
    
    .symbol-item {
        width: 40px;
        height: 40px;
        min-height: 38px;
        font-size: 2.5rem;
        font-weight: bold;
        border: 2px solid rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }
    
    .option-item {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }
    
    .question-item {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .equation-display {
        font-size: 1.2rem;
    }
    
    .symbol {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Animações extras */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.symbol-item.selected {
    animation: pulse 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.option-item.incorrect {
    animation: shake 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.option-item.correct {
    animation: bounce 0.5s ease;
}

/* Estados de carregamento */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #666;
    font-size: 1.1rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias de acessibilidade */
.symbol-item:focus, .option-item:focus, .nav-btn:focus, .btn-primary:focus, .btn-secondary:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Estilos para o teste de atenção */
.attention-feedback {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    display: none;
    opacity: 0;
}

.attention-feedback.success {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-left-color: #00a085;
}

.attention-feedback.error {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
    border-left-color: #d63031;
}

.attention-feedback.warning {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #2d3436;
    border-left-color: #f39c12;
}

.attention-feedback.info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border-left-color: #0984e3;
}

/* Cronômetro e estatísticas em tempo real */
.attention-timers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(116, 185, 255, 0.3);
}

.timer-item {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(116, 185, 255, 0.1);
}

.timer-label {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 5px;
    font-weight: 500;
}

.timer-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2d3436;
    font-family: 'Courier New', monospace;
}

.timer-value.countdown {
    color: #e17055;
}

.timer-value.elapsed {
    color: #00b894;
}

.timer-value.score {
    color: #0984e3;
}

/* Animações para símbolos */
.symbol-item {
    transition: all 0.3s ease;
}

.symbol-item:hover {
    transform: scale(1.05);
    background: rgba(116, 185, 255, 0.2);
}

.symbol-item.correct {
    animation: correctPulse 0.6s ease;
}

.symbol-item.incorrect {
    animation: incorrectShake 0.6s ease;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: #00b894; color: white; }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes missedTarget {
    0%, 100% { background: #ffeaa7; }
    50% { background: #fdcb6e; }
}

/* Estatísticas em tempo real */
.attention-live-stats {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3436;
    border: 2px solid rgba(116, 185, 255, 0.3);
}

/* Melhorias no botão iniciar */
.btn-primary {
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .nav-btn {
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .attention-timers {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .timer-value {
        font-size: 1.2rem;
    }
    
    .attention-feedback {
        padding: 12px 15px;
        font-size: 1rem;
        margin: 10px 0;
    }
    
    .symbols-grid {
        padding: 15px;
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
    
    .symbol-item {
        font-size: 2.2rem;
        min-height: 45px;
    }
}

/* Estados ativos para touch devices */
@media (hover: none) and (pointer: coarse) {
    .symbol-item:active, .option-item:active {
        transform: scale(0.95);
    }
    
    .btn-primary:active, .btn-secondary:active, .nav-btn:active {
        transform: scale(0.98);
    }
}