        body {
            background-color: #f8f9fa;
            font-family: 'Poppins', sans-serif;
            min-height: 100vh;
        }

        html, body {
            overflow-x: hidden;
        }

        /* Aplicar Poppins em todos os elementos */
        * {
            font-family: 'Poppins', sans-serif !important;
        }

        /* Estilos específicos para diferentes elementos */
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 700;
            color: #127bb5 !important;
        }

        .container {
            margin-left: 10%;
            margin-right: 10%;
        }

        .btn {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .form-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .card-title,
        .card-header h5 {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }
        
        .table th {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .table td {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .badge {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .dropdown-menu {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .alert {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        /* Estilos específicos para elementos customizados */
        .divider-text {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .filter-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        .table-info {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .sortable {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        .dropdown-toggle {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .form-check-label {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .text-muted {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .fw-semibold {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
        }

        /* Estilos para elementos específicos do projeto */
        .card-header {
            font-family: 'Poppins', sans-serif !important;
        }

        .card-body {
            font-family: 'Poppins', sans-serif !important;
        }

        .form-control {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .form-select {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .form-check-input {
            font-family: 'Poppins', sans-serif !important;
        }

        .nav-link {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .navbar-brand {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 700;
        }

        .modal-title {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        .modal-body {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .tooltip {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .popover {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        /* Estilos para ECharts */
        .echarts-tooltip {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .echarts-legend {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .echarts-title {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 600;
            color: #127bb5 !important;
        }

        /* Garantir que todos os elementos de texto usem Poppins */
        input,
        textarea,
        select,
        option {
            font-family: 'Poppins', sans-serif !important;
        }

        /* Garantir que os ícones Font Awesome sejam exibidos */
        .fas,
        .far,
        .fab,
        .fal,
        .fad {
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            display: inline-block !important;
            font-style: normal !important;
            font-variant: normal !important;
            text-rendering: auto !important;
            line-height: 1 !important;
        }

        .far {
            font-weight: 400 !important;
        }

        /* Estilos para elementos específicos do Bootstrap */
        .list-group-item {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .breadcrumb {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 400;
        }

        .pagination {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .progress-bar {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        .legend-circle {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 5px;
            vertical-align: middle;
        }

        /* Sombreamento das áreas principais */
        .card {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
            border: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.95);
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.12);
        }

        /* Header moderno com design UX avançado */
        .header-modern {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            padding: 2rem 0;
            margin-bottom: 0;
        }

        .header-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
            pointer-events: none;
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .header-icon {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .header-icon:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }

        .header-icon i {
            font-size: 2.5rem;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .header-text {
            flex: 1;
        }

        .header-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            margin: 0 0 0.5rem 0;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            line-height: 1.2;
        }

        .header-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            font-weight: 400;
            line-height: 1.4;
        }

        .header-stats {
            display: flex;
            gap: 2rem;
            justify-content: flex-end;
            position: relative;
            z-index: 2;
        }

        .stat-item {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            padding: 1.5rem 1.25rem;
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .stat-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-number {
            font-size: 2.25rem;
            font-weight: 800;
            color: white;
            margin: 0 0 0.25rem 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            line-height: 1;
        }

        .stat-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .header-decoration {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        }

        /* Responsividade do header */
        @media (max-width: 768px) {
            .header-modern {
                padding: 1.5rem 0;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .header-icon {
                width: 60px;
                height: 60px;
            }

            .header-icon i {
                font-size: 2rem;
            }

            .header-title {
                font-size: 2rem;
            }

            .header-subtitle {
                font-size: 1rem;
            }

            .header-stats {
                justify-content: center;
                gap: 1rem;
                margin-top: 1rem;
            }

            .stat-item {
                padding: 1rem 0.75rem;
                min-width: 100px;
            }

            .stat-number {
                font-size: 1.75rem;
            }
        }

        /* Alert personalizado */
        .alert {
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .alert-success {
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
            border-left: 4px solid #28a745;
        }

        /* Card do gráfico principal */
        .chart-card {
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
            border-radius: 15px;
            overflow: hidden;
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        }

        /* Cards de filtro e controles */
        .control-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
        }

        /* Dropdown personalizado */
        .form-select {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .form-select:focus {
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
            border-color: #667eea;
        }

        /* Legend com gradiente */
        .legend-card {
            background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
            border-top: 3px solid #667eea;
        }

        .legend-card .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
        }

        /* Badges com sombra */
        .badge {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Efeito glass morphism nos containers */
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 1050;
            position: absolute;
            background-color: #fff;
            pointer-events: auto;
            top: 100%;
            left: 0;
            margin-top: 0.5rem;
            min-width: 300px;
            border-radius: 12px;
        }

        /*.dropdown-menu.show {
            position: fixed !important;
            z-index: 1001 !important;
        }*/

        .dropdown-backdrop {
            position: fixed;
            inset: 0;
            z-index: 1040;
            background: transparent;
        }

        .dropdown {
            position: relative;
            z-index: auto;
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        .dropdown-toggle::after {
            margin-left: auto;
        }

        /* Garantir que o gráfico fique atrás */
        #chart,
        .chart-card,
        .echarts-container,
        .echarts-container canvas {
            z-index: 1;
            position: relative;
        }

        /* Dropdown filter tweaks - z-index muito alto para sobrepor ECharts */
        .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 1001 !important;
            position: absolute !important;
            top: 100%;
            left: 0;
        }

        .dropdown-backdrop {
            position: fixed;
            inset: 0;
            z-index: 1001;
            background: transparent;
        }

        .dropdown {
            z-index: 1000;
            position: relative;
        }

        .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        /* Table styling */
        #campaignsTable tbody tr {
            transition: all 0.3s ease;
            border-bottom: 1px solid #f1f3f4;
        }

        #campaignsTable tbody tr:hover {
            background-color: rgba(102, 126, 234, 0.05);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        #campaignsTable tbody td {
            padding: 8px 12px;
            vertical-align: middle;
            border: none;
            font-size: 0.85rem;
        }

        #campaignsTable tbody td:first-child {
            font-weight: 600;
            color: #2c3e50;
        }

        #campaignsTable tbody td:nth-child(2) {
            color: #667eea;
            font-weight: 500;
        }

        #campaignsTable tbody td:nth-child(3),
        #campaignsTable tbody td:nth-child(4),
        #campaignsTable tbody td:nth-child(5) {
            font-weight: 600;
            color: #495057;
        }

        #campaignsTable tbody td:nth-child(6) {
            font-weight: 700;
            color: #28a745;
        }

        #campaignsTable tbody td:last-child {
            font-weight: 600;
            color: #6c757d;
        }

        .badge {
            font-size: 0.75em;
            padding: 0.5em 0.75em;
        }


        /* Sortable column headers */
        .sortable {
            cursor: pointer;
            user-select: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .sortable:hover {
            background-color: rgba(102, 126, 234, 0.1) !important;
            color: #667eea !important;
        }

        .sortable:hover i {
            color: #667eea !important;
        }

        .sortable.active {
            background-color: rgba(102, 126, 234, 0.15) !important;
            color: #667eea !important;
        }

        .sortable.active i {
            color: #667eea !important;
        }

        .sortable i {
            transition: all 0.3s ease;
        }

        /* Table row selection */
        #campaignsTable tbody tr {
            cursor: pointer;
        }

        #campaignsTable tbody tr.selected {
            background-color: rgba(102, 126, 234, 0.15) !important;
            border-left: 4px solid #667eea;
            transform: translateX(2px);
        }

        #campaignsTable tbody tr.selected td {
            color: #667eea !important;
            font-weight: 600;
        }

        /* Container do filtro com z-index alto */
        /*.control-card {
            z-index: 999999 !important;
            position: relative;
        }*/

        /* Garantir que o container de filtros tenha z-index alto */
        /*.filter-container {
            z-index: 1000000 !important;
            position: relative;
        }*/

        /* Filter Container - Layout unificado */
        .filter-container {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            overflow: visible;
            position: relative;
        }

        .filter-container .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 1.5rem 2rem;
        }

        .filter-container .card-header h5 {
            font-weight: 600;
            font-size: 1.1rem;
            margin: 0;
        }

        .filter-container .card-body {
            padding: 2rem;
            overflow: visible;
        }

        .filter-group {
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: visible;
        }

        .filter-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
        }

        .filter-label i {
            color: #667eea;
            font-size: 0.8rem;
        }

        .filter-container .btn {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 2px solid;
        }

        .filter-container .btn-outline-primary {
            border-color: #667eea;
            color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        .filter-container .btn-outline-primary:hover {
            background-color: #667eea;
            border-color: #667eea;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .filter-container .btn-outline-success {
            border-color: #28a745;
            color: #28a745;
            background: rgba(40, 167, 69, 0.05);
        }

        .filter-container .btn-outline-success:hover {
            background-color: #28a745;
            border-color: #28a745;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .filter-container .text-muted {
            font-size: 0.8rem;
            font-weight: 500;
            color: #6c757d !important;
        }

        .filter-container .dropdown-menu {
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            z-index: 1000001 !important;
            position: absolute !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            transform: none !important;
            margin-top: 0.5rem;
            min-width: 300px;
        }

        .filter-container .dropdown {
            position: relative;
        }
        .filter-container .dropdown-menu {
          position: absolute;
          top: 100%;
          left: 0;
          margin-top: 0.5rem;
          min-width: 300px;
          border-radius: 12px;
          border: 1px solid rgba(0,0,0,0.1);
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          background-color: #fff;
          pointer-events: auto;
          z-index: 1050;
        }

        .filter-container .dropdown.show .dropdown-menu {
            display: block !important;
        }

        .filter-container .form-check-input:checked {
            background-color: #667eea;
            border-color: #667eea;
        }

        /* Responsividade para filter container */
        @media (max-width: 768px) {
            .filter-container .card-body {
                padding: 1.5rem;
            }

            .filter-container .card-header {
                padding: 1rem 1.5rem;
            }

            .filter-container .card-header h5 {
                font-size: 1rem;
            }

            .filter-group {
                margin-bottom: 1.5rem;
            }
        }

        /* Container da tabela - responsivo */
        .table-container {
            overflow-y: auto;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            background: #fff;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: #667eea #f1f1f1;
        }
        
        
        .table-container::-webkit-scrollbar {
            width: 10px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 5px;
            margin: 5px 0;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 5px;
            border: 2px solid #f1f1f1;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            border: 2px solid #e9ecef;
        }


        /* Scroll sempre visível no WebKit */
        .table-container::-webkit-scrollbar {
            -webkit-appearance: none;
            width: 12px;
        }

        .table-container::-webkit-scrollbar:vertical {
            width: 12px;
        }

        .table-container::-webkit-scrollbar:horizontal {
            height: 12px;
        }

        /* Estilização do cabeçalho fixo */
        .table-container thead th {
            position: sticky;
            top: 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            z-index: 10;
            border-bottom: 2px solid #dee2e6;
        }

        /* Indicador de itens limitados */
        .table-info {
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.2);
            border-radius: 8px;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #495057;
        }

        .table-info i {
            color: #667eea;
            margin-right: 0.5rem;
        }

        .table-container tbody td {
            padding: 8px 12px;
            vertical-align: middle;
            font-size: 0.85rem;
        }

        .table-container thead th {
            padding: 8px 12px;
            font-size: 0.8rem;
        }

        /* Destacar quando há scroll ativo */
        .table-container:has(.table-info[style*="block"]) {
            border: 2px solid rgba(102, 126, 234, 0.2);
            box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
        }


        /* Scrollbar mais visível */
        .table-container::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 6px;
            margin: 8px 0;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 6px;
            border: 3px solid #f8f9fa;
            min-height: 40px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            border: 3px solid #e9ecef;
        }

        /* Garantir que o conteúdo se adapte ao container */
        .table-container table {
            width: 80%;
            margin: 0 auto;
        }


        /* Scrollbar mais visível */
        .table-container::-webkit-scrollbar {
            width: 14px;
            height: 14px;
        }

        .table-container::-webkit-scrollbar-corner {
            background: #f8f9fa;
        }

        /* Estilização da logo no título */
        .header-logo {
            height: 60px;
            width: 50px;
            margin-right: 20px;
            vertical-align: middle;
            transition: transform 0.3s ease, opacity 0.3s ease;
            cursor: pointer;
        }

        .header-logo:hover {
            transform: scale(1.05);
            opacity: 0.8;
        }

        .header-title {
            display: flex;
            align-items: center;
            margin-bottom: 0;
        }

        .header-title h1 {
            margin: 0;
            font-size: 2.5rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            color: #127bb5;
        }

        /* Responsividade para a logo */
        @media (max-width: 768px) {
            .header-logo {
                height: 40px;
                margin-right: 15px;
            }

            .header-title h1 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 576px) {
            .header-logo {
                height: 30px;
                margin-right: 10px;
            }

            .header-title h1 {
                font-size: 1.1rem;
            }

            .header-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        /* Footer Styles */
        .footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        }

        .footer-logo {
            transition: transform 0.3s ease;
            filter: brightness(0) invert(1);
        }

        .footer-logo:hover {
            transform: scale(1.05);
        }

        .footer-links .nav-link {
            color: rgba(255, 255, 255, 0.8) !important;
            transition: color 0.3s ease;
        }

        .footer-links .nav-link:hover {
            color: white !important;
        }

        .footer-center p {
            color: rgba(255, 255, 255, 0.9);
        }

        /* Responsividade do footer */
        @media (max-width: 768px) {
            .footer .container {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-left,
            .footer-right {
                width: 100%;
                justify-content: center;
            }

            .footer-right .nav {
                justify-content: center !important;
            }
        }

        /* Miniatura do gráfico */
        .chart-miniature {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 300px;
            height: 200px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .chart-miniature.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .miniature-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px 12px 0 0;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .btn-close-miniature {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }

        .btn-close-miniature:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .miniature-chart {
            width: 100%;
            height: 160px;
            padding: 8px;
        }

        /* Botão para mostrar miniatura */
        .show-miniature-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(102, 126, 234, 0.9);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 0.75rem;
            cursor: pointer;
            z-index: 100;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .show-miniature-btn:hover {
            background: rgba(102, 126, 234, 1);
            transform: translateY(-1px);
        }

.filter-col { flex: 0 0 25% !important; max-width: 25% !important; }

@media (max-width: 1200px){
  .filter-col { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (max-width: 992px){
  .filter-col { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 576px){
  .filter-col { flex: 0 0 100%; max-width: 100%; }
}

.filter-container .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  white-space: normal; 
  overflow: visible;   
  text-overflow: unset;
  line-height: 1.2;    
  padding-right: 2rem; 
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .control-card, .filter-container, .filter-container .dropdown,
  #chart, .chart-card, .echarts-container, .echarts-container canvas {
    z-index: auto !important;
    position: relative;
  }

  .dropdown-menu.portalized-mobile {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;

    /* bottom-sheet */
    max-height: 80vh;
    width: 100vw !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;

    z-index: 1100 !important;
    background-color: #fff; 
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);

    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
  }

  .dropdown-menu.portalized-mobile .dropdown-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }

  .dropdown-backdrop-portal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0,0,0,0);
    touch-action: none;
  }

  body.mobile-dropdown-open {
    overflow: hidden !important;
    position: relative;
    touch-action: none;
  }

  .filter-container .dropdown-menu {
    min-width: 280px;
  }
}

.filter-container .dropdown.show .dropdown-toggle,
.filter-container .dropdown-toggle:focus,
.filter-container .dropdown-toggle[aria-expanded="true"] {
  background-color: #667eea;
  color: #fff !important;   
  border-color: #667eea;
}

.total-card {
  background: linear-gradient(135deg, #f3f8ff 0%, #e8f2ff 100%);
  border: 1px solid rgba(102,126,234,0.1);
  border-radius: 15px;
  min-height: 230px;
  max-width: 270px;
  text-align: left;
  padding-left: 1.5rem;
  left: 10px;
}
.total-card .kpi-icon {
  background: rgba(102,126,234,0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.total-card .kpi-icon i {
  font-size: 22px;
  color: #667eea;
}
.total-card .kpi-label {
  color: #6c757d;
  font-size: 22px;
  font-weight: 500;
}
.total-card .kpi-value {
  color: #1674d1;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.info-card {
  background: #f3f8ff;
  border: 1px solid rgba(102,126,234,0.1);
  border-radius: 12px;
  min-height: 230px;
  max-width: 870px;
  display: flex;
  align-items: center;
}
.info-card .card-body {
  padding: 1.25rem 1.5rem;
}

.info-title {
  font-weight: 700;
  color: #0f4d8a;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-text {
  color: #1e293b;
  line-height: 1.4;
  font-size: 13px;
  margin-bottom: 0.4rem;
}

.info-text .metric,
.info-text strong {
  font-size: 13px;
  font-weight: 600;
}

/* ==========================
   TABELA DE EVENTOS (Radar simplificado estilo Score)
   ========================== */

.table-events {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Cabeçalho */
.table-events thead th {
  background: #f8f9fa; /* cinza claro igual Score */
  color: #6c757d;      /* text-muted */
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  vertical-align: middle;
}

.table-events thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
}

.table-events thead th.sortable:hover {
  background-color: rgba(18, 123, 181, 0.08); /* azul leve */
  color: #127bb5;
}

.table-events thead th.sortable i {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #adb5bd;
  transition: color 0.2s;
}

.table-events thead th.sortable:hover i {
  color: #127bb5;
}

/* Corpo */
.table-events tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
}

.table-events tbody tr:hover {
  background-color: rgba(18, 123, 181, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.table-events tbody td {
  padding: 8px 12px;
  vertical-align: middle;
  font-size: 0.85rem;
  border: none;
  text-align: left;
}

/* Colunas coloridas iguais ao Score */
.table-events tbody td:first-child {
  font-weight: 600;
  color: #2c3e50; /* título */
}

.table-events tbody td:nth-child(2) {
  font-weight: 500;
  color: #127bb5; /* azul Radar */
}

.table-events tbody td:nth-child(3),
.table-events tbody td:nth-child(4),
.table-events tbody td:nth-child(5) {
  font-weight: 600;
  color: #495057;
}

.table-events tbody td:last-child {
  font-weight: 600;
  color: #6c757d;
}

/* Container */
.table-container {
  max-height: 600px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fff;
  position: relative;
}

/* Scrollbar */
.table-container::-webkit-scrollbar {
  width: 10px;
}
.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}
.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #127bb5 0%, #42a5f5 100%);
  border-radius: 5px;
  border: 2px solid #f1f1f1;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0d6efd 0%, #1976d2 100%);
  border: 2px solid #e9ecef;
}

/* === Tabela === */
#eventsTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

/* Bordas internas */
#eventsTable th,
#eventsTable td {
  border: 1px solid #fff;
  padding: 6px 8px;
  font-size: 13px;
  vertical-align: middle;
}

#eventsTable td:first-child,
#eventsTable th[data-key="name"] {
  max-width: 150px;
  width: 150px;
}

#eventsTable td img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
}

#eventsTable thead th,
#eventsTable thead th * {
  font-weight: 600;
}

#eventsTable thead th {
  background: linear-gradient(135deg, #d6e4f9, #eaf2ff);
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  white-space: normal;
  line-height: 1.3;
}

#eventsTable tbody tr:hover {
  background-color: rgba(21, 101, 192, 0.08);
}

#eventsTable thead tr:hover {
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%) !important;
}

#eventsTable thead th.sortable {
  cursor: pointer;
  user-select: none;
}

#eventsTable thead th.sortable:hover {
  background: linear-gradient(135deg, #1e88e5 0%, #64b5f6 100%);
}

#eventsTable thead th .info-icon {
  margin-left: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85em;
}

/* Ícones de ordenação */
#eventsTable thead th.asc i,
#eventsTable thead th.desc i {
  color: #1565c0 !important;
  opacity: 1 !important;
}


#eventsTable thead th[data-key="date"],
#eventsTable thead th[data-key="volumeAcumulado"],
#eventsTable thead th[data-key="searches"],
#eventsTable thead th[data-key="news"],
#eventsTable thead th[data-key="volumeMensal"],
#eventsTable thead th[data-key="shareCategoria"] {
  width: 120px;
  max-width: 120px;
}

/* Célula do termômetro */
#eventsTable td:nth-child(9) {
  width: 180px;
  max-width: 180px;
  text-align: center;
  padding: 4px;
}

