/* ========================================
   CSS RESET E BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   DESIGN TOKENS (VARIÁVEIS CSS)
======================================== */
:root {
    /* Cores primárias */
    --primary-blue: #667eea;
    --primary-purple: #764ba2;
    --accent-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    
    /* Cores neutras */
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Cores de estado */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Tipografia */
    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50px;
    
    /* Sombras */
    --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.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-fixed: 200;
    --z-modal: 1000;
    --z-popover: 1010;
    --z-tooltip: 1020;
}

/* ========================================
   ESTILOS BASE
======================================== */
body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    background: var(--accent-gradient);
    color: var(--gray-800);
    min-height: 100vh;
    transition: background var(--transition-slow), color var(--transition-slow);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%), url('images/background_01.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    background:linear-gradient(135deg, rgba(40, 228, 140, 0.8) 0%, rgba(244, 26, 255, 0.8) 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text2 {
    font-size: 1.2rem;
    color: #1577ff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--primary-blue);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-8);
    text-align: center;
    transition: var(--transition-all);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    background: rgba(199, 255, 207, 0.2);
    color: var(--gray-800, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--white);
    line-height: var(--line-height-relaxed);
    max-width: 300px;
    margin: 0 auto;
    opacity: 0.8;
    font-style: italic;
    transition: var(--transition-normal);
}

