/* Estilos gerais */
:root {
    --primary-color: #4a6fa5;
    --primary-dark: #355285;
    --primary-light: #7499d6;
    --secondary-color: #e55c30;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #777;
    --lightest-gray: #f5f7fa;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #495057;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--lightest-gray);
    padding-bottom: 50px;
}

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

.hidden {
    display: none !important;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

/* Cabeçalho */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

header h1 {
    font-weight: 600;
    font-size: 2.5rem;
    text-align: center;
}

.flag {
    font-size: 2rem;
    vertical-align: middle;
}

/* Seção de introdução */
#intro h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.description {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.scientific-basis {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.scientific-basis h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.scientific-basis p {
    margin-bottom: 15px;
}

.science-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.science-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.science-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Instruções */
.instructions {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.instructions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.scale-explanation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scale-item {
    display: flex;
    align-items: center;
}

.scale-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
}

.important-note {
    margin-top: 15px;
    font-style: italic;
}

/* Botões e ações */
.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.btn-primary {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    padding: 10px 25px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
}

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

.btn-tertiary {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-tertiary:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.save-load-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
}

/* Barra de progresso */
#progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

#progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Questionário */
#questionnaire {
    position: relative;
}

#category-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

#current-category {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.category-index {
    background-color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.question {
    margin-bottom: 30px;
}

.question-text {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.option {
    padding: 15px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: var(--light-gray);
}

.option.selected {
    background-color: #e8f0fe;
    border-left: 4px solid var(--primary-color);
}

.option input[type="radio"] {
    margin-right: 12px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Resultados */
#results h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--light-text);
    margin-bottom: 30px;
}

#results-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
}

.overall-score {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
}

.overall-score h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.score-meter {
    height: 25px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

#score-fill {
    height: 100%;
    background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
    transition: width 0.5s ease;
}

#overall-score-text {
    margin-bottom: 15px;
    font-weight: 500;
}

#overall-interpretation {
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detailed-results {
    margin-bottom: 30px;
}

.detailed-results h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.category-result {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-score {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.score-low {
    background-color: #d4edda;
    color: #155724;
}

.score-medium {
    background-color: #fff3cd;
    color: #856404;
}

.score-high {
    background-color: #f8d7da;
    color: #721c24;
}

.category-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.category-description {
    margin-bottom: 10px;
}

.category-interpretation {
    padding: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    font-style: italic;
}

.recommendations {
    margin-bottom: 30px;
}

.recommendations h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recommendation-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-light);
}

.recommendation-category {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recommendation-list {
    list-style: none;
}

.recommendation-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.recommendation-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.next-steps {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--lightest-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.next-steps h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.next-steps ul {
    padding-left: 25px;
    margin-top: 10px;
}

.next-steps li {
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Rodapé */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    #results-overview {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    
    .scale-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scale-number {
        margin-bottom: 5px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
}