/* Wrapper do termômetro + selo */
#eventsTable td:nth-child(9) .thermo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

/* Termômetro fixo */
#eventsTable td:nth-child(9) .thermo-bar {
  flex: 1;
  max-width: 130px;  /* limite pro termômetro */
  position: relative;
}

/* Selo POP */
#eventsTable td:nth-child(9) .thermo-selo {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

/* Coluna Evolução */
#eventsTable thead th:last-child,
#eventsTable td:last-child {
  max-width: 160px;
  width: 160px;
  text-align: center;
  padding-left: 5px;
}

/* Ajusta o gráfico da evolução */
#eventsTable td:last-child svg {
  width: 100px;
  height: auto;
}

/* Categoria um pouco maior */
#eventsTable thead th[data-key="categoria"] {
  width: 150px;
}

/* Corpo da tabela */
#eventsTable td {
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  padding: 8px 6px;
}

/* Coluna Evento no corpo: imagem à esquerda, texto alinhado */
#eventsTable td:first-child {
  text-align: left;
}

#eventsTable td:first-child .event-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

#eventsTable td:first-child .event-link {
  display: inline-block;
  vertical-align: middle;
  font-weight: 500;
  color: #1565c0;
  text-decoration: none;
}

#eventsTable td:first-child .event-link:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  #eventsTable th,
  #eventsTable td {
    font-size: 12px;
    padding: 4px 6px;
  }
  #eventsTable td:first-child {
    max-width: 150px;
  }
}

