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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* Páginas */
.page {
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Conteúdo */
.content {
    padding: 40px;
}

.info-section h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.frameworks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.framework-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.framework-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.test-info {
    background: #e8f4f8;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.test-info h2 {
    color: #4a90e2;
    margin-bottom: 15px;
}

.test-info ul {
    list-style: none;
}

.test-info li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.test-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

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

/* Página do Teste */
.test-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    margin: 20px 0 10px;
    overflow: hidden;
}

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

.progress-text {
    font-size: 1.1em;
    opacity: 0.9;
}

.question-container {
    padding: 40px;
}

.category-badge {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 20px;
    font-weight: 600;
}

#question-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
}

.options {
    margin: 30px 0;
}

.option {
    display: block;
    background: #f8f9fa;
    margin: 15px 0;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option input[type="radio"]:checked {
    accent-color: #4a90e2;
}

.option:has(input:checked) {
    background: #e8f4f8;
    border-color: #4a90e2;
}

.option-text {
    font-size: 1.1em;
    font-weight: 500;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

/* Página de Resultados */
.results-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.results-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.results-content {
    padding: 40px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.score-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.score-card:hover {
    transform: translateY(-3px);
}

.score-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-level {
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.baixo { background: #fee; color: #dc3545; }
.medio { background: #fff3cd; color: #856404; }
.alto { background: #d1edff; color: #0066cc; }

.recommendations {
    background: #e8f5e8;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.recommendation-item {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.recommendation-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .content {
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .frameworks {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .question-container {
        padding: 20px;
    }

    #question-text {
        font-size: 1.2em;
    }

    .option {
        padding: 15px;
    }
}