/* Estilos gerais */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #333;
    --light-bg: #f3f4f6;
    --white: #fff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-800: #1f2937;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
}

* {
    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(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 48px;
    margin-right: 1rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.875rem;
}

.header-info {
    display: none;
}

/* Layout principal */
.main-container {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--gray-100);
    padding: 1rem;
    border-right: 1px solid var(--gray-300);
    flex-shrink: 0;
}

.sidebar ul {
    list-style: none;
}

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

.sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.sidebar a:hover {
    background-color: var(--gray-200);
}

.sidebar a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Conteúdo principal */
.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Seções */
.section {
    display: none;
}

.section.active {
    display: block;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Caixas de informação */
.info-box {
    background-color: var(--accent-color);
    background-opacity: 0.1;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    background-color: #dbeafe;
}

.yellow-box {
    background-color: #fef3c7;
}

.info-box h3 {
    color: var(--primary-color);
}

.info-box p {
    margin-bottom: 1rem;
}

.info-box ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.card p {
    margin-bottom: 1rem;
}

/* Botões */
button, .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

button:hover, .download-btn:hover {
    background-color: var(--primary-color);
}

.download-btn svg {
    margin-right: 0.5rem;
}

/* Lista de dados */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.data-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.data-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.data-item-content {
    margin-bottom: 1rem;
}

.data-item-footer {
    display: flex;
    justify-content: flex-end;
}

/* Tags */
.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

.tag.blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag.green {
    background-color: #d1fae5;
    color: #065f46;
}

/* Footer */
footer {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsividade */
@media (min-width: 768px) {
    .header-info {
        display: block;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

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

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-300);
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar li {
        margin-bottom: 0;
    }
}