/* Botãozinho de busca dentro do input-group */
.input-group-text {
  background-color: #1565c0; 
  color: #fff;               
  border: 1px solid #1565c0; 
}

.input-group-text i {
  color: #fff !important;
}

.input-group:focus-within .input-group-text {
  background-color: #0d47a1;
  border-color: #0d47a1;
}


/* ===== Campo de busca ===== */
.search-box {
  position: relative;
  width: 100%;
  max-width: 360px; /* largura maior */
  display: inline-block;
}

.search-box input {
  width: 100%;
  height: 44px; /* altura padronizada */
  padding: 10px 48px 10px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #2c3e50;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.2);
}

.search-box::after {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  pointer-events: none;
}

/* ===== Select (itens por página) ===== */
#pageSize {
  height: 44px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0 12px;
  color: #0d47a1;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

#pageSize:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,0.2);
}


/* =====================
   Paginação
   ===================== */
.pagination {
  gap: 4px;
}

.pagination .page-item .page-link {
  border: none;
  border-radius: 8px;
  color: #475569;
  font-weight: 500;
  background: #f1f5f9;
  padding: 6px 12px;
  transition: all 0.25s ease;
}

.pagination .page-item .page-link:hover {
  background: #e2e8f0;
  color: #1565c0;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(90deg, #1565c0, #42a5f5);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
}

