:root {
    --primary-color: #00b38c;
    --secondary-color: #3ddefa;
    --light-color: #8df1ff;
    --ultra-light-color: #e0fcff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(135deg, var(--ultra-light-color), var(--white));
    --header-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --progress-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
   --risk-low: #10b981;
    --risk-moderate: #f59e0b;
    --risk-high: #fb923c;
    --risk-critical: #ef4444;
}

[data-theme="dark"] {
    --primary-color: #00b38c;
    --secondary-color: #3ddefa;
    --light-color: #007a60;
    --ultra-light-color: #1e293b;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --white: #0f172a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b);
    --header-gradient: linear-gradient(135deg,#00277a, #0a91ff);
    --progress-gradient: linear-gradient(90deg, #00b38c, #3ddefa);
    --border-color: #334155;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --risk-low: #059669;
    --risk-moderate: #d97706;
    --risk-high: #ea580c;
    --risk-critical: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

header {
    text-align: center;
    padding: 40px 20px; /* Ajuste o padding para dar espaço interno */
    background: var(--header-gradient);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden; /* Garante que nada saia do header */
}

.header-image {
    width: 100%; /* Largura responsiva */
    max-width: 100%; /* Garante que a imagem não ultrapasse o container */
    height: auto; /* Mantém a proporção da imagem */
    border-radius: 10px; /* Opcional: arredonda as bordas da imagem */
    margin-bottom: 20px; /* Espaçamento abaixo da imagem */
    display: block; /* Garante que a imagem se comporte como bloco */
    margin-left: auto; /* Centraliza a imagem horizontalmente */
    margin-right: auto;
}

@media (min-width: 768px) {
    .header-image {
        max-width: 600px; /* Ajuste este valor para desktops */
    }
}

@media (max-width: 767px) {
    .header-image {
        max-width: 100%; /* Ajuste este valor para dispositivos móveis */
    }
}


 h1 {
        font-size: 24px;
        line-height: 1.3; /* Espaçamento menor para mobile */
        margin-bottom: 16px; /* Margem inferior */
    }

    p {
        font-size: 16px;
        line-height: 1.5; /* Espaçamento confortável para leitura */
        margin-bottom: 15px; /* Margem inferior */
        color: var(--text-light);
    }
    
 
    /* Tablet (768px ou mais) */
    @media (min-width: 768px) {
        h1 {
            font-size: 32px;
            line-height: 1.4; /* Ajuste de espaçamento para tablet */
        }

        p {
            font-size: 18px;
            line-height: 1.6; /* Ajuste de espaçamento para tablet */
        }
    }

    /* Desktop (1024px ou mais) */
    @media (min-width: 1024px) {
        h1 {
            font-size: 40px;
            line-height: 1.5; /* Ajuste de espaçamento para desktop */
        }

        p {
            font-size: 20px;
            line-height: 1.7; /* Ajuste de espaçamento para desktop */
        }
    }



h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}



.section-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.section-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn i {
    margin-left: 8px;
}

.btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn2 i {
    margin-left: 8px;
}

.btn-primary {
    background: var(--header-gradient);
    color: #FFFFFF;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

.btn-secondary:hover {
    background-color: var(--ultra-light-color);
    transform: translateY(-2px);
}

.btn-wide {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn i.fa-arrow-left {
    margin-right: 8px;
    margin-left: 0;
}


/* Progress Bar */
#progress-bar {
    height: 8px;
    background-color: var(--ultra-light-color);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

#progress {
    height: 100%;
    background: var(--progress-gradient);
    width: 0;
    transition: width 0.5s ease;
}

/* Notes */
.note {
    background-color: var(--ultra-light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.note-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.note-title i {
    margin-right: 10px;
}

/* Intro Section */
.intro-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#start-test {
    margin-top: 30px;
}

/* Questions */
.questions-container {
    margin-bottom: 30px;
}

.question-card {
    background-color: var(--gray-100);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
}

.question-card.unanswered {
    border: 2px dashed var(--secondary-color);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0 rgba(61, 222, 250, 0.4);
    }
    50% {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 10px rgba(0, 179, 140, 0);
    }
    100% {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0 rgba(61, 222, 250, 0);
    }
}

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

.question-number {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    font-size: 1.9rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
}

.rating-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rating-option {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option label {
    display: block;
    padding: 10px;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-option label:hover {
    border-color: var(--secondary-color);
    background-color: var(--ultra-light-color);
}

.rating-option input[type="radio"]:checked + label {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    font-weight: bold;
}

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

/* Results */
.results-summary {
    text-align: center;
    padding: 30px;
    background-color: var(--gray-100);
    border-radius: 10px;
    margin-bottom: 30px;
}

.score-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#total-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.score-label {
    font-size: 1rem;
    color: var(--text-light);
}

.risk-level {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.risk-level-details {
    flex: 1;
}

.risk-indicator {
    height: 20px;
    background: linear-gradient(to right, var(--risk-low), var(--risk-moderate), var(--risk-high), var(--risk-critical));
    border-radius: 10px;
    position: relative;
    margin: 15px 0;
}

.risk-marker {
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    transition: left 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-circle {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.risk-marker::after {
    content: "";
    width: 2px;
    height: 15px;
    background-color: var(--primary-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 179, 140, 0.7);
    }
    
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 179, 140, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 179, 140, 0);
    }
}

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

.risk-assessment {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.results-details {
    margin-bottom: 40px;
}

.attention-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.attention-item {
    background-color: var(--gray-100);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

.attention-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.attention-label i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.recommendations {
    margin-bottom: 30px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--gray-100);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.recommendation-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    margin-right: 15px;
}

.recommendation-text h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.recommendation-text p {
    margin: 0;
}

/* Guide Offer */
.offer-container {
    display: flex;
    background-color: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.offer-image {
    flex: 1;
    min-width: 200px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-text {
    flex: 2;
    padding: 20px;
}

.offer-features {
    list-style-type: none;
    margin: 15px 0;
}

.offer-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.offer-features i {
    color: var(--success-color);
    margin-right: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Audio Player */
.audio-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.audio-toggle:hover {
    transform: rotate(30deg);
}

.audio-modal {
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    width: 250px;
}

.audio-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.audio-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-title .close-btn {
    cursor: pointer;
    color: var(--text-light);
}

.audio-title .close-btn:hover {
    color: var(--error-color);
}

.audio-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.audio-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.audio-btn i {
    margin-right: 5px;
}

.audio-controls {
    display: none;
    margin-top: 10px;
}

.audio-controls.active {
    display: block;
}

.audio-progress {
    width: 100%;
    height: 5px;
    background-color: var(--ultra-light-color);
    border-radius: 3px;
    margin: 10px 0;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    width: 0;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.audio-play-pause {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-container {
        padding: 20px;
    }
    
    .rating-options {
        flex-direction: column;
    }
    
    .offer-container {
        flex-direction: column;
    }
    
    .offer-image {
        min-height: 200px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}