/* Dashboard Profissional - Design Corporativo Moderno */

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

:root {
    /* Paleta Profissional */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    
    /* Neutros Profissionais */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
    
    /* Sombras Profissionais */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Raios de Borda */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: var(--font-size-base);
    min-height: 100vh;
}

/* Layout Principal */
.container-fluid {
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
}

.main-content {
    margin-left: 280px;
    padding: 1rem;
    background: transparent;
    min-height: calc(100vh - 60px);
}

/* Sidebar Premium Profissional */
.sidebar {
    background: linear-gradient(145deg, #2d1b69 0%, #4c1d95 35%, #5b21b6 100%);
    border-right: 1px solid rgba(167, 139, 250, 0.2);
    padding: 1rem 0;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(167, 139, 250, 0.15),
        0 20px 40px rgba(45, 27, 105, 0.4);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: sidebarGlow 8s ease-in-out infinite alternate;
}

@keyframes sidebarGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(139, 92, 246, 0.8) 20%,
        rgba(124, 58, 237, 0.9) 50%,
        rgba(109, 40, 217, 0.8) 80%,
        transparent 100%
    );
    animation: sidebarEdge 4s ease-in-out infinite alternate;
}

@keyframes sidebarEdge {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.sidebar h5 {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    position: relative;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.sidebar small {
    color: rgba(196, 181, 253, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0 1rem;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.9rem 1.8rem;
    margin: 0.3rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .nav-link i {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link:hover::before {
    opacity: 1;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: #a78bfa;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.7);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(124, 58, 237, 0.95) 100%
    );
    color: #ffffff;
    border-color: rgba(196, 181, 253, 0.4);
    box-shadow: 
        0 15px 35px rgba(139, 92, 246, 0.5),
        0 5px 15px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(196, 181, 253, 0.3);
    transform: translateX(8px);
}

.sidebar .nav-link.active::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%
    );
}

.sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 3rem;
    background: linear-gradient(180deg, 
        transparent 0%,
        #c4b5fd 20%,
        #a78bfa 50%,
        #8b5cf6 80%,
        transparent 100%
    );
    border-radius: 0 4px 4px 0;
    box-shadow: 
        0 0 25px rgba(167, 139, 250, 0.8),
        0 0 50px rgba(139, 92, 246, 0.6);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

.sidebar .nav-link.active i {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

@keyframes activeGlow {
    0% { 
        opacity: 0.7;
        box-shadow: 
            0 0 25px rgba(167, 139, 250, 0.8),
            0 0 50px rgba(139, 92, 246, 0.6);
    }
    100% { 
        opacity: 1;
        box-shadow: 
            0 0 35px rgba(167, 139, 250, 1),
            0 0 70px rgba(139, 92, 246, 0.8);
    }
}

/* Header Profissional */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.2),
        0 6px 16px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-controls .btn {
    border-radius: var(--radius-base);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
}

.dashboard-controls .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dashboard-controls .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dashboard-controls .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dashboard-meta {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Filtros Profissionais */
.filters-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filters-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-base);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    background: white;
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cards de Estatísticas Profissionais */
.stats-card {
    background: white;
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    cursor: pointer;
    width: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Efeitos de hover específicos para cada tipo de card */
.stats-card-events:hover {
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-revenue:hover {
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-participants:hover {
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-cost:hover {
    box-shadow: 
        0 20px 40px rgba(245, 158, 11, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-saving:hover {
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Overlay gradiente sutil para profundidade */
.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover::after {
    opacity: 1;
}

/* Gradientes específicos para cada tipo de card - Cores Profissionais Modernas */
.stats-card-events {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.stats-card-revenue {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stats-card-participants {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stats-card-cost {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stats-card-saving {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stats-card-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stats-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stats-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.stats-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-main {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.stats-icon-container {
    flex-shrink: 0;
}

.stats-icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stats-card:hover .stats-icon {
    transform: scale(1.15) rotate(8deg);
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.stats-info {
    flex-grow: 1;
    min-width: 0;
}

.stats-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.98;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-description {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.stats-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: auto;
}

/* Indicadores de tendência melhorados */
.stats-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 22px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-trend.positive {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(22, 163, 74, 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.stats-trend.negative {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9) 0%, 
        rgba(220, 38, 38, 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.stats-trend:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.trend-value {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.stats-period {
    font-size: 0.8rem;
    opacity: 0.92;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 500;
}

/* Ícones específicos com cores personalizadas e efeitos glassmorphism */
.events-icon {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.4) 0%, 
        rgba(124, 58, 237, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.revenue-icon {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.4) 0%, 
        rgba(5, 150, 105, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(16, 185, 129, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.participants-icon {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.4) 0%, 
        rgba(37, 99, 235, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.cost-icon {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.4) 0%, 
        rgba(217, 119, 6, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(245, 158, 11, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.success-icon {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.4) 0%, 
        rgba(5, 150, 105, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(16, 185, 129, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.warning-icon {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.4) 0%, 
        rgba(217, 119, 6, 0.3) 100%);
    color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 8px 32px rgba(245, 158, 11, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

/* Efeitos hover específicos para cada ícone */
.stats-card-events:hover .events-icon {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.6) 0%, 
        rgba(124, 58, 237, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(139, 92, 246, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.stats-card-revenue:hover .revenue-icon {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.6) 0%, 
        rgba(5, 150, 105, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(16, 185, 129, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(16, 185, 129, 0.4);
}

.stats-card-participants:hover .participants-icon {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.6) 0%, 
        rgba(37, 99, 235, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(59, 130, 246, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(59, 130, 246, 0.4);
}

.stats-card-cost:hover .cost-icon {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.6) 0%, 
        rgba(217, 119, 6, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(245, 158, 11, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(245, 158, 11, 0.4);
}

.stats-card-saving:hover .saving-icon {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.6) 0%, 
        rgba(5, 150, 105, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(16, 185, 129, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(16, 185, 129, 0.4);
}

.stats-card-success:hover {
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-warning:hover {
    box-shadow: 
        0 20px 40px rgba(245, 158, 11, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stats-card-success:hover .success-icon {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.6) 0%, 
        rgba(5, 150, 105, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(16, 185, 129, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(16, 185, 129, 0.4);
}

.stats-card-warning:hover .warning-icon {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.6) 0%, 
        rgba(217, 119, 6, 0.5) 100%);
    box-shadow: 
        0 15px 50px rgba(245, 158, 11, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        0 0 30px rgba(245, 158, 11, 0.4);
}

/* Animações aprimoradas */
@keyframes statsCardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stats-card:active {
    animation: statsCardPulse 0.3s ease-in-out;
}

/* Responsividade melhorada - Cards KPI */
/* Telas grandes de desktop (1400px+) - padrão */
@media (min-width: 1400px) {
    .stats-card {
        min-height: 200px;
    }
    
    .stats-number {
        font-size: 2.75rem;
    }
    
    .stats-icon {
        width: 75px;
        height: 75px;
        font-size: 32px;
    }
}

/* Desktop médio (1366px - 1399px) */
@media (max-width: 1399px) and (min-width: 1366px) {
    .stats-card {
        min-height: 190px;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .stats-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .stats-card-content {
        padding: 1.5rem 1.25rem;
    }
}

/* Desktop pequeno (1280px - 1365px) */
@media (max-width: 1365px) and (min-width: 1280px) {
    .stats-card {
        min-height: 180px;
    }
    
    .stats-number {
        font-size: 2.25rem;
    }
    
    .stats-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .stats-card-content {
        padding: 1.375rem 1.125rem;
    }
    
    .stats-label {
        font-size: 0.9375rem;
    }
}

/* Desktop muito pequeno / Laptop grande (1200px - 1279px) */
@media (max-width: 1279px) and (min-width: 1200px) {
    .stats-card {
        min-height: 175px;
    }
    
    .stats-number {
        font-size: 2.125rem;
    }
    
    .stats-icon {
        width: 62px;
        height: 62px;
        font-size: 25px;
    }
    
    .stats-card-content {
        padding: 1.25rem 1rem;
    }
    
    .stats-label {
        font-size: 0.9rem;
    }
    
    .stats-description {
        font-size: 0.8rem;
    }
}

/* Tablet grande / Laptop pequeno (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .stats-card {
        min-height: 170px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 16px;
    }
    
    .stats-card-content {
        padding: 1.25rem 1rem;
    }
    
    .stats-label {
        font-size: 0.875rem;
    }
    
    .stats-description {
        font-size: 0.75rem;
    }
    
    .stats-main {
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .stats-card {
        min-height: 160px;
    }
    
    .stats-number {
        font-size: 1.875rem;
    }
    
    .stats-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        border-radius: 14px;
    }
    
    .stats-card-content {
        padding: 1.125rem 0.875rem;
    }
    
    .stats-label {
        font-size: 0.8125rem;
    }
    
    .stats-description {
        font-size: 0.6875rem;
    }
    
    .stats-main {
        gap: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .stats-meta {
        padding-top: 0.875rem;
    }
}

@media (max-width: 768px) {
    .stats-card {
        min-height: 140px;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .stats-card-content {
        padding: 1.25rem 1rem;
    }
    
    .stats-main {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 14px;
    }
    
    .stats-label {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }
    
    .stats-description {
        font-size: 0.6875rem;
    }
    
    .stats-meta {
        padding-top: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stats-trend {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .stats-period {
        font-size: 0.65rem;
    }
}

@media (max-width: 640px) {
    .stats-card {
        min-height: 130px;
    }
    
    .stats-card-content {
        padding: 1rem 0.875rem;
    }
    
    .stats-main {
        gap: 0.625rem;
        margin-bottom: 0.625rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }
    
    .stats-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .stats-label {
        font-size: 0.75rem;
    }
    
    .stats-description {
        font-size: 0.625rem;
    }
    
    .stats-meta {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0.625rem;
        gap: 0.375rem;
    }
    
    .stats-trend {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 4px;
    }
    
    .trend-value {
        font-size: 0.75rem;
    }
    
    .stats-period {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .stats-card {
        min-height: 120px;
    }
    
    .stats-card-content {
        padding: 0.875rem 0.75rem;
    }
    
    .stats-main {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-number {
        font-size: 1.375rem;
        margin-bottom: 0.25rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .stats-label {
        font-size: 0.6875rem;
    }
    
    .stats-description {
        font-size: 0.5625rem;
    }
    
    .stats-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
        padding-top: 0.5rem;
    }
    
    .stats-trend {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .stats-period {
        font-size: 0.5625rem;
    }
}

/* Containers dos gráficos - melhor ocupação */
.chart-container {
    position: relative;
    height: 480px !important;
    width: 100% !important;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.chart-container canvas {
    max-height: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Melhorar cards dos gráficos */
.section-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
}

.section-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px 24px;
    position: relative;
}

.section-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #ef4444, #f59e0b, #10b981);
    border-radius: 16px 16px 0 0;
}

.section-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-card-title i {
    font-size: 20px;
    color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-card-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
}

/* Responsividade melhorada */
@media (max-width: 1200px) {
    .chart-container {
        height: 420px !important;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 360px !important;
        padding: 12px;
    }
    
    .section-card-header {
        padding: 16px 20px;
    }
    
    .section-card-title {
        font-size: 16px;
    }
    
    .section-card-body {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 320px !important;
        padding: 10px;
    }
}

/* Animações suaves para os gráficos */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chart-container canvas {
    animation: chartFadeIn 0.8s ease-out forwards;
}

/* Melhorar espaçamento entre gráficos */
.row.g-4 {
    margin-bottom: 1rem;
}

.col-lg-8, .col-lg-4 {
    margin-bottom: 1rem;
}

/* Efeito glassmorphism nos cards */
.section-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-card-header {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.section-card-body {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Melhorar loading dos gráficos - REMOVIDO: Conflito com definição posterior */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Participantes Card Moderno */
.participantes-card {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-base);
}

.participantes-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
}

.participantes-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
}

.participantes-subtitle {
    font-size: var(--font-size-xs);
    opacity: 0.9;
    margin: 0;
}

.participantes-refresh-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
}

.participantes-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.participantes-body {
    padding: 1rem;
    background: white;
}

.participantes-main-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.participantes-main-card:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.participantes-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-base);
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.previstos-card .participantes-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.realizados-card .participantes-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%);
}

.participantes-number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.participantes-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Conversão Section */
.conversao-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.conversao-badge {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%);
    color: white;
    font-weight: 700;
    font-size: var(--font-size-xs);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-base);
}

.conversao-progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-base);
    overflow: hidden;
}

.conversao-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, #10b981 100%);
    border-radius: var(--radius-base);
    transition: width 0.8s ease;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

/* Categorias */
.categoria-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-base);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.categoria-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-base);
    transform: translateX(4px);
}

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

.categoria-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    color: white;
    margin-right: 0.75rem;
}

.hcps-item .categoria-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%);
}

.externos-item .categoria-icon {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ef4444 100%);
}

.abbvie-item .categoria-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.categoria-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
}

.categoria-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.categoria-percent {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.categoria-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.hcps-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--warning-color) 0%, #f59e0b 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.externos-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color) 0%, #ef4444 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3);
}

.abbvie-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3);
}

/* Responsáveis List */
.responsaveis-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    border: 1px solid rgba(229, 231, 235, 0.6);
    cursor: default;
    /* ❌ Removidos: transition, position, overflow - não é mais clicável */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ❌ Removidos todos os efeitos de hover/active - cards são apenas informativos */
/* .responsaveis-item::before { ... } */
/* .responsaveis-item:hover { ... } */
/* .responsaveis-item:hover::before { ... } */
/* .responsaveis-item:active { ... } */

.responsaveis-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.125rem;
}

.responsaveis-events {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.responsaveis-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-base);
}

/* Tabela Moderna */
.table-modern {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.25),
        0 2px 6px rgba(118, 75, 162, 0.2);
}

.table-modern thead th {
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    border: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(135deg, #764ba2 0%, #764ba2 100%);
}

.table-modern thead th:first-child {
    border-radius: 0.75rem 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 0.75rem 0 0;
}

.table-modern thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* Hover effect nos cabeçalhos */
.table-modern thead th:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.table-modern thead th:hover::after {
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.2) 100%
    );
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.table-modern tbody td {
    padding: 1rem;
    border-color: var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-700);
}

/* Linha de totais na tabela */
.table-modern tfoot {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
}

.table-modern tfoot tr.table-totals-row {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.table-modern tfoot td {
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    background: transparent;
}

.table-modern tbody tr:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-top: 1rem;
}

.loading-subtitle {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    margin-top: 0.5rem;
}

/* Sistema de Drill-Down */
.filtro-ativo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.filtro-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(102, 126, 234, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Estilos específicos por tipo de filtro */
.filtro-mes .filtro-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.3),
        0 4px 12px rgba(59, 130, 246, 0.2);
}

.filtro-fornecedor .filtro-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 10px 25px rgba(16, 185, 129, 0.3),
        0 4px 12px rgba(16, 185, 129, 0.2);
}

.filtro-responsavel .filtro-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 
        0 10px 25px rgba(139, 92, 246, 0.3),
        0 4px 12px rgba(139, 92, 246, 0.2);
}

.filtro-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Efeitos de highlight nos gráficos */
.chart-highlight {
    filter: brightness(1.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Dica de drill-down */
.drill-down-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    display: inline-block;
}

.drill-down-hint i {
    color: #6366f1;
    margin-right: 6px;
}

.drill-down-hint small {
    color: #4b5563;
    font-weight: 500;
}

/* Toast Notifications */
.toast-custom {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(8px);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Responsividade */
@media (max-width: 1024px) {
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 0.75rem 1rem;
    }
    
    .section-card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .dashboard-header {
        padding: 0.75rem;
        text-align: center;
    }
    
    .dashboard-controls {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .section-card-body {
        padding: 0.5rem;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0.5rem;
    }
    
    /* Overlay para mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }

    .chart-container {
        min-height: 420px;
        height: 420px !important;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .participantes-main-card {
        padding: 0.75rem;
    }
    
    .participantes-number {
        font-size: var(--font-size-xl);
    }
    
    .categoria-item {
        padding: 0.5rem;
    }
    
    .responsaveis-item {
        padding: 0.5rem;
    }

    .chart-container {
        min-height: 360px;
        height: 360px !important;
        padding: 0.75rem;
    }
}

/* Utilitários */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Responsáveis clicáveis */
.clickable-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.responsaveis-item.clickable-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #667eea;
    padding-left: calc(1rem - 4px);
}

/* Animações de entrada */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeitos de hover para elementos interativos */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states melhorados */
button:focus,
.form-control:focus,
.responsaveis-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Estados de loading mais suaves */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Container dos gráficos com estilo premium */
.chart-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Loading state com animação */
.chart-container:not(.loaded) {
    opacity: 0.6;
    pointer-events: none;
}

.chart-container:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-container.loaded {
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Canvas dos gráficos */
canvas {
    border-radius: 12px;
    transition: all 0.3s ease;
}

canvas:hover {
    transform: scale(1.02);
}

/* Estilos para páginas de eventos - Novo Design */
.event-info-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.event-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
}

.event-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.event-info-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.title-content {
    flex: 1;
}

.event-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.event-subtitle {
    color: #636e72;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.event-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-badge.status-nacional {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.status-badge.status-internacional {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.event-info-content {
    padding: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
    border-color: #6c5ce7;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-full {
    grid-column: 1 / -1;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.info-empty {
    font-size: 1rem;
    color: #b2bec3;
    font-style: italic;
    margin: 0;
}

.responsaveis-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: fit-content;
}

.responsaveis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.responsaveis-header i {
    font-size: 1.2rem;
}

.responsaveis-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.responsaveis-content {
    padding: 1rem;
}

.responsavel-item {
    margin-bottom: 1.25rem;
}

.responsavel-item:last-child {
    margin-bottom: 0;
}

.responsavel-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.responsavel-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
}

/* Botão do menu mobile */
.sidebar-toggle-btn {
    color: white !important;
    font-size: 1.5rem !important;
}

/* Estilos para exportação PDF */
@media print {
    .sidebar,
    .sidebar-overlay,
    .dashboard-header,
    .dashboard-controls {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .event-info-card,
    .classification-section,
    .participantes-card,
    .section-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .participantes-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-divider {
        flex-direction: row;
        min-width: auto;
        min-height: 40px;
    }
    
    .divider-line {
        width: 40px;
        height: 2px;
    }
    
    .divider-icon {
        transform: rotate(90deg);
    }
}

/* Botão de exportação PDF */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
    text-decoration: none !important;
}

.btn-success:focus {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5) !important;
    outline: none !important;
}

.btn-success:disabled {
    opacity: 0.7 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.btn-success i {
    font-size: 1rem !important;
    color: white !important;
}

/* Botão específico de exportação PDF */
.export-pdf-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-width: 140px !important;
    justify-content: center !important;
}

.export-pdf-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
    text-decoration: none !important;
}

.export-pdf-btn:focus {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5) !important;
    outline: none !important;
}

.export-pdf-btn:disabled {
    opacity: 0.7 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.export-pdf-btn i {
    font-size: 1.1rem !important;
    color: white !important;
}

.export-pdf-btn span {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Garantir visibilidade do botão em todos os contextos */
.dashboard-controls .export-pdf-btn {
    position: relative !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.dashboard-controls .export-pdf-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.dashboard-controls .export-pdf-btn:active {
    background: linear-gradient(135deg, #1e7e34, #1a7a6b) !important;
    transform: translateY(1px) !important;
}

/* Responsividade para o botão */
@media (max-width: 768px) {
    .export-pdf-btn {
        min-width: 120px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .export-pdf-btn span {
        font-size: 0.8rem !important;
    }
    
    .export-pdf-btn i {
        font-size: 1rem !important;
    }
}

/* Estilos para seção de Participantes - Novo Design */
.participantes-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.participantes-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
}

.participantes-header {
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.participantes-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.participantes-title .title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.participantes-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.participantes-subtitle {
    color: #636e72;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.participantes-content {
    padding: 1rem;
}

.participantes-comparison {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.participantes-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.participants-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.participants-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.3);
}

.participants-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

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

.participant-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
    border-color: #6c5ce7;
}

.participant-card:hover::before {
    opacity: 1;
}

.participant-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.participant-card.hcps .participant-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.participant-card.externos .participant-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.participant-card.internos .participant-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.participant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.participant-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    line-height: 1;
}

.participant-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 60px;
}

.divider-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #6c5ce7, #a29bfe);
    border-radius: 1px;
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Responsive adjustments para participantes */
@media (max-width: 768px) {
    .participantes-header {
        padding: 1rem;
    }
    
    .participantes-title {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .participantes-title .title-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .participantes-name {
        font-size: 1.5rem;
    }
    
    .participantes-content {
        padding: 1rem;
    }
    
    .participantes-comparison {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comparison-divider {
        flex-direction: row;
        min-width: auto;
        min-height: 60px;
    }
    
    .divider-line {
        width: 40px;
        height: 2px;
    }
    
    .divider-icon {
        transform: rotate(90deg);
    }
    
    .participantes-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .participant-card {
        padding: 1.25rem;
    }
    
    .participant-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .participant-number {
        font-size: 1.75rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-info-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .event-info-title {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .title-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .event-name {
        font-size: 1.5rem;
    }
    
    .event-info-content {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.valor-financeiro {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.participantes-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.responsaveis-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.responsavel-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.responsavel-item:last-child {
    border-bottom: none;
}

.evento-nome {
    font-weight: 600;
    color: var(--gray-800);
}

.responsavel-info {
    max-width: 200px;
}

.responsavel-info div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.responsavel-info small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Badges com Paleta Roxa do Sistema */
.badge.bg-primary-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.badge.bg-secondary-purple {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 8px rgba(76, 29, 149, 0.25);
}

.badge.bg-info-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(196, 181, 253, 0.4);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.badge.bg-success-purple {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(109, 40, 217, 0.3);
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.badge.bg-warning-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.badge.bg-danger-purple {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(91, 33, 182, 0.3);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.25);
}

/* Variação Badge Cinza com Toque Roxo */
.badge.bg-gray-purple {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(100, 116, 139, 0.3);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

/* Hover Effects para Badges Roxos */
.badge.bg-primary-purple:hover,
.badge.bg-secondary-purple:hover,
.badge.bg-info-purple:hover,
.badge.bg-success-purple:hover,
.badge.bg-warning-purple:hover,
.badge.bg-danger-purple:hover {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* Badge de Variação com Cores Corretas */
.badge.variacao-positiva {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(5, 150, 105, 0.3);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.badge.variacao-negativa {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.badge.variacao-neutra {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(100, 116, 139, 0.3);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

/* Cores de fundo para colunas específicas da tabela */
.table-modern tbody td:nth-child(1) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.table-modern tbody td:nth-child(2) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%);
}

.table-modern tbody td:nth-child(3) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(147, 51, 234, 0.06) 100%);
}

.table-modern tbody td:nth-child(4) {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.08) 0%, rgba(168, 85, 247, 0.06) 100%);
}

.table-modern tbody td:nth-child(5) {
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.08) 0%, rgba(192, 132, 252, 0.06) 100%);
}

.table-modern tbody td:nth-child(6) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
}

.table-modern tbody td:nth-child(7) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 163, 74, 0.06) 100%);
}

.table-modern tbody td:nth-child(8) {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
}

.table-modern tbody td:nth-child(9) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.06) 100%);
}

.table-modern tbody td:nth-child(10) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
}

/* Hover mais intenso para as colunas com fundo */
.table-modern tbody tr:hover td:nth-child(1),
.table-modern tbody tr:hover td:nth-child(2),
.table-modern tbody tr:hover td:nth-child(3),
.table-modern tbody tr:hover td:nth-child(4),
.table-modern tbody tr:hover td:nth-child(5) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.table-modern tbody tr:hover td:nth-child(6) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
}

.table-modern tbody tr:hover td:nth-child(7) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.12) 100%);
}

.table-modern tbody tr:hover td:nth-child(8) {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(249, 115, 22, 0.12) 100%);
}

