/* Estilos gerais */
:root {
    --primary-color: #1d4ed8;
    --secondary-color: #60a5fa;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --background-color: #f9fafb;
    --card-bg: #ffffff;
    --header-bg: #1d4ed8;
    --footer-bg: #1f2937;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.main-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #4b5563;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-badge {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro-card {
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.navigation-card {
    background-color: #ebf5ff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.nav-item {
    background-color: white;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    color: var(--text-color);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.nav-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.nav-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Seções específicas */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.subsection {
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #374151;
}

.topic {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.topic-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.data-box {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.data-box-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-box-content {
    font-size: 0.875rem;
}

/* Navegação entre páginas */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-details {
    font-size: 0.875rem;
    color: #d1d5db;
}

.copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Responsividade */
@media (min-width: 768px) {
    .main-title {
        font-size: 2.25rem;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav a {
        display: block;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.highlight-box {
    background-color: #ebf5ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Estilos para impressão */
@media print {
    header, footer, .navigation-card, .page-navigation {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background-color: #fff;
    }
    
    .card, .highlight-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