/* Data Importance Section */
.data-importance {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%), url('images/Industry.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.data-importance h2 {
    font-size: 2.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


.importance-item {
    padding: var(--spacing-6);
    background: var(--card-gradient);
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.importance-item:hover {
    transform: scale(1.05);
}

.importance-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.importance-item p {
    opacity: 0.9;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   BOTÕES - TEMA PADRÃO E CORREÇÕES
======================================== */

/* Botões no tema padrão (Noite de Verão) */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer em {
    font-style: italic;
    opacity: 0.7;
}

/* Legacy Table Styles for Reports */
table {
    width: 100%;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

table thead th {
    padding: 1rem;
    font-weight: 600;
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

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

table.colored {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    display: inline;
    font-weight: 700;
}

.gradient-text2 {
    background: linear-gradient(135deg, #6a82fb 0%, #fc5c7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-weight: 700;
}

.gradient-text3 {
    background: linear-gradient(135deg, #40e0d0 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-weight: 700;
}


.solid-text1 {
    color: #3a57d7;
    font-weight: 700;
}
.solid-text2 {
    color: #e2df29;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Legacy Container */
.container {
    column-count: 2;
    column-gap: 20px;
    column-rule: 2px solid rgba(255,255,255,0.3);
}

/* ========================================
   TEMA CAFÉ - TONS DE MARROM
======================================== */

/* Tema Café aplicado ao body */
body.tema-cafe {
    background: linear-gradient(135deg, #8B4513 0%, #e2d1a6 100%);
    color: #2F1B14;
}

/* Header tema café */
body.tema-cafe .header {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%), url('images/background_01.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F5DEB3;
}

body.tema-cafe .header h1 {
    color: #F5DEB3;
    text-shadow: 2px 2px 4px rgba(47, 27, 20, 0.5);
}

body.tema_cafe .tagline {
    color: #DEB887;
}

/* Hero Section tema café */
body.tema-cafe .hero-section {
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.9) 0%, rgba(210, 105, 30, 0.9) 100%);
    border: 2px solid #8B4513;
}

body.tema-cafe .hero-section h2 {
    color: #F5DEB3;
    text-shadow: 2px 2px 4px rgba(47, 27, 20, 0.3);
}

body.tema_cafe .hero-text {
    color: #F5DEB3;
}

/* Feature Cards tema café */
body.tema-cafe .feature-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.9) 100%);
    border: 2px solid #8B4513;
    color: #F5DEB3;
}

body.tema-cafe .feature-card h3 {
    color: #F5DEB3;
}


body.tema-cafe .feature-card p {
    color: #ffffff;
}


/* Data Importance tema café */
body.tema-cafe .data-importance {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
    border: 2px solid #8B4513;
    color: #F5DEB3;
}

body.tema_cafe .data-importance h2 {
    color: #F5DEB3;
}

body.tema_cafe .importance-item {
    background: rgba(160, 82, 45, 0.7);
    border: 1px solid #8B4513;
    color: #F5DEB3;
}

body.tema_cafe .importance-item strong {
    color: #DEB887;
}

/* CTA Section tema café */
body.tema-cafe .cta-section {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.9) 100%);
    border: 2px solid #8B4513;
    color: #F5DEB3;
}

body.tema_cafe .cta-section h2 {
    color: #F5DEB3;
}

/* Buttons tema café */
body.tema-cafe .btn {
    border: 2px solid #f1d3bd;
    color: #F5DEB3;
    /* background: rgba(139, 69, 19, 0.8); */
}

body.tema-cafe .btn-primary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-color: #dabb9d;
}

body.tema-cafe .btn-primary:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

body.tema_cafe .btn-secondary {
    background: linear-gradient(135deg, #654321 0%, #8B4513 20%);
    border-color: #8B4513;
}

body.tema_cafe .btn-secondary:hover {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}



/* Footer tema café */
body.tema-cafe .footer {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
    color: #F5DEB3;
}

body.tema_cafe .footer p {
    color: #DEB887;
}

body.tema_cafe .footer em {
    color: #F5DEB3;
}

/* Headings tema café */
body.tema-cafe .h2 {
    color: #F5DEB3;
    text-shadow: 1px 1px 2px rgba(47, 27, 20, 0.3);
}

body.tema-cafe .h3 {
    color: #F5DEB3;
    text-shadow: 1px 1px 2px rgba(47, 27, 20, 0.3);
}

/* Tables tema café */
body.tema-cafe table {
    background: rgba(245, 222, 179, 0.9);
    color: #2F1B14;
}

body.tema_cafe table th {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #F5DEB3;
}

body.tema_cafe table td {
    border-color: #8B4513;
}

body.tema_cafe table tr:nth-child(even) {
    background: rgba(222, 184, 135, 0.5);
}

body.tema_cafe table tr:hover {
    background: rgba(210, 105, 30, 0.3);
}

/* Dashboard e Cards tema café */
body.tema-cafe .main-content {
    background: rgba(245, 222, 179, 0.1);
}

/* Dashboards no tema café */
body.tema-cafe div[style*="background: rgba(255, 255, 255, 0.95)"] {
    background: rgba(245, 222, 179, 0.95) !important;
    border: 2px solid #8B4513 !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #3498db"] {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #e74c3c"] {
    background: linear-gradient(135deg, #CD853F 0%, #D2691E 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #27ae60"] {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #9b59b6"] {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #f39c12"] {
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #1abc9c"] {
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%) !important;
}

body.tema_cafe div[style*="background: linear-gradient(135deg, #34495e"] {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%) !important;
}

/* Cores de texto nos dashboards tema café */
body.tema_cafe div[style*="color: #2c3e50"] {
    color: #2F1B14 !important;
}

body.tema_cafe h3[style*="color: #2c3e50"] {
    color: #2F1B14 !important;
}

body.tema_cafe h4[style*="color: #2c3e50"] {
    color: #2F1B14 !important;
}

body.tema_cafe h5[style*="color: #2c3e50"] {
    color: #2F1B14 !important;
}

/* Gauge e medidores tema café */
body.tema_cafe div[style*="background: conic-gradient(#3498db"] {
    background: conic-gradient(#8B4513 0deg 180deg, #F5DEB3 180deg 360deg) !important;
}

body.tema_cafe div[style*="background: conic-gradient(#e74c3c"] {
    background: conic-gradient(#CD853F 0deg 175deg, #F5DEB3 175deg 360deg) !important;
}

body.tema_cafe span[style*="color: #3498db"] {
    color: #8B4513 !important;
}

body.tema_cafe span[style*="color: #e74c3c"] {
    color: #CD853F !important;
}

/* Barras de comparação tema café */
body.tema_cafe div[style*="background: #3498db"] {
    background: #8B4513 !important;
}

/* Responsividade do botão de tema */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Gradientes específicos para o tema café */
body.tema_cafe .gradient-text {
    background: linear-gradient(135deg, #F5DEB3 0%, #DEB887 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.tema_cafe .solid-text1 {
    color: #F5DEB3;
    text-shadow: 2px 2px 4px rgba(47, 27, 20, 0.3);
}

body.tema_cafe .solid-text2 {
    color: #DEB887;
    text-shadow: 2px 2px 4px rgba(47, 27, 20, 0.3);
}

/* Botão de alternância de tema */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

body.tema_cafe .theme-toggle {
    background: rgba(101, 67, 33, 0.95);
    border-color: rgba(139, 69, 19, 0.7);
    color: #F5DEB3;
}

body.tema_cafe .theme-toggle:hover {
    background: rgba(139, 69, 19, 0.9);
    border-color: rgba(160, 82, 45, 0.8);
    color: #FFFFFF;
}

/* Ícones do tema */
.theme-icon {
    font-size: 1.2rem;
}

/* Animação de transição de tema */
body {
    transition: background 0.5s ease, color 0.5s ease;
}

.header, .hero-section, .feature-card, .data-importance, .cta-section, .footer {
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.btn {
    transition: all 0.3s ease;
}

/* ========================================
   TEMA EMPRESARIAL - TONS SÓBRIOS E MODERNOS
======================================== */

/* Tema Empresarial aplicado ao body */
body.tema-empresarial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
}

/* Header tema empresarial */
body.tema-empresarial .header {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.95) 0%, rgba(73, 80, 87, 0.95) 100%), url('images/background_01.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    border-bottom: 3px solid #007bff;
}

body.tema-empresarial .header h1 {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.tema-empresarial .tagline {
    color: #adb5bd;
}

/* Hero Section tema empresarial */
body.tema-empresarial .hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.tema-empresarial .hero-section h2 {
    color: #343a40;
    text-shadow: none;
}

body.tema-empresarial .hero-section .gradient-text {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.tema-empresarial .hero-text {
    color: #495057;
}

body.tema-empresarial .solid-text1 {
    color: #007bff;
    font-weight: 600;
}

body.tema-empresarial .solid-text2 {
    color: #6c757d;
    font-weight: 600;
}

/* Feature Cards tema empresarial */
body.tema-empresarial .feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid #dee2e6;
    color: #343a40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.tema-empresarial .feature-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

body.tema-empresarial .feature-card h3 {
    color: #007bff;
}




body.tema-empresarial .feature-card p {
    color: var(--black);
}



/* Data Importance tema empresarial */
body.tema-empresarial .data-importance {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid #dee2e6;
    color: #343a40;
}

body.tema-empresarial .data-importance h2 {
    color: #343a40;
}

body.tema-empresarial .importance-item {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid #dee2e6;
    color: #495057;
}

body.tema-empresarial .importance-item strong {
    color: #007bff;
}

/* CTA Section tema empresarial */
body.tema-empresarial .cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 1px solid #dee2e6;
    color: #343a40;
}

body.tema-empresarial .cta-section h2 {
    color: #343a40;
}

/* Buttons tema empresarial */
body.tema-empresarial .btn {
    border: 2px solid #34495e;
    color: #ffffff;
    /* background: rgba(52, 73, 94, 0.8); */
}

body.tema-empresarial .btn-primary {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #ffffff;
}

body.tema-empresarial .btn-primary:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

body.tema-empresarial .btn-secondary {
    /* background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); */
    border-color: #34495e;
}

body.tema-empresarial .btn-secondary:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

/* Footer tema empresarial */
body.tema-empresarial .footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: #ffffff;
    border-top: 3px solid #007bff;
}

body.tema-empresarial .footer p {
    color: #adb5bd;
}

body.tema-empresarial .footer em {
    color: #ffffff;
}

/* Headings tema empresarial */
body.tema-empresarial .h2 {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.tema-empresarial .h3 {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tables tema empresarial */
body.tema-empresarial table {
    background: rgba(255, 255, 255, 0.95);
    color: #212529;
    border: 1px solid #dee2e6;
}

body.tema-empresarial table th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: #ffffff;
    border-color: #dee2e6;
}

body.tema-empresarial table td {
    border-color: #dee2e6;
}

body.tema-empresarial table tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

body.tema-empresarial table tr:hover {
    background: rgba(007, 123, 255, 0.1);
}

/* Dashboard e Cards tema empresarial */
body.tema-empresarial .main-content {
    background: rgba(248, 249, 250, 0.3);
}

/* Dashboards no tema empresarial */
body.tema-empresarial div[style*="background: rgba(255, 255, 255, 0.95)"] {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #3e3e3e !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #3498db"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #e74c3c"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #27ae60"] {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #9b59b6"] {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #f39c12"] {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #1abc9c"] {
    background: linear-gradient(135deg, #20c997 0%, #16a085 100%) !important;
}

body.tema-empresarial div[style*="background: linear-gradient(135deg, #34495e"] {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
}

/* Cores de texto nos dashboards tema empresarial */
body.tema-empresarial div[style*="color: #2c3e50"] {
    color: #343a40 !important;
}

body.tema-empresarial h3[style*="color: #2c3e50"] {
    color: #343a40 !important;
}

body.tema-empresarial h4[style*="color: #2c3e50"] {
    color: #343a40 !important;
}

body.tema-empresarial h5[style*="color: #2c3e50"] {
    color: #343a40 !important;
}

/* Gauge e medidores tema empresarial */
body.tema-empresarial div[style*="background: conic-gradient(#3498db"] {
    background: conic-gradient(#007bff 0deg 180deg, #e9ecef 180deg 360deg) !important;
}

body.tema-empresarial div[style*="background: conic-gradient(#e74c3c"] {
    background: conic-gradient(#dc3545 0deg 175deg, #e9ecef 175deg 360deg) !important;
}

body.tema-empresarial span[style*="color: #3498db"] {
    color: #007bff !important;
}

body.tema-empresarial span[style*="color: #e74c3c"] {
    color: #dc3545 !important;
}

/* Barras de comparação tema empresarial */
body.tema-empresarial div[style*="background: #3498db"] {
    background: #007bff !important;
}

/* Bordas e contornos tema empresarial */
body.tema-empresarial div[style*="border: 2px solid #34495e"] {
    border: 1px solid #dee2e6 !important;
}

body.tema-empresarial div[style*="background: rgba(52, 73, 94, 0.1)"] {
    background: rgba(248, 249, 250, 0.8) !important;
}

/* Botão de tema empresarial */
body.tema-empresarial .theme-toggle {
    background: rgba(248, 249, 250, 0.98);
    border: 2px solid rgba(0, 123, 255, 0.3);
    color: #212529;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

body.tema-empresarial .theme-toggle:hover {
    background: rgba(0, 123, 255, 0.9);
    border-color: rgba(0, 123, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}



/* ========================================
   SISTEMA DE FILTRO DE MESES
======================================== */

/* Container principal dos filtros - posicionado logo abaixo do header */
.filters-container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 100;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 18px 25px;
    border: none;
    border-bottom: 3px solid rgba(102, 126, 234, 0.6);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    margin: 0;
    width: 100%;
}

/* Container do filtro de meses */
.month-filter-container {
    position: relative;
    z-index: 99;
}

/* Container do filtro de combustível zero */
.zero-filter-container {
    position: relative;
    z-index: 99;
}

/* Estilos base para toggles de filtro */
.month-filter-toggle,
.zero-filter-toggle {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-decoration: none;
    justify-content: space-between;
    min-width: 160px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.month-filter-toggle:hover,
.zero-filter-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    color: #1a202c;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    border-color: rgba(102, 126, 234, 0.6);
}

.month-filter-toggle.active,
.zero-filter-toggle.active {
    background: rgba(102, 126, 234, 0.95);
    border-color: rgba(102, 126, 234, 0.8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Dropdowns dos filtros */
.month-filter-dropdown,
.zero-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.99);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    min-width: 300px;
    max-height: 420px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.month-filter-dropdown.visible,
.zero-filter-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Header dos dropdowns */
.filter-header {
    padding: 18px 25px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.08);
    border-radius: 15px 15px 0 0;
}

.filter-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 15px;
}

.filter-options {
    padding: 8px 0;
}

/* Opções dos filtros */
.filter-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 4px solid transparent;
}

.filter-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: rgba(102, 126, 234, 0.6);
    color: #1a202c;
    transform: translateX(3px);
}

.filter-option.active {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
    font-weight: 700;
    color: #1a202c;
}

.filter-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #667eea;
}

.filter-name {
    flex: 1;
    font-size: 15px;
}

.filter-check {
    color: #48bb78;
    font-weight: bold;
    font-size: 14px;
}

.filter-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.month-filter-toggle.active .filter-dropdown-arrow,
.zero-filter-toggle.active .filter-dropdown-arrow {
    transform: rotate(180deg);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .month-filter-toggle,
    .zero-filter-toggle {
        min-width: 200px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .month-filter-dropdown,
    .zero-filter-dropdown {
        min-width: 250px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .month-filter-dropdown.visible,
    .zero-filter-dropdown.visible {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .filters-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .month-filter-toggle,
    .zero-filter-toggle {
        min-width: 180px;
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .month-filter-dropdown,
    .zero-filter-dropdown {
        min-width: 220px;
    }
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.filter-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-item.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Ícones e textos do filtro */
.filter-icon {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.filter-name {
    flex: 1;
    font-weight: 500;
}

.filter-check {
    color: #4CAF50;
    font-weight: bold;
}

/* Scrollbar personalizada para o dropdown */
.month-filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.month-filter-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.month-filter-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.month-filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Temas para o filtro de meses */

/* Tema Café */
body.tema-cafe .month-filter-toggle {
    background: rgba(139, 69, 19, 0.8);
    border: 2px solid #8B4513;
    color: #F5DEB3;
}

body.tema-cafe .month-filter-toggle:hover {
    background: rgba(160, 82, 45, 0.9);
}

body.tema_cafe .month-filter-dropdown {
    background: rgba(245, 222, 179, 0.95);
    border: 1px solid #8B4513;
}

body.tema_cafe .filter-item {
    color: #2F1B14;
}

body.tema_cafe .filter-item:hover {
    background: rgba(222, 184, 135, 0.8);
}

body.tema_cafe .filter-item.active {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #F5DEB3;
}

body.tema_cafe .filter-item.active:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
}

/* Tema Empresarial */
body.tema-empresarial .month-filter-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    color: #495057;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.tema-empresarial .month-filter-toggle:hover {
    background: rgba(248, 249, 250, 0.95);
    border-color: #007bff;
}

body.tema-empresarial .month-filter-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.tema-empresarial .filter-item {
    color: #343a40;
}

body.tema-empresarial .filter-item:hover {
    background: rgba(248, 249, 250, 0.8);
}

body.tema-empresarial .filter-item.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

body.tema-empresarial .filter-item.active:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Responsividade do filtro */
@media (max-width: 768px) {
    .month-filter-container {
        top: 70px;
        right: 10px;
    }
    
    .month-filter-toggle {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .month-filter-dropdown {
        min-width: 180px;
        right: -10px;
    }
    
    .filter-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Animações para mudança de filtro */
table {
    transition: opacity 0.3s ease;
}

.filter-animation {
    opacity: 0.7;
}

/* Indicador de filtro ativo */
.filter-indicator {
    position: relative;
}

.filter-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: none;
}

.month-filter-toggle.filtered .filter-indicator::after {
    display: block;
}

/* Efeito de hover no ícone */
.month-filter-toggle .filter-icon {
    transition: transform 0.2s ease;
}

.month-filter-toggle:hover .filter-icon {
    transform: scale(1.1);
}

/* Separador visual no dropdown */
.filter-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Grupo de meses por trimestre */
.filter-group {
    margin-bottom: 10px;
}

.filter-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    padding: 5px 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animação de entrada do dropdown */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.month-filter-dropdown.visible {
    animation: dropdownSlideIn 0.3s ease;
}

/* Badge de contagem */
.filter-count {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

body.tema_cafe .filter-count {
    background: rgba(139, 69, 19, 0.3);
}

body.tema-empresarial .filter-count {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

/* ========================================
   CORREÇÕES INTEGRADAS DO THEME-FIXES.CSS
   - Todas as correções de tema foram integradas
   - Botões aprimorados para todos os temas
   - Tabelas ordenáveis com suporte completo
   - Headings corrigidos para melhor visibilidade
======================================== */

/* Tabelas ordenáveis - Tema padrão (Noite de Verão) */
.sortable-table th {
    background: solid #667eea;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.sortable-table th:hover {
    background: solid #4ca24b;
    transform: translateY(-1px);
}

/* Tabelas ordenáveis - Tema Café */
.tema-cafe .sortable-table th {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%) !important;
    color: #F5DEB3 !important;
}

.tema-cafe .sortable-table th:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%) !important;
}

.tema-cafe .sortable-table th[data-sort="asc"] {
    background: linear-gradient(135deg, #654321 0%, #8b4513 100%) !important;
}

.tema-cafe .sortable-table th[data-sort="desc"] {
    background: linear-gradient(135deg, #cd853f 0%, #d2691e 100%) !important;
}

/* Tabelas ordenáveis - Tema Empresarial */
.tema-empresarial .sortable-table th {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    color: #ecf0f1 !important;
}

.tema-empresarial .sortable-table th:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}

.tema-empresarial .sortable-table th[data-sort="asc"] {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.tema-empresarial .sortable-table th[data-sort="desc"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* Correção para tabelas legadas também */
.tema-cafe table thead {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%) !important;
    color: #604512 !important;
}

.tema-cafe table thead th {
    background: transparent !important;
    color: #ffd993 !important;
}

.tema-empresarial table thead {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    color: #0d5263 !important;
}

.tema-empresarial table thead th {
    background: transparent !important;
    color: #ffffff !important;
}