.table-modern tbody tr:hover td:nth-child(9) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.12) 100%);
}

.table-modern tbody tr:hover td:nth-child(10) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.12) 100%);
}

/* Bordas sutis entre colunas */
.table-modern tbody td {
    border-right: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

/* Estilos específicos para página de fornecedores */
.table-header-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-header-purple th {
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.table-header-purple th:first-child {
    border-radius: 0.75rem 0 0 0;
}

.table-header-purple th:last-child {
    border-radius: 0 0.75rem 0 0;
}

.table-header-purple th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.table-header-purple th:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.table-header-purple th:hover::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.table-modern tbody td:last-child {
    border-right: none;
}

/* Estilos específicos para página de fornecedores */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group .filters-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group .filters-label i {
    color: #667eea;
    font-size: 0.9rem;
}

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

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

/* Melhorias para avatares de fornecedores */
.fornecedor-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.fornecedor-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Estados de loading e erro melhorados */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.loading-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

.no-data-message,
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 2rem;
}

.no-data-message i,
.error-message i {
    opacity: 0.7;
}

.no-data-message h5,
.error-message h5 {
    margin: 0;
    font-weight: 600;
}

.no-data-message p,
.error-message p {
    margin: 0;
    text-align: center;
    max-width: 400px;
}

/* Melhorias para progress bars */
.progress {
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Melhorias para badges */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.5rem;
}

/* Hover effects para tabela */
.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Melhorias para valores financeiros */
.valor-financeiro {
    text-align: left;
}

.valor-financeiro .fw-bold {
    font-size: 1rem;
    line-height: 1.2;
}

.valor-financeiro small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsividade para página de fornecedores */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dashboard-controls {
        justify-content: center;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .fornecedor-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .badge.fs-6 {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
    
    .progress {
        width: 60px !important;
        height: 8px !important;
    }
    
    .loading-spinner,
    .no-data-message,
    .error-message {
        padding: 2rem 1rem;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* Melhorias para botões de ação */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Melhorias para tooltips de gráficos */
.chart-container canvas {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.chart-container:hover canvas {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* Indicadores de status */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator.online {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Melhorias para dashboard header */
.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.dashboard-title-section {
    flex: 1;
}

.dashboard-controls {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-right: 1.5rem;
}

.meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}

/* Hover states para cards de estatísticas */
.stats-card:hover .stats-icon {
    animation: statsIconPulse 0.6s ease-in-out;
}

@keyframes statsIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Melhorias para seção de filtros */
.filters-section {
    margin: 1.5rem 0;
}

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

/* Estados de hover para elementos interativos */
.clickable-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-row:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 100%
    );
}

/* Estilos para paginação */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls .form-select-sm {
    min-width: 80px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: white;
    transition: all 0.2s ease;
}

.pagination-controls .form-select-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.pagination-info small {
    color: #6b7280;
    font-weight: 500;
}

.pagination-summary {
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination {
    margin: 0;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    color: #667eea;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination .page-link:hover {
    color: white;
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

/* Melhorias para o header da seção de tabela */
.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.section-card-header .section-card-title {
    margin: 0;
    flex: 1;
}

.section-card-header .d-flex {
    flex-shrink: 0;
}

/* Responsividade para paginação */
@media (max-width: 768px) {
    .section-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .section-card-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .pagination-summary {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .pagination {
        gap: 0.125rem;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .pagination-controls .form-select-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .pagination-info small {
        font-size: 0.75rem;
    }
}

/* Animações para elementos de paginação */
.pagination .page-item {
    animation: fadeInUp 0.3s ease-out;
}

.pagination .page-item:nth-child(1) { animation-delay: 0.1s; }
.pagination .page-item:nth-child(2) { animation-delay: 0.15s; }
.pagination .page-item:nth-child(3) { animation-delay: 0.2s; }
.pagination .page-item:nth-child(4) { animation-delay: 0.25s; }
.pagination .page-item:nth-child(5) { animation-delay: 0.3s; }

/* Melhorias para loading durante mudança de página */
.table-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Estilos para contador de itens */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-info i {
    color: #667eea;
}

/* Hover effects para controles de paginação */
.pagination-controls label {
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-controls .form-select-sm:hover {
    border-color: #9ca3af;
}

/* Estilo para quando não há dados */
.no-pagination {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    opacity: 0.6;
}

/* ===== CHAT DE ANÁLISE DE DADOS - MELHORIAS ===== */

/* Chat Data Styling */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #28a745, #20c997);
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc3545, #e74c3c);
}

/* Melhorar tabelas de dados do chat */
.success-message .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
    background: white;
}

.success-message .table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.success-message .table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border: none;
    padding: 18px 15px;
    white-space: nowrap;
    position: relative;
}

.success-message .table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.success-message .table td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.success-message .table-striped > tbody > tr:nth-of-type(odd) > td,
.success-message .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(102, 126, 234, 0.03);
}

.success-message .table-hover tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-1px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-message .table-hover tbody tr:hover td {
    border-color: rgba(102, 126, 234, 0.1);
}

/* Badge para contadores */
.badge {
    font-size: 0.85rem;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge.bg-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

/* Ícones de insights */
.success-message ul li {
    background: rgba(255,255,255,0.4);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.success-message ul li:hover {
    background: rgba(255,255,255,0.6);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.success-message ul li:last-child {
    margin-bottom: 0;
}

.success-message ul li i {
    width: 20px;
    text-align: center;
}

/* Métricas no painel lateral */
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Melhorar cards de visualização */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Chat container melhorado */
.chat-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Sugestões de chat */
.suggestion-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

/* Formatação de valores monetários */
.money-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 700;
    color: #28a745;
}

.negative-value {
    color: #dc3545;
}

/* Melhorar estado vazio */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

/* Animações para elementos do chat */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: messageSlideIn 0.4s ease-out;
}

/* Melhorar loading states */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
    30% { transform: scale(1.2); opacity: 1; }
}

/* Responsividade para chat */
@media (max-width: 768px) {
    .success-message .table-responsive {
        font-size: 0.8rem;
    }
    
    .success-message .table th {
        padding: 12px 8px;
        font-size: 0.7rem;
    }
    
    .success-message .table td {
        padding: 10px 8px;
    }
    
    .success-message, .error-message {
        padding: 15px;
        margin: 10px 0;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

/* ===== NOVA INTERFACE DO CHAT - MODERNA E PROFISSIONAL ===== */

/* Chat Main Card */
.chat-main-card {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    border-radius: 15px;
}

/* Header Moderno do Chat */
.chat-header-modern {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px 15px 0 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-info h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.chat-info small {
    color: rgba(255,255,255,0.8);
}

.chat-tools {
    display: flex;
    gap: 8px;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-1px);
}

/* Container de Mensagens */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #f8f9fa;
    position: relative;
}

/* Grupos de Mensagens */
.message-group {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    gap: 15px;
}

.user-group {
    flex-direction: row-reverse;
}

.assistant-group {
    flex-direction: row;
}

/* Avatares */
.message-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.avatar-circle:not(.user-avatar) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-avatar {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

.avatar-circle.loading {
    animation: avatar-pulse 1.5s infinite;
}

@keyframes avatar-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Bolhas de Mensagem */
.message-content {
    flex: 1;
    max-width: 75%;
}

.message-bubble {
    background: white;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    word-wrap: break-word;
}

.user-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.assistant-bubble {
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

/* Headers das Mensagens */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.sender-name {
    font-weight: 600;
    color: inherit;
}

.user-bubble .sender-name {
    color: rgba(255,255,255,0.9);
}

.message-timestamp {
    font-size: 12px;
    opacity: 0.7;
}

/* Corpo das Mensagens */
.message-body {
    line-height: 1.6;
}

.welcome-title {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Grid de Sugestões */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.suggestion-card {
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-card:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-text strong {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.suggestion-text small {
    color: #6b7280;
    font-size: 13px;
}

/* Animação de Digitação */
.typing-animation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.typing-text {
    color: #6b7280;
    font-style: italic;
}

/* Input Moderno do Chat */
.chat-input-modern {
    background: white;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
}

.input-container {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 8px;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.input-action-btn {
    background: none;
    border: none;
    color: #6b7280;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.chat-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    color: #1f2937;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.send-btn:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Respostas de Sucesso e Erro */
.success-response {
    animation: slideInUp 0.4s ease-out;
}

.response-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.insights-section {
    margin-top: 20px;
}

.insights-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.error-response {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
}

.error-icon {
    color: #ef4444;
    font-size: 24px;
    flex-shrink: 0;
}

.error-content h6 {
    color: #dc2626;
    margin-bottom: 8px;
}

.error-suggestions {
    margin-top: 12px;
}

.error-suggestions ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

/* Tabelas de Dados */
.data-table-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.table-footer {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.record-count {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

/* Métricas Grid */
.metrics-grid {
    display: grid;
    gap: 16px;
}

.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.metric-icon.events {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.metric-icon.financial {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.metric-data {
    flex: 1;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.metric-label {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Pulse Indicator */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Controles de Visualização */
.view-controls {
    display: flex;
    gap: 4px;
}

.view-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Visualização Vazia */
.empty-visualization {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    margin: 0;
}

/* Ações Rápidas */
.quick-actions {
    display: grid;
    gap: 12px;
}

.action-btn {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.enabled:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.action-btn i {
    font-size: 18px;
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .suggestion-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .chat-main-card {
        height: calc(100vh - 200px);
    }
    
    .chat-header-modern {
        padding: 15px 20px;
    }
    
    .chat-messages-container {
        padding: 20px 15px;
    }
    
    .message-group {
        margin-bottom: 20px;
        gap: 12px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .message-bubble {
        padding: 15px 18px;
    }
    
    .suggestion-card {
        padding: 14px;
    }
    
    .chat-input-modern {
        padding: 15px 20px;
    }
    
    .metrics-grid {
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .metric-value {
        font-size: 20px;
    }
}

/* ===== SISTEMA INTELIGENTE - MULTI-AGENTES ===== */

/* Mensagens do Sistema */
.system-group .avatar-circle {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.system-group .avatar-circle.system {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.system-bubble {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.system-status {
    font-size: 0.9rem;
    line-height: 1.5;
}

.system-status h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.system-status .status-list {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

/* ================================
   DIAGRAMA DE AGENTES EM PROCESSAMENTO
   ================================ */

.agents-processing {
    padding: 1rem 0;
}

.processing-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.agents-diagram {
    margin-top: 1rem;
}

.agent-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.agent-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.agent-step.processing::before {
    left: 100%;
}

.agent-step.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(21, 128, 61, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.agent-step.processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    animation: agentPulse 2s ease-in-out infinite;
}

@keyframes agentPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.agent-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.agent-step.processing .agent-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    animation: iconSpin 2s linear infinite;
}

.agent-step.completed .agent-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.agent-task {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.3;
}

.agent-step.processing .agent-task {
    color: #3b82f6;
    font-weight: 500;
}

.agent-step.completed .agent-task {
    color: #16a34a;
}

.agent-status {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.agent-status.waiting {
    background: rgba(156, 163, 175, 0.2);
    color: var(--gray-500);
}

.agent-status.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    animation: statusPulse 1.5s ease-in-out infinite;
}

.agent-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flow-arrow {
    display: flex;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0.25rem 0;
    opacity: 0.6;
}

.flow-arrow.active {
    color: #3b82f6;
    opacity: 1;
    animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(2px); opacity: 1; }
}

/* Responsividade para o diagrama */
@media (max-width: 768px) {
    .agent-flow {
        max-width: 100%;
    }
    
    .agent-step {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
    
    .agent-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .agent-name {
        font-size: 0.8rem;
    }
    
    .agent-task {
        font-size: 0.7rem;
    }
}

/* Estados específicos para cada agente */
#agent-1.processing .agent-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

#agent-2.processing .agent-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

#agent-3.processing .agent-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

#agent-4.processing .agent-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Animação de entrada para o diagrama */
.agents-diagram {
    animation: diagramFadeIn 0.5s ease-out;
}

@keyframes diagramFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador de contexto */
.context-indicator {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-left: 3px solid #3b82f6;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    animation: contextFadeIn 0.3s ease-out;
}

.context-indicator i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

@keyframes contextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador de continuidade na resposta */
.context-response-indicator {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-left: 3px solid #10b981;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #047857;
    display: flex;
    align-items: center;
}

.context-response-indicator i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Responsividade para indicadores */
@media (max-width: 768px) {
    .context-indicator,
    .context-response-indicator {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .context-indicator i,
    .context-response-indicator i {
        font-size: 0.65rem;
    }
}

/* Estilos para formatação de markdown */
.insight-content {
    line-height: 1.6;
}

.markdown-h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary-color);
}

.markdown-h4 {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
}

.markdown-h5 {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
}

.inline-code {
    background: var(--gray-100);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.markdown-list-item {
    margin: 0.25rem 0;
    padding-left: 0.5rem;
    color: var(--gray-700);
}

.emoji {
    font-size: 1.1em;
    margin-right: 0.25rem;
}

/* Melhorias na tabela de dados */
.data-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Animação suave para insights */
.insight-item {
    animation: slideInLeft 0.3s ease-out;
}

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

/* Melhor espaçamento para conteúdo markdown */
.insight-content p {
    margin-bottom: 0.5rem;
}

.insight-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.insight-content em {
    color: var(--gray-600);
    font-style: italic;
}

/* === CARROSSEL DE PERGUNTAS SUGERIDAS === */
.suggestions-carousel-container {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.suggestions-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(147, 51, 234, 0.02) 50%,
        rgba(59, 130, 246, 0.01) 100%
    );
    pointer-events: none;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.carousel-header h6 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-header h6 i {
    color: #fbbf24;
    font-size: 1.1rem;
    animation: lightbulbGlow 2s ease-in-out infinite alternate;
}

@keyframes lightbulbGlow {
    0% { filter: brightness(1) drop-shadow(0 0 2px rgba(251, 191, 36, 0.3)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #2563eb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 0.75rem;
}

.carousel-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    color: #1e40af;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-counter {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.suggestions-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    min-height: 120px;
}

.carousel-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide .suggestion-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.95) 50%,
        rgba(241, 245, 249, 0.9) 100%
    );
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-slide .suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(147, 51, 234, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide .suggestion-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.carousel-slide .suggestion-card:hover::before {
    opacity: 1;
}

.carousel-slide .suggestion-card:active {
    transform: translateY(0) scale(0.98);
}

.carousel-slide .suggestion-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.2) 0%, 
        rgba(147, 51, 234, 0.15) 100%
    );
    border: 1px solid rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
}

.carousel-slide .suggestion-icon i {
    font-size: 1.25rem;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.carousel-slide .suggestion-card:hover .suggestion-icon {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.3) 0%, 
        rgba(147, 51, 234, 0.25) 100%
    );
    border-color: rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

.carousel-slide .suggestion-card:hover .suggestion-icon i {
    color: #93c5fd;
    transform: scale(1.1);
}

.carousel-slide .suggestion-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.carousel-slide .suggestion-text strong {
    display: block;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.carousel-slide .suggestion-text small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.indicator.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.indicator:hover:not(.active) {
    background: rgba(148, 163, 184, 0.6);
    transform: scale(1.1);
}

/* Animações de transição suaves */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.slide-right {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.slide-left {
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsividade */
@media (max-width: 768px) {
    .suggestions-carousel-container {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .carousel-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        text-align: center;
    }
    
    .carousel-controls {
        justify-content: center;
    }
    
    .carousel-slide .suggestion-card {
        padding: 1rem;
        gap: 0.75rem;
        min-height: 80px;
    }
    
    .carousel-slide .suggestion-icon {
        width: 40px;
        height: 40px;
    }
    
    .carousel-slide .suggestion-icon i {
        font-size: 1.1rem;
    }
    
    .carousel-slide .suggestion-text strong {
        font-size: 0.9rem;
    }
    
    .carousel-slide .suggestion-text small {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .suggestions-carousel-container {
        padding: 0.75rem;
    }
    
    .carousel-slide .suggestion-card {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .carousel-slide .suggestion-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto;
    }
    
    .carousel-indicators {
        gap: 0.375rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* === Response Layout Enhancements === */
.highlight-box {
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.highlight-box.financial {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: #10b981;
}

.highlight-box.events {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
}

.highlight-box.statistics {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left-color: #8b5cf6;
}

.highlight-box.temporal {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left-color: #059669;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    text-align: center;
}

.metric-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Melhorias no container das mensagens */
.message-container {
    margin-bottom: 25px;
}

.message-container.user {
    text-align: right;
}

.message-container.assistant {
    text-align: left;
}

/* Estilização aprimorada das mensagens do assistente */
.message-container.assistant .message-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-container.assistant .message-content h2 {
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.message-container.assistant .message-content h3 {
    color: #475569;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.message-container.assistant .message-content p {
    line-height: 1.6;
    color: #334155;
    margin-bottom: 12px;
}

.message-container.assistant .message-content blockquote {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-style: italic;
    color: #475569;
}

.message-container.assistant .message-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.message-container.assistant .message-content li {
    margin-bottom: 8px;
    color: #334155;
}

.message-container.assistant .message-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

/* Rodapé das mensagens */
.message-container.assistant .message-content em {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* Animações sutis */
.message-container.assistant .message-content {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Melhorias para listas organizadas */
.message-container.assistant .message-content h2 + p {
    margin-top: 15px;
}

.message-container.assistant .message-content p strong {
    color: #1e293b;
    font-weight: 600;
}

.message-container.assistant .message-content p:has(strong) {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 10px;
    border-left: 3px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 6px;
}

/* Formatação especial para listas numeradas */
.message-container.assistant .message-content p[data-list-item] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* Medalhas para top 3 em rankings */
.ranking-medal {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Contadores para listas */
.list-counter {
    min-width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Separadores visuais para listas */
.list-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 15px 0;
}

/* Destacar números em listas */
.list-number {
    color: #3b82f6;
    font-weight: 700;
    margin-right: 8px;
}

/* Responsividade para as caixas de destaque */
@media (max-width: 768px) {
    .highlight-box {
        padding: 15px;
        margin: 10px 0;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 0.9rem;
    }
    
    .message-container.assistant .message-content {
        padding: 15px;
        border-radius: 12px;
    }
    
    .message-container.assistant .message-content p:has(strong) {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Estilos para informações do usuário no dashboard */
.dashboard-meta .user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dashboard-meta .user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-meta .user-info i {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-meta .user-info strong {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-meta .user-info .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.dashboard-meta .user-info .badge.bg-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #78350f !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.dashboard-meta .user-info .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.dashboard-meta .user-info .badge i {
    font-size: 0.8em;
    margin-right: 2px;
}

/* Animação sutil para o badge de admin */
.dashboard-meta .user-info .badge.bg-warning {
    animation: adminGlow 3s ease-in-out infinite;
}

@keyframes adminGlow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    }
    50% { 
        box-shadow: 0 2px 12px rgba(251, 191, 36, 0.5);
    }
}

/* Responsividade para informações do usuário */
@media (max-width: 768px) {
    .dashboard-meta .user-info {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .dashboard-meta .user-info .badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .dashboard-meta .user-info i {
        font-size: 1em;
    }
}

/* Perfil Premium do Usuário */
.user-profile-premium {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 20px;
    margin: 25px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.user-profile-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.profile-header {
    padding: 24px 20px 20px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profile-header:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.35),
        inset 0 2px 6px rgba(255, 255, 255, 0.15);
}

.avatar-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: avatarShine 3s linear infinite;
}

@keyframes avatarShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-header:hover .avatar-circle {
    transform: scale(1.08);
    box-shadow: 
        0 18px 40px rgba(102, 126, 234, 0.45),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.admin-crown {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.85rem;
    border: 3px solid white;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: crownGlow 2.5s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% {
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(255, 215, 0, 0.8),
            inset 0 2px 6px rgba(255, 255, 255, 0.4);
    }
}

.online-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.9);
    }
}

.profile-info {
    text-align: center;
}

.username-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.username {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.profile-header:hover .dropdown-arrow {
    color: white;
    transform: rotate(180deg);
}

.role-badge {
    display: flex;
    justify-content: center;
}

.badge-premium {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.badge-premium.admin {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #333;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.badge-premium.user {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.badge-premium i {
    font-size: 0.7rem;
}

/* Dropdown do Perfil */
.profile-dropdown {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
}

.profile-dropdown.show {
    max-height: 400px;
    padding: 15px 0;
}

.dropdown-section {
    padding: 10px 24px;
}

.section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    margin: 3px 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

.dropdown-item.logout {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 12px 0;
}

.item-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.toggle-switch {
    margin-left: auto;
    position: relative;
    width: 36px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch label:before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + label {
    background: #10b981;
}

.toggle-switch input:checked + label:before {
    transform: translateX(16px);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    animation: statusDotPulse 2s ease-in-out infinite;
}

@keyframes statusDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.session-info i {
    font-size: 0.65rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .user-profile-premium {
        margin: 20px 12px;
    }
    
    .profile-header {
        padding: 20px 16px 16px 16px;
    }
    
    .avatar-container {
        margin-bottom: 16px;
    }
    
    .avatar-circle {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .admin-crown {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        top: -6px;
        right: -6px;
    }
    
    .username-container {
        margin-bottom: 10px;
    }
    
    .username {
        font-size: 1rem;
    }
    
    .badge-premium {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .dropdown-section {
        padding: 8px 20px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        margin: 2px 0;
    }
    
    .status-bar {
        padding: 14px 20px;
    }
}

/* ===== GRÁFICOS MELHORADOS ===== */

/* Container dos gráficos com efeito glass aprimorado */
.chart-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 1.75rem !important;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.15) 50%, 
        transparent 100%);
    transition: left 1s ease;
    pointer-events: none;
    z-index: 1;
}

.chart-container:hover::before {
    left: 100%;
}

.chart-container:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 35px 70px rgba(102, 126, 234, 0.18),
        0 15px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Canvas com efeitos 3D */
.chart-container canvas {
    border-radius: 16px !important;
    transition: all 0.4s ease !important;
    filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.12)) !important;
    position: relative;
    z-index: 2;
}

.chart-container:hover canvas {
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.18)) !important;
    transform: scale(1.005);
}

/* Seção de gráficos com gradiente premium */
.section-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.section-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.4) 20%,
        rgba(139, 92, 246, 0.5) 50%,
        rgba(244, 63, 94, 0.4) 80%,
        transparent 100%);
    border-radius: 24px 24px 0 0;
}

.section-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 40px 80px rgba(102, 126, 234, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Headers dos gráficos melhorados */
.section-card-header {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(139, 92, 246, 0.05) 100%) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.12) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem 2rem !important;
    position: relative;
}

.section-card-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.7) 0%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(244, 63, 94, 0.7) 100%);
    border-radius: 3px;
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.section-card-title {
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    letter-spacing: -0.025em !important;
}

.section-card-title i {
    color: #667eea !important;
    font-size: 1.375rem !important;
    padding: 0.75rem !important;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(139, 92, 246, 0.2) 100%) !important;
    border-radius: 12px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.section-card:hover .section-card-title i {
    transform: scale(1.15) rotate(8deg) !important;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.25) 0%, 
        rgba(139, 92, 246, 0.3) 100%) !important;
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.2);
}

/* Animações de loading ultra modernas */
.chart-container:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: ultraModernSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    z-index: 10;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes ultraModernSpin {
    0% { 
        transform: rotate(0deg) scale(1);
        border-top-color: #667eea;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        border-top-color: #8b5cf6;
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    }
    50% { 
        transform: rotate(180deg) scale(1);
        border-top-color: #f43f5e;
        box-shadow: 0 0 30px rgba(244, 63, 94, 0.4);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        border-top-color: #06b6d4;
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        border-top-color: #667eea;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
}

/* Overlay de loading premium */
.chart-container:not(.loaded)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(15px);
    z-index: 9;
    border-radius: 20px;
    animation: loadingPulse 2s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Efeitos de entrada cinematográficos */
.chart-container.loaded {
    animation: cinematicEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cinematicEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px) rotateX(15deg);
        filter: blur(10px);
    }
    30% {
        opacity: 0.3;
        transform: scale(0.9) translateY(20px) rotateX(8deg);
        filter: blur(5px);
    }
    60% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-10px) rotateX(-3deg);
        filter: blur(2px);
    }
    80% {
        opacity: 0.9;
        transform: scale(1.02) translateY(-5px) rotateX(1deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Efeito de brilho holográfico nos gráficos */
.chart-container:hover {
    position: relative;
}

.chart-container:hover::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #667eea);
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: holographicGlow 3s ease-in-out infinite;
}

@keyframes holographicGlow {
    0%, 100% {
        opacity: 0.4;
        filter: blur(12px);
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        filter: blur(20px);
        transform: scale(1.02);
    }
}

/* Responsividade premium */
@media (max-width: 1200px) {
    .chart-container {
        padding: 1.5rem !important;
        border-radius: 18px !important;
    }
    
    .section-card-header {
        padding: 1.25rem 1.5rem !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .section-card-title {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 768px) {
    .chart-container {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    .section-card {
        border-radius: 20px !important;
    }
    
    .section-card-header {
        padding: 1rem 1.25rem !important;
        border-radius: 14px 14px 0 0 !important;
    }
    
    .section-card-title {
        font-size: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .section-card-title i {
        font-size: 1.25rem !important;
        padding: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .chart-container {
        padding: 1rem !important;
        border-radius: 14px !important;
    }
    
    .section-card-header {
        padding: 0.875rem 1rem !important;
    }
    
    .section-card-title {
        font-size: 0.95rem !important;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem !important;
    }
    
    .chart-container:not(.loaded)::after {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border-width: 3px;
    }
}

/* Ícones simples nos títulos das seções */
.section-title-icon {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* ===== FILTROS PROFISSIONAIS - DESIGN CORPORATIVO PREMIUM ===== */

.filters-section {
    margin-bottom: 2.5rem;
}

.filters-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(59, 130, 246, 0.08);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.filters-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
    border-radius: 16px 16px 0 0;
}

/* Cabeçalho dos Filtros */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filters-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.filters-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.filters-title-text h6 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.filters-title-text span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.filters-actions {
    display: flex;
    gap: 0.75rem;
}

/* Botões de Ação Premium */
.btn-clear,
.btn-apply {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-clear {
    background: #ffffff;
    border-color: #d1d5db;
    color: #64748b;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-clear:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.btn-apply {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-apply:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Formulário de Filtros */
.filters-form {
    padding: 0;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Grupos de Filtros */
.filter-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.filter-group:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.filter-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.filter-group-title i {
    color: #3b82f6;
    font-size: 1.125rem;
}

.filter-group-title span {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item-wide {
    grid-column: span 2;
}

/* Labels dos Filtros */
.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.filter-label i {
    color: #6b7280;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

/* Campos de Input Premium */
.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.filter-select:hover,
.filter-input:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.filter-input-group {
    position: relative;
}

/* Estados dos Campos */
.filter-select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.filter-select option:disabled {
    color: #94a3b8;
    font-style: italic;
}

/* Responsividade Premium */
@media (max-width: 1200px) {
    .filter-group-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .filter-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .filters-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        padding: 1rem;
    }
    
    .filters-actions {
        justify-content: center;
    }
    
    .filters-form {
        padding: 1rem;
    }
    
    .filter-group {
        padding: 1.25rem;
    }
    
    .filter-group-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .filter-item-wide {
        grid-column: span 1;
    }
    
    .btn-clear,
    .btn-apply {
        flex: 1;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .filters-header {
        padding: 1.25rem;
    }
    
    .filters-form {
        padding: 1.25rem;
    }
    
    .filter-group {
        padding: 1rem;
    }
    
    .filters-grid {
        gap: 1.5rem;
    }
    
    .filters-title {
        gap: 0.75rem;
    }
    
    .filters-icon {
        width: 40px;
        height: 40px;
    }
    
    .filters-icon i {
        font-size: 1rem;
    }
}

/* Animações Premium */
.filters-container {
    animation: slideDownFade 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.filter-group {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.2s; }
.filter-group:nth-child(3) { animation-delay: 0.3s; }

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

/* Estados de Interação Avançados */
.filter-item:focus-within .filter-label {
    color: #3b82f6;
}

.filter-item:focus-within .filter-label i {
    color: #3b82f6;
}

.filter-item:focus-within {
    transform: translateY(-2px);
}

/* Melhorias de Acessibilidade */
.filter-select:focus,
.filter-input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Indicadores Visuais Premium */
.filter-select[data-selected="true"] {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    position: relative;
}

.filter-select[data-selected="true"]::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 0.875rem;
    background: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.filter-input[data-filled="true"] {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Contador de Filtros Ativos */
.filter-active-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

/* Badge de Filtro Ativo */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.filter-badge .remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.filter-badge .remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Seletor de Métrica */
.metric-selector {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-selector-header {
    margin-bottom: 12px;
}

.metric-selector-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.metric-selector-title i {
    color: #667eea;
    font-size: 16px;
}

.metric-selector-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metric-option {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
}

.metric-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.metric-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-option-content:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.metric-option input[type="radio"]:checked + .metric-option-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.metric-option-content i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.metric-option input[type="radio"]:checked + .metric-option-content i {
    color: #ffffff;
    transform: scale(1.1);
}

.metric-option-content span {
    font-size: 14px;
    font-weight: 600;
}

/* Seção de Filtros Ativos */
.active-filters {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bae6fd;
    padding: 1rem 2rem;
    animation: slideDownFade 0.3s ease-out;
}

.active-filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0369a1;
    font-size: 0.875rem;
}

.active-filters-header i {
    color: #0284c7;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Animações */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Layout Compacto dos Filtros */
.filters-grid-compact {
    padding: 1.5rem 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: end;
}

.filter-item-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.filter-label-compact i {
    color: #3b82f6;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.filter-label-compact span {
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-select-compact {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #374151;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.filter-select-compact:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-select-compact:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.filter-select-compact[data-selected="true"] {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    position: relative;
}

.filter-select-compact[data-selected="true"]::after {
    content: '✓';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 0.75rem;
    background: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

/* Melhorias de Responsividade */
@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters-actions {
        justify-content: center;
    }
    
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filters-grid-compact {
        padding: 1rem;
    }
    
    .active-filters-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-label-compact {
        font-size: 0.8rem;
    }
    
    .filter-select-compact {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Efeitos de Loading */
.filter-select:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Botões de Alternância de Métrica nos Gráficos */
.chart-metric-toggle {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    margin-left: auto;
}

.metric-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.metric-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
    transform: translateY(-1px);
}

.metric-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.metric-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.metric-btn i {
    font-size: 12px;
}

.metric-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* Responsividade para botões de métrica */
@media (max-width: 768px) {
    .chart-metric-toggle {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .metric-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }
    
    .metric-btn span {
        display: none;
    }
    
    .metric-btn i {
        font-size: 14px;
    }
}

/* Classification Section Styling - New Elegant Design */
.classification-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin: 1rem 0;
}

.classification-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.classification-title i {
    font-size: 1.5rem;
    color: #6c5ce7;
    margin-right: 0.75rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.classification-title span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    letter-spacing: -0.5px;
}

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

.classification-field {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.classification-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.classification-field:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
    border-color: #6c5ce7;
}

.classification-field:hover::before {
    opacity: 1;
}

.field-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.field-label i {
    font-size: 1.1rem;
    color: #6c5ce7;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.field-label span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.value-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.value-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.value-badge:hover::before {
    left: 100%;
}

.value-badge.diretoria {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.value-badge.produto {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.value-badge.tipo {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.value-badge.subtipo {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.value-empty {
    color: #b2bec3;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .classification-section {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .classification-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .classification-field {
        padding: 1.25rem;
    }
    
    .classification-title {
        margin-bottom: 1rem;
    }
    
    .classification-title span {
        font-size: 1.1rem;
    }
}

/* ============================================
   MELHORIAS DE RESPONSIVIDADE GERAIS
   ============================================ */

/* Layout geral responsivo */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-container {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar-container.show {
        left: 0;
    }
    
    .col-lg-10 {
        width: 100%;
    }
}

/* Dashboard Header responsivo */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem 0.75rem;
    }
    
    .dashboard-header h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-header p {
        font-size: 0.875rem;
    }
    
    .dashboard-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .dashboard-controls {
        width: 100%;
        margin-top: 0.75rem;
    }
    
    .dashboard-controls .btn {
        width: 100%;
    }
}

/* Filtros responsivos melhorados */
@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-section {
        margin-bottom: 1rem;
    }
    
    .filters-container {
        padding: 0;
    }
    
    .filters-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-title-text h6 {
        font-size: 1rem;
    }
    
    .filters-title-text span {
        font-size: 0.75rem;
    }
    
    .filters-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters-actions .btn-clear,
    .filters-actions .btn-apply {
        width: 100%;
        justify-content: center;
    }
    
    .filters-grid-compact {
        padding: 1rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-item-compact {
        width: 100%;
    }
    
    .filter-label-compact {
        font-size: 0.8125rem;
    }
    
    .filter-select-compact {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .filters-header {
        padding: 0.75rem;
    }
    
    .filters-grid-compact {
        padding: 0.75rem;
    }
    
    .filter-row {
        gap: 0.75rem;
    }
}

/* Gráficos responsivos melhorados */
@media (max-width: 1200px) {
    .chart-container {
        height: 400px !important;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 350px !important;
        padding: 12px;
        margin-bottom: 1rem;
    }
    
    .section-card {
        margin-bottom: 1rem;
    }
    
    .section-card-header {
        padding: 12px 16px;
    }
    
    .section-card-title {
        font-size: 1rem;
    }
    
    .section-card-body {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 300px !important;
        padding: 8px;
    }
    
    .section-card-header {
        padding: 10px 12px;
    }
    
    .section-card-title {
        font-size: 0.9375rem;
    }
    
    .section-card-body {
        padding: 10px;
    }
}

/* Cards de seção responsivos */
@media (max-width: 768px) {
    .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row.g-4 > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .col-lg-3,
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Grid de cards KPI responsivo - Ajustes para telas menores de desktop */
/* Desktop médio (1280px - 1399px) - manter 4 colunas mas com ajustes */
@media (max-width: 1399px) and (min-width: 1280px) {
    .row.g-4 {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .row.g-4 > .col-lg-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Desktop pequeno (1200px - 1279px) - manter 4 colunas com espaçamento reduzido */
@media (max-width: 1279px) and (min-width: 1200px) {
    .row.g-4 {
        margin-left: -0.625rem;
        margin-right: -0.625rem;
    }
    
    .row.g-4 > .col-lg-3 {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    
    .stats-card {
        margin-bottom: 0.75rem;
    }
}

/* Tablet grande / Laptop pequeno (1024px - 1199px) - 2 colunas */
@media (max-width: 1199px) and (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .row.g-4 {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .row.g-4 > .col-lg-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Tablet (768px - 991px) - 2 colunas */
@media (max-width: 991px) and (min-width: 768px) {
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row.g-4 > .col-lg-3,
    .row.g-4 > .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Mobile grande (576px - 767px) - 2 colunas */
@media (max-width: 767px) and (min-width: 576px) {
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile pequeno (até 575px) - 1 coluna */
@media (max-width: 575px) {
    .col-lg-3,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Sidebar responsiva melhorada */
@media (max-width: 1200px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Container principal responsivo */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0;
    }
    
    .main-content {
        padding: 0.5rem;
    }
}

/* Melhorias de toque para mobile */
@media (max-width: 768px) {
    button,
    .btn,
    .filter-select,
    .filter-input {
        min-height: 44px; /* Tamanho mínimo recomendado para toque */
    }
    
    .stats-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Otimizações de performance para mobile */
@media (max-width: 768px) {
    .stats-card::before,
    .stats-card::after {
        will-change: transform;
    }
    
    .chart-container {
        will-change: transform;
    }
}

/* Ajustes de tipografia para mobile */
@media (max-width: 480px) {
    body {
        font-size: 0.875rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

/* Melhorias de espaçamento para mobile */
@media (max-width: 768px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
}

/* Scroll suave em mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   RESPONSIVIDADE ESPECÍFICA - TELA DE EVENTOS
   ============================================ */

/* Cards de Estatísticas Rápidas (stat-card) - Responsividade */
@media (max-width: 1399px) and (min-width: 1200px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .stat-card {
        padding: 0.875rem;
        gap: 12px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .stat-card {
        padding: 0.75rem;
        gap: 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 1.4rem;
    }
    
    .stat-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-card {
        padding: 0.875rem;
        gap: 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 1.3rem;
    }
    
    .stat-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
        gap: 12px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

/* Cards de Totalizações (stats-card) na tela de eventos - Responsividade */
@media (max-width: 1399px) and (min-width: 1200px) {
    .eventos-main-content .stats-card {
        min-height: 160px;
    }
    
    .eventos-main-content .stats-number {
        font-size: 2rem;
    }
    
    .eventos-main-content .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .eventos-main-content .col-xxl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .eventos-main-content .stats-card {
        min-height: 150px;
    }
    
    .eventos-main-content .stats-number {
        font-size: 1.875rem;
    }
    
    .eventos-main-content .stats-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .eventos-main-content .stats-card-content {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .eventos-main-content .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .eventos-main-content .stats-card {
        min-height: 140px;
    }
    
    .eventos-main-content .stats-number {
        font-size: 1.75rem;
    }
    
    .eventos-main-content .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .eventos-main-content .stats-card-content {
        padding: 1.125rem 0.875rem;
    }
}

@media (max-width: 767px) {
    .eventos-main-content .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .eventos-main-content .stats-card {
        min-height: 130px;
        margin-bottom: 1rem;
    }
    
    .eventos-main-content .stats-number {
        font-size: 1.625rem;
    }
    
    .eventos-main-content .stats-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }
    
    .eventos-main-content .stats-card-content {
        padding: 1rem 0.875rem;
    }
    
    .eventos-main-content .stats-label {
        font-size: 0.875rem;
    }
}

/* Header da tela de eventos - Responsividade */
@media (max-width: 1199px) {
    .eventos-main-content .dashboard-header {
        padding: 1rem 0.875rem;
    }
    
    .eventos-main-content .dashboard-header h3 {
        font-size: 1.5rem;
    }
    
    .eventos-main-content .dashboard-header p {
        font-size: 0.875rem;
    }
}

@media (max-width: 991px) {
    .eventos-main-content .dashboard-controls {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .eventos-main-content .search-box {
        width: 100%;
    }
    
    .eventos-main-content .search-box input {
        min-width: 100% !important;
        width: 100%;
    }
    
    .eventos-main-content .dashboard-controls .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .eventos-main-content .dashboard-header {
        padding: 0.875rem 0.75rem;
    }
    
    .eventos-main-content .dashboard-header h3 {
        font-size: 1.25rem;
    }
    
    .eventos-main-content .dashboard-header p {
        font-size: 0.8125rem;
    }
    
    .eventos-main-content .dashboard-controls {
        margin-top: 0.75rem;
    }
}

/* Layout principal da tela de eventos */
@media (max-width: 1199px) {
    .eventos-main-content {
        padding: 1rem 1rem;
    }
}

@media (max-width: 991px) {
    .eventos-main-content {
        padding: 0.875rem 0.75rem;
    }
    
    .row.g-3,
    .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row.g-3 > *,
    .row.g-4 > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 767px) {
    .eventos-main-content {
        padding: 0.75rem 0.5rem;
    }
    
    .row.g-3,
    .row.g-4 {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row.g-3 > *,
    .row.g-4 > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Filtros na tela de eventos - Responsividade melhorada */
@media (max-width: 1199px) {
    .eventos-main-content .filters-grid-compact {
        padding: 1.25rem 1.5rem;
    }
    
    .eventos-main-content .filter-row {
        gap: 1.25rem;
    }
}

@media (max-width: 991px) {
    .eventos-main-content .filters-grid-compact {
        padding: 1rem;
    }
    
    .eventos-main-content .filter-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .eventos-main-content .filters-grid-compact {
        padding: 0.875rem;
    }
    
    .eventos-main-content .filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .eventos-main-content .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Tabela de eventos - Responsividade */
@media (max-width: 1199px) {
    .table-modern {
        font-size: 0.8125rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 991px) {
    .table-modern {
        font-size: 0.75rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.5rem 0.375rem;
    }
}

@media (max-width: 767px) {
    .table-modern {
        font-size: 0.6875rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
}

/* Espaçamento geral melhorado */
@media (max-width: 1199px) {
    .eventos-main-content .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 991px) {
    .eventos-main-content .mb-4 {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 767px) {
    .eventos-main-content .mb-4 {
        margin-bottom: 1rem !important;
    }
}