/* ============================================
   BOAVENTURA GROUP - GESTÃO INTEGRADA
   Sistema de Gestão Financeira e Operacional
   Identidade Visual Corporativa
   ============================================ */

/* Variáveis de Cores */
:root {
    --azul-marinho: #002366;
    --azul-marinho-light: #003399;
    --cinza-executivo: #4A4A4A;
    --cinza-claro: #6B7280;
    --branco-neve: #FFFFFF;
    --verde-esmeralda: #2E8B57;
    --verde-claro: #34D399;
    --amarelo-atencao: #FFA500;
    --amarelo-claro: #FBBF24;
    --vermelho-critico: #DC3545;
    --vermelho-claro: #F87171;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--cinza-executivo);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   HEADER - Navegação Principal
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-marinho-light) 100%);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--branco-neve);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-img-container {
    background: var(--branco-neve);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-img-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.12);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo i {
    font-size: 1.8rem;
    color: var(--verde-esmeralda);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--branco-neve);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--branco-neve);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 350px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 35, 102, 0.85) 0%,
        rgba(0, 51, 153, 0.75) 50%,
        rgba(46, 139, 87, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--branco-neve);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main content adjustment when hero is present */
.main-with-hero {
    padding-top: 2rem !important;
    margin-top: 0 !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    min-height: calc(100vh - 70px);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--azul-marinho);
    color: var(--branco-neve);
}

.btn-primary:hover {
    background: var(--azul-marinho-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--verde-esmeralda);
    color: var(--branco-neve);
}

.btn-success:hover {
    background: #247A4A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--cinza-claro);
    color: var(--branco-neve);
}

.btn-secondary:hover {
    background: var(--cinza-executivo);
}

.btn-warning {
    background: var(--amarelo-atencao);
    color: var(--branco-neve);
}

.btn-danger {
    background: var(--vermelho-critico);
    color: var(--branco-neve);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================
   ALERTS SECTION
   ============================================ */
.alerts-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--vermelho-critico);
    display: none;
}

.alerts-section.has-alerts {
    display: block;
}

.alerts-section h3 {
    color: var(--vermelho-critico);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-item.critical {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--vermelho-critico);
}

.alert-item.warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--amarelo-atencao);
}

.alert-item i {
    font-size: 1.2rem;
}

.alert-item.critical i {
    color: var(--vermelho-critico);
}

.alert-item.warning i {
    color: var(--amarelo-atencao);
}

/* ============================================
   KPI CARDS
   ============================================ */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.kpi-card.clickable {
    cursor: pointer;
}

.kpi-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.kpi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.kpi-header i {
    font-size: 1.5rem;
    color: var(--azul-marinho);
    background: rgba(0, 35, 102, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.kpi-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-marinho);
}

.kpi-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.kpi-item.highlight {
    background: var(--bg-light);
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 0 0 16px 16px;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--cinza-claro);
    font-weight: 500;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cinza-executivo);
}

.kpi-value.positive {
    color: var(--verde-esmeralda);
}

.kpi-value.negative {
    color: var(--vermelho-critico);
}

.kpi-value.warning {
    color: var(--amarelo-atencao);
}

/* ============================================
   FINANCE BANNER
   ============================================ */
.finance-image-section {
    margin-bottom: 2rem;
}

.finance-banner {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-marinho-light) 50%, var(--verde-esmeralda) 100%);
    border-radius: 16px;
    padding: 2rem;
    color: var(--branco-neve);
    box-shadow: var(--shadow-lg);
}

.finance-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.finance-banner-content > i {
    font-size: 4rem;
    opacity: 0.9;
}

.finance-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.finance-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.finance-stats {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CHARTS SECTION
   ============================================ */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chart-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-marinho);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-wrapper {
    height: 300px;
    position: relative;
}

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

.mini-chart {
    text-align: center;
}

.mini-chart h4 {
    font-size: 0.9rem;
    color: var(--cinza-claro);
    margin-bottom: 0.75rem;
}

.mini-chart canvas {
    max-height: 180px;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-content.modal-xlarge {
    max-width: 1200px;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--azul-marinho);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--cinza-claro);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: var(--vermelho-critico);
    color: var(--branco-neve);
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cinza-executivo);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-marinho);
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: var(--azul-marinho);
    color: var(--branco-neve);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pendente {
    background: rgba(255, 165, 0, 0.15);
    color: var(--amarelo-atencao);
}

.status-badge.pago {
    background: rgba(46, 139, 87, 0.15);
    color: var(--verde-esmeralda);
}

