/* Base Styles */
:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --background: #ffffff;
    --foreground: #111827;
    --muted: #6b7280;
    --muted-background: #f3f4f6;
    --border: #e5e7eb;
    --radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--foreground);
    line-height: 1.5;
    background-color: var(--background);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-description {
    font-size: 1.125rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 700px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn i {
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    color: black;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--muted-background);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    text-decoration: underline;
    color: var(--primary);
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(21, 128, 61, 0.8), rgba(34, 197, 94, 0.6));
    z-index: 10;
}

.hero-image {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

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

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.badge {
    display: inline-block;
    background-color: var(--accent);
    color: black;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Stats Section */
.stats {
    background-color: white;
    padding: 3rem 0;
}

.stats-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: white;
    box-shadow: var(--shadow);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: #dbeafe;
}

.stat-card:nth-child(1) i {
    color: #1d4ed8;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: #dcfce7;
}

.stat-card:nth-child(2) i {
    color: #15803d;
}

.stat-card:nth-child(3) .stat-icon {
    background-color: #fef3c7;
}

.stat-card:nth-child(3) i {
    color: #b45309;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: var(--muted);
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Features Section */
.features {
    background-color: var(--muted-background);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.feature-icon.blue {
    background-color: #dbeafe;
}

.feature-icon.blue i {
    color: #1d4ed8;
}

.feature-icon.green {
    background-color: #dcfce7;
}

.feature-icon.green i {
    color: #15803d;
}

.feature-icon.amber {
    background-color: #fef3c7;
}

.feature-icon.amber i {
    color: #b45309;
}

.feature-icon.red {
    background-color: #fee2e2;
}

.feature-icon.red i {
    color: #b91c1c;
}

.feature-icon.purple {
    background-color: #f3e8ff;
}

.feature-icon.purple i {
    color: #7e22ce;
}

.feature-icon.indigo {
    background-color: #e0e7ff;
}

.feature-icon.indigo i {
    color: #4338ca;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Benefits Section */
.benefits {
    background-color: white;
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.benefit-item i {
    color: var(--success);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.benefits-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
}

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

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--muted-background);
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.testimonial-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #e5e7eb;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
}

.author-location {
    font-size: 0.875rem;
    color: var(--muted);
}

.testimonial-text {
    color: var(--muted);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FAQ Section */
.faq {
    background-color: white;
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 768px;
    margin: 0 auto;
}

.faq-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.faq-question {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--muted);
}

/* CTA Section */
.cta {
    background-color: #1e3a8a;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .copyright {
        text-align: left;
    }
}

/* Quiz Styles */
.simulado-main {
    background-color: #f8fafc;
    padding: 2rem 0;
    flex: 1;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-intro {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.quiz-intro-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quiz-intro-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.quiz-question-number {
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.quiz-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background-color: var(--muted-background);
}

.quiz-option.selected {
    border-color: var(--primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.quiz-option input[type="radio"] {
    margin-right: 0.75rem;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.quiz-status {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Results Styles */
.results-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    margin: 0 auto 1rem;
}

.results-icon.success {
    background-color: #dcfce7;
}

.results-icon.success i {
    color: var(--success);
    font-size: 3rem;
}

.results-icon.error {
    background-color: #fee2e2;
}

.results-icon.error i {
    color: var(--danger);
    font-size: 3rem;
}

.results-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.results-score {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.results-score span {
    font-weight: 700;
}

.results-message {
    color: var(--muted);
    font-size: 0.875rem;
}

.results-progress {
    margin: 1.5rem 0;
}

.results-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.results-review {
    margin-top: 1.5rem;
}

.results-review-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.review-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: var(--muted-background);
}

.review-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

.review-status.correct {
    background-color: #dcfce7;
}

.review-status.correct i {
    color: var(--success);
    font-size: 0.75rem;
}

.review-status.incorrect {
    background-color: #fee2e2;
}

.review-status.incorrect i {
    color: var(--danger);
    font-size: 0.75rem;
}

.review-question-number {
    font-size: 0.875rem;
}

.review-content {
    padding: 1rem;
    display: none;
}

.review-content.active {
    display: block;
}

.review-question {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.review-answer {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.review-answer.correct {
    color: var(--success);
}

.review-answer.incorrect {
    color: var(--danger);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Histórico Styles */
.historico-main {
    background-color: #f8fafc;
    padding: 2rem 0;
    flex: 1;
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.historico-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto;
}

.historico-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: #dbeafe;
    margin: 0 auto 1rem;
}

.historico-empty-icon i {
    color: var(--primary);
    font-size: 2rem;
}

.historico-empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.historico-empty-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.historico-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.historico-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.historico-feature i {
    margin-bottom: 0.5rem;
}

.historico-feature-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.historico-feature-description {
    font-size: 0.75rem;
    color: var(--muted);
}

.stats-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.stat-value-small {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label-small {
    font-size: 0.75rem;
    color: var(--muted);
}

.historico-tabs {
    margin-bottom: 1.5rem;
}

.tabs-list {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.historico-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.historico-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    background-color: var(--muted-background);
    border-bottom: 1px solid var(--border);
}

.historico-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.historico-table tr:last-child td {
    border-bottom: none;
}

.badge-small {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-warning {
    background-color: #fef3c7;
    color: #b45309;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-indicator i {
    margin-right: 0.5rem;
}

.status-success {
    color: var(--success);
}

.status-danger {
    color: var(--danger);
}

@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: center;
    }
    
    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .historico-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}