/* Variáveis de cores em tons de azul suaves */
:root {
    --primary-color: #4a86e8;
    --primary-light: #7ba7ff;
    --primary-dark: #2a66c8;
    --secondary-color: #cfe2ff;
    --accent-color: #1e3a8a;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #f5f8ff;
    --card-color: #ffffff;
    --border-color: #e0e7ff;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --shadow: 0 4px 6px rgba(74, 134, 232, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Layout principal */
.container {
    display: flex;
    min-height: 100vh;
}

/* Menu Lateral */
.sidebar {
    width: 280px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    color: white;
    font-size: 2rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 300;
}

.menu {
    padding: 2rem 0;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin-bottom: 0.5rem;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.menu a i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.ferramenta-btn {
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.btn-destaque {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-destaque:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-destaque i {
    margin-right: 0.5rem;
}

/* Conteúdo Principal */
.content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

/* Seções */
.section {
    margin-bottom: 4rem;
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-dark);
}

.section h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Content Boxes */
.content-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.text-content {
    flex: 2;
    min-width: 300px;
}

.image-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    background-color: var(--secondary-color);
    border-radius: 8px;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem;
}

.placeholder-image i {
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}

/* Tabela de Comparação */
.comparison-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: rgba(207, 226, 255, 0.2);
}

/* Cards de Dados */
.data-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.data-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.data-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.data-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.refresh-container {
    text-align: center;
    margin-top: 1rem;
}

.btn-refresh {
    background-color: var(--primary-light);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-refresh i {
    margin-right: 0.5rem;
}

/* Gráficos */
.chart-container {
    width: 100%;
    margin-bottom: 2rem;
}

.chart-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.period-selector {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

.chart-wrapper {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 400px;
}

/* Glossário */
.glossary-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glossary-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.glossary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(74, 134, 232, 0.15);
}

.glossary-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.glossary-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .content {
        margin-left: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 200;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-box {
        flex-direction: column;
    }
    
    .image-box {
        order: -1;
    }
    
    .data-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .glossary-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .data-value {
        font-size: 1.5rem;
    }
}

/* Adicionar botão de menu para mobile */
.menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }
}