.status-badge.atrasado {
    background: rgba(220, 53, 69, 0.15);
    color: var(--vermelho-critico);
}

.status-badge.critico {
    background: rgba(220, 53, 69, 0.15);
    color: var(--vermelho-critico);
}

.status-badge.atencao {
    background: rgba(255, 165, 0, 0.15);
    color: var(--amarelo-atencao);
}

.status-badge.normal {
    background: rgba(46, 139, 87, 0.15);
    color: var(--verde-esmeralda);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress-container {
    width: 100%;
    max-width: 150px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.green {
    background: var(--verde-esmeralda);
}

.progress-fill.yellow {
    background: var(--amarelo-atencao);
}

.progress-fill.red {
    background: var(--vermelho-critico);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--cinza-claro);
}

/* ============================================
   DISPLAY CARDS (para indicadores individuais)
   ============================================ */
.display-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--border-color);
}

.display-card.success {
    border-left-color: var(--verde-esmeralda);
    background: rgba(46, 139, 87, 0.05);
}

.display-card.warning {
    border-left-color: var(--amarelo-atencao);
    background: rgba(255, 165, 0, 0.05);
}

.display-card.danger {
    border-left-color: var(--vermelho-critico);
    background: rgba(220, 53, 69, 0.05);
}

.display-card-label {
    font-size: 0.85rem;
    color: var(--cinza-claro);
    margin-bottom: 0.5rem;
}

.display-card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.display-card.success .display-card-value {
    color: var(--verde-esmeralda);
}

.display-card.warning .display-card-value {
    color: var(--amarelo-atencao);
}

.display-card.danger .display-card-value {
    color: var(--vermelho-critico);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--azul-marinho);
}

.page-title i {
    font-size: 1.5rem;
    color: var(--azul-marinho);
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ============================================
   SECTION CARDS
   ============================================ */
.section-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.section-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-marinho);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   INVENTORY CARDS
   ============================================ */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.inventory-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.inventory-card:hover {
    box-shadow: var(--shadow-md);
}

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

.inventory-sku {
    font-size: 0.85rem;
    color: var(--azul-marinho);
    font-weight: 600;
    background: rgba(0, 35, 102, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.inventory-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cinza-executivo);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.inventory-supplier {
    font-size: 0.85rem;
    color: var(--cinza-claro);
    margin-bottom: 1rem;
}

.inventory-progress {
    margin-top: 1rem;
}

.inventory-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-container {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.timeline {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.timeline-item {
    min-width: 100px;
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item.has-events {
    border-color: var(--azul-marinho);
}

.timeline-item.today {
    background: var(--azul-marinho);
    color: var(--branco-neve);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-amount {
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-amount.entrada {
    color: var(--verde-esmeralda);
}

.timeline-amount.saida {
    color: var(--vermelho-critico);
}

/* ============================================
   SCENARIO TABS
   ============================================ */
.scenario-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 10px;
    width: fit-content;
}

.scenario-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cinza-claro);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.scenario-tab:hover {
    background: var(--bg-card);
}

.scenario-tab.active {
    background: var(--azul-marinho);
    color: var(--branco-neve);
}

/* ============================================
   FILTERS
   ============================================ */
.filters-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

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

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cinza-claro);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ============================================
   SALDO DISPLAY
   ============================================ */
.saldo-display {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--verde-esmeralda) 100%);
    border-radius: 16px;
    padding: 2rem;
    color: var(--branco-neve);
    text-align: center;
    margin-bottom: 2rem;
}

.saldo-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.saldo-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.saldo-update {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--azul-marinho);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--cinza-claro);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cinza-executivo);
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--azul-marinho);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   NOTIFICATIONS/TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: var(--branco-neve);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background: var(--verde-esmeralda);
}

.toast.error {
    background: var(--vermelho-critico);
}

.toast.warning {
    background: var(--amarelo-atencao);
}

.toast.info {
    background: var(--azul-marinho);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .finance-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .finance-stats {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat {
        padding: 1rem 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 140px 1rem 1rem;
    }
    
    .main-with-hero {
        padding-top: 1.5rem !important;
    }
    
    .hero-section {
        height: 280px;
        margin-top: 120px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stat {
        padding: 0.75rem 1rem;
        min-width: 90px;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .kpi-section {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .saldo-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--verde-esmeralda); }
.text-danger { color: var(--vermelho-critico); }
.text-warning { color: var(--amarelo-atencao); }
.text-muted { color: var(--cinza-claro); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