.pagination .page-item.disabled .page-link {
  background: #f8fafc;
  color: #cbd5e1;
}

/* =====================
   Responsividade
   ===================== */
@media (max-width: 576px) {
  .table-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.filter-btn {
  background: linear-gradient(90deg, #1565c0, #42a5f5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.filter-btn:not(.active) {
  opacity: 0.4;
  filter: grayscale(40%);
}

.filter-btn.active {
  opacity: 1;
  filter: none;
  color: #fff;
}

.filter-btn:hover {
  opacity: 0.85;
}

.stat-card {
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #2c3e50;
  background: linear-gradient(135deg, #d6e4f9, #eaf2ff); /* azul claro intermediário */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.stat-card .icon {
  font-size: 26px;
  margin-bottom: 8px;
}
.stat-card h6 {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 4px;
  font-weight: 600;
}
.stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: #1565c0;
}
.stat-card small {
  display: block;
  margin-top: 3px;
  color: #555;
  font-size: 13px;
}

.category-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
#categoryStats, 
#categoryFilters {
  margin: 0 auto;
}

.table-events thead th {
  text-align: center !important;
}

.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.btn-gradient {
  background: linear-gradient(90deg, #1565c0, #42a5f5);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
  transition: all 0.25s ease;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.45);
  transform: translateY(-1px);
}

.exporting {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.table-events td.categoria-col, 
.table-events th[data-key="categoria"] {
  white-space: nowrap;
  /*word-break: break-word;*/
  font-size: 12px;
  hyphens: auto;
  text-align: center;
  max-width: 100px;
}

.main-wrapper,
.table-wrapper,
.chart-card,
.total-card,
.info-card,
.category-wrapper {
  max-width: 1350px;
  margin: 0 auto;
}

.chart-card,
.table-wrapper {
  border-radius: 15px;
  background: #fff; 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-card:hover,
.table-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.total-card {
  background: linear-gradient(135deg, #f3f8ff, #e6f0ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.info-card {
  background: linear-gradient(135deg, #f3f8ff, #e6f0ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 1350px;
  margin: 0 auto 2rem auto;
}

.chart-card .card-body {
  padding: 0;
}

#chart {
  width: 100% !important;
  height: 1000px;
  min-height: auto;
  margin: 0;
}

.table-wrapper .card-body {
  padding: 15px 30px;
}

.table-container {
  margin: 0 -0.5rem;
}

#eventsTable th,
#eventsTable td {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* =======================
   LOADING SPINNER
   ======================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #127bb5 0%, #0a5a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.spinner-orbit {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 2rem;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: orbit-spin 1.5s linear infinite;
}

.orbit-ring:nth-child(1) {
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  animation-duration: 1.5s;
  border-top-color: rgba(255, 255, 255, 0.9);
  border-right-color: rgba(255, 255, 255, 0.3);
}

.orbit-ring:nth-child(2) {
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  animation-duration: 1.2s;
  animation-direction: reverse;
  border-top-color: rgba(255, 255, 255, 0.7);
  border-right-color: rgba(255, 255, 255, 0.2);
}

.orbit-ring:nth-child(3) {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  animation-duration: 0.9s;
  border-top-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.1);
}

@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulse-text 2s ease-in-out infinite;
}

.loading-subtext {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  animation: pulse-text 2s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading-overlay .loading-text {
  color: white !important;
}

#eventsTable td:first-child div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  padding: 0;
}

.event-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 4px;
  flex-shrink: 0;
}

.event-link {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  color: #0056b3;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.event-link:hover {
  text-decoration: underline;
}

#eventsTable th[data-key="searches"],
#eventsTable td:nth-child(6),
#eventsTable th[data-key="news"],
#eventsTable td:nth-child(7) {
  width: 100px !important;
  max-width: 100px !important;
  font-size: 12px !important;
  padding-left: 0px;
  padding-right: 0px;
}

.tooltip.show.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #ff6b6b !important;
}
.tooltip.show.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #ff6b6b !important;
}
.tooltip.show.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #ff6b6b !important;
}
.tooltip.show.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #ff6b6b !important;
}
