:root {
            --bg-primary: #0072ce;
            --bg-secondary: #00569c;
            --bg-card: rgba(0, 50, 90, 0.75);
            --bg-card-hover: rgba(0, 65, 120, 0.85);
            --border-card: rgba(255, 255, 255, 0.15);
            --border-card-active: rgba(255, 255, 255, 0.4);
            --text-primary: #ffffff;
            --text-secondary: #e2e8f0;
            --color-uerj-blue: #0072ce;
            --color-uerj-blue-hover: #005ca6;
            --color-uerj-gold: #f59e0b;
            --color-uerj-gold-hover: #d97706;
            --color-success: #10b981;
            --color-success-hover: #059669;
            --color-danger: #f9423a;
            --color-warning: var(--color-uerj-gold);
            --color-info: #3b82f6;
            --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
            --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Outfit', sans-serif;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        }

        *::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        *::-webkit-scrollbar-track {
            background: transparent;
        }
        *::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }
        *::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        #root {
            display: flex;
            width: 100%;
            min-height: 100vh;
        }

        .app-container {
            display: flex;
            width: 100%;
        }

        /* Sidebar Styling */
        .sidebar {
            width: 260px;
            background-color: var(--bg-secondary);
            border-right: 1px solid var(--border-card);
            display: flex;
            flex-direction: column;
            padding: 1.5rem 1rem;
            flex-shrink: 0;
            justify-content: space-between;
            position: relative;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: width;
            z-index: 100;
        }

        .sidebar.collapsed {
            width: 76px;
            padding: 1.5rem 0.5rem;
        }

        .sidebar-toggle-btn {
            position: absolute;
            top: 24px;
            right: -13px;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--bg-secondary);
            border: 1px solid var(--border-card);
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 110;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease, background 0.2s;
        }

        .sidebar-toggle-btn:hover {
            background: var(--color-uerj-blue);
            border-color: var(--color-uerj-blue);
        }

        .sidebar-toggle-btn svg {
            width: 14px;
            height: 14px;
            stroke: currentColor;
            stroke-width: 2.5;
            transition: transform 0.3s ease;
        }

        .sidebar.collapsed .sidebar-toggle-btn svg {
            transform: rotate(180deg);
        }

        .sidebar-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 2rem;
            transition: opacity 0.2s ease;
        }

        .sidebar.collapsed .brand-subtitle,
        .sidebar.collapsed .brand-name {
            display: none;
            opacity: 0;
        }

        .brand-logo {
            width: 50px;
            height: 50px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            transition: width 0.3s ease, height 0.3s ease;
        }

        .sidebar.collapsed .brand-logo {
            width: 40px;
            height: 40px;
            margin-bottom: 0;
        }

        .brand-logo::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            transition: var(--transition-smooth);
        }

        .sidebar-brand:hover .brand-logo::after {
            left: 100%;
            top: 100%;
        }

        .brand-name {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .brand-subtitle {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 0.2rem;
            white-space: nowrap;
        }

        .menu-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex-grow: 1;
        }

        .menu-item {
            display: flex;
            align-items: center;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            color: var(--text-secondary);
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            font-weight: 500;
            gap: 0.75rem;
            position: relative;
            white-space: nowrap;
        }

        .sidebar.collapsed .menu-item {
            justify-content: center;
            padding: 0.85rem 0;
        }

        .sidebar.collapsed .menu-item-text {
            display: none;
            opacity: 0;
        }

        .menu-item svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }

        .menu-item:hover {
            color: var(--text-primary);
            background-color: rgba(255, 255, 255, 0.05);
        }

        .menu-item.active {
            color: #ffffff;
            background: rgba(6, 114, 206, 0.2);
            border-left: 4px solid var(--color-uerj-blue);
            padding-left: calc(1rem - 4px);
        }

        .sidebar.collapsed .menu-item.active {
            border-left: none;
            padding-left: 0;
            background: rgba(6, 114, 206, 0.3);
            border-radius: 10px;
        }

        .menu-item.active svg {
            color: var(--color-uerj-blue);
        }

        .badge {
            background-color: var(--color-danger);
            color: white;
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            border-radius: 20px;
            margin-left: auto;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
            animation: pulse 2s infinite;
        }

        .sidebar.collapsed .badge {
            position: absolute;
            top: 4px;
            right: 12px;
            width: 8px;
            height: 8px;
            padding: 0;
            font-size: 0;
            border-radius: 50%;
            margin-left: 0;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.08); }
            100% { transform: scale(1); }
        }

        .sidebar-footer {
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            padding-top: 1.25rem;
            margin-top: 1.25rem;
            transition: opacity 0.2s;
        }

        .sidebar.collapsed .sidebar-footer b,
        .sidebar.collapsed .sidebar-footer span {
            display: none;
        }

        .sidebar-footer b {
            color: var(--color-uerj-gold);
        }

        /* Content Area */
        .main-content {
            flex-grow: 1;
            min-width: 0; /* Previne estouro flexbox no Recharts */
            padding: 2.5rem;
            overflow-y: auto;
            max-height: 100vh;
        }

        /* Container de abas ativas */
        .tab-pane {
            display: none;
            opacity: 0;
            transform: translate3d(0, 12px, 0);
            will-change: opacity, transform;
        }

        .tab-pane.active {
            display: block;
            animation: fadeInUpTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes fadeInUpTab {
            from {
                opacity: 0;
                transform: translate3d(0, 12px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .tab-pane.active {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
            }
            .sidebar {
                transition: none !important;
            }
        }

        @media (max-width: 1024px) {
            .sticky-col {
                position: static !important;
            }
        }

        .header-banner {
            background: linear-gradient(135deg, rgba(0, 50, 90, 0.9) 0%, rgba(0, 35, 65, 0.95) 100%);
            border: 1px solid var(--border-card);
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 16px;
            padding: 2.25rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-premium);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            animation: fadeInDown 0.6s ease-out;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .header-banner h1 {
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 0.5rem;
        }

        .header-banner p {
            color: var(--text-secondary);
            font-size: 1.05rem;
            font-weight: 300;
        }

        /* KPI Cards Grid */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .kpi-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(12px);
        }

        .kpi-card:hover {
            transform: translateY(-5px);
            background-color: var(--bg-card-hover);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        }

        .kpi-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
        }

        .kpi-blue::before { background-color: var(--color-uerj-blue); }
        .kpi-green::before { background-color: var(--color-success); }
        .kpi-red::before { background-color: var(--color-danger); }
        .kpi-orange::before { background-color: var(--color-uerj-gold); }
        .kpi-purple::before { background-color: #8b5cf6; }
        .kpi-cyan::before { background-color: #06b6d4; }
        .kpi-rose::before { background-color: #f43f5e; }

        .kpi-blue:hover { box-shadow: 0 10px 25px rgba(0, 114, 206, 0.3); border-color: rgba(0, 114, 206, 0.4); }
        .kpi-green:hover { box-shadow: 0 10px 25px rgba(0, 114, 206, 0.3); border-color: rgba(0, 114, 206, 0.4); }
        .kpi-red:hover { box-shadow: 0 10px 25px rgba(249, 66, 58, 0.3); border-color: rgba(249, 66, 58, 0.4); }
        .kpi-orange:hover { box-shadow: 0 10px 25px rgba(173, 132, 31, 0.3); border-color: rgba(173, 132, 31, 0.4); }
        .kpi-purple:hover { box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3); border-color: rgba(139, 92, 246, 0.4); }
        .kpi-cyan:hover { box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3); border-color: rgba(6, 182, 212, 0.4); }
        .kpi-rose:hover { box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3); border-color: rgba(244, 63, 94, 0.4); }

        .kpi-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-secondary);
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.05em;
            margin-bottom: 0.75rem;
        }

        .kpi-header svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        .kpi-value {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
            margin-bottom: 0.25rem;
        }

        .kpi-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        /* Content Sections */
        .dashboard-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .glass-panel {
            background-color: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: var(--shadow-premium);
            backdrop-filter: blur(12px);
            transition: var(--transition-smooth);
        }

        .glass-panel:hover {
            border-color: rgba(255, 255, 255, 0.09);
        }

        .panel-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .panel-title svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        /* Recent Mentions Table Container */
        .table-responsive {
            width: 100%;
            overflow: auto; /* Bidirecional (X e Y) */
            max-height: 520px;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(8px);
            z-index: 1; /* Novo root de stacking context */
        }

        .mentions-table {
            width: 100%;
            border-collapse: separate; /* Evita gap transparente sub-pixel em sticky colunas */
            border-spacing: 0;
            text-align: left;
        }

        /* Regras de Matriz de Congelamento Horizontal (Offsets e Larguras Estritas) */
        .col-freeze-1 { position: sticky; left: 0px; min-width: 140px; max-width: 140px; }
        .col-freeze-2 { position: sticky; left: 140px; min-width: 140px; max-width: 140px; }
        .col-freeze-3 { position: sticky; left: 280px; min-width: 320px; max-width: 320px; }
        .col-freeze-4 { 
            position: sticky; 
            left: 600px; 
            min-width: 120px; 
            max-width: 120px; 
        }

        /* Z-Index Layering: TH (Cabeçalhos Gerais) */
        .mentions-table th {
            padding: 1rem;
            font-size: 0.85rem;
            text-transform: uppercase;
            color: var(--text-secondary);
            font-weight: 600;
            border-bottom: 2px solid rgba(255, 255, 255, 0.15);
            letter-spacing: 0.5px;
            position: sticky;
            top: 0;
            background-color: #004b88; /* Tom uniforme de azul UERJ mestre */
            background-clip: padding-box;
            z-index: 10;
        }

        /* Z-Index Layering: TH (Cabeçalhos Congelados na Intersecção Topo+Esquerda) */
        .mentions-table th.freeze-header {
            z-index: 30; /* Acima do TH padrão e TD fixo */
            background-color: #004b88; /* Mesma tonalidade harmonizada */
            border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        }

        /* TD Padrão (Corpo Rolado Livre) */
        .mentions-table td {
            padding: 1rem;
            font-size: 0.92rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            color: var(--text-primary);
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            background-color: #002548; /* Cor uniforme para todas as linhas */
            background-clip: padding-box;
        }

        /* TD Congelado (Corpo Fixo na Esquerda) */
        .mentions-table td.freeze-cell {
            z-index: 20; /* Abaixo dos THs, mas acima dos TDs regulares */
            background-color: #002548; /* Mesma tonalidade harmonizada */
            background-clip: padding-box;
        }

        .mentions-table th,
        .mentions-table td {
            vertical-align: middle !important;
        }

        .mentions-table th.col-center,
        .mentions-table td.col-center {
            text-align: center !important;
        }

        .mentions-table th.col-left,
        .mentions-table td.col-left {
            text-align: left !important;
        }

        .sentiment-badge {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .mentions-table tr {
            transition: var(--transition-smooth);
        }

        .mentions-table tr:hover td,
        .mentions-table tr:hover td.freeze-cell {
            background-color: #00386c; /* Hover harmonizado em toda a extensão da linha */
        }

        /* Badges */
        .sentiment-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.6rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .badge-positive {
            background-color: rgba(16, 185, 129, 0.15);
            color: var(--color-success);
            border: 1px solid rgba(16, 185, 129, 0.25);
        }

        .badge-negative {
            background-color: rgba(239, 68, 68, 0.15);
            color: var(--color-danger);
            border: 1px solid rgba(239, 68, 68, 0.25);
        }

        .badge-neutral {
            background-color: rgba(245, 158, 11, 0.15);
            color: var(--color-warning);
            border: 1px solid rgba(245, 158, 11, 0.25);
        }

        .badge-unclassified {
            background-color: rgba(156, 163, 175, 0.15);
            color: var(--text-secondary);
            border: 1px solid rgba(156, 163, 175, 0.25);
        }

        .platform-tag {
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            background-color: rgba(255,255,255,0.06);
            color: var(--text-secondary);
            font-weight: 500;
            display: inline-block;
        }

        /* Interactive Filter Bar Header */
        .filter-bar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 1.5rem;
        }

        .panel-title-clickable {
            font-size: 1.25rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            cursor: pointer;
            user-select: none;
            color: var(--text-primary);
            transition: var(--transition-smooth);
        }

        .panel-title-clickable:hover {
            color: var(--color-uerj-gold);
        }

        .panel-title-clickable svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.4;
            transition: var(--transition-smooth);
        }

        .panel-title-clickable:hover svg {
            transform: scale(1.15);
        }

        /* Filter Toggle Button */
        .btn-filter-toggle {
            background: rgba(0, 86, 156, 0.15);
            border: 1px solid rgba(0, 114, 206, 0.35);
            color: #38bdf8;
            padding: 0.55rem 1.15rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-filter-toggle svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            stroke-width: 2.5;
            fill: none;
            transition: transform 0.3s ease;
        }

        .btn-filter-toggle:hover {
            background-color: var(--color-uerj-gold);
            border-color: var(--color-uerj-gold);
            color: #0c192c;
            box-shadow: 0 0 20px rgba(173, 130, 31, 0.5);
            transform: translateY(-2px);
        }

        .btn-filter-toggle:hover svg {
            transform: rotate(90deg);
        }

        .btn-filter-toggle:active {
            transform: translateY(0);
        }

        /* Modern Quick Filter Tags and Chips */
        .quick-filters-container {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.6rem;
            margin-top: 0.8rem;
            margin-bottom: 0.8rem;
            padding: 0.2rem 0;
        }

        .quick-filters-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 600;
            margin-right: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .quick-tag {
            font-size: 0.78rem;
            font-weight: 600;
            padding: 0.4rem 0.9rem;
            border-radius: 20px;
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            user-select: none;
        }

        .quick-tag svg {
            width: 14px;
            height: 14px;
            stroke-width: 2.2;
            fill: none;
            stroke: currentColor;
            transition: transform 0.2s ease;
        }

        .quick-tag:hover {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: var(--color-uerj-blue);
            color: white;
            transform: translateY(-1px);
        }

        .quick-tag:hover svg {
            transform: scale(1.15);
        }

        .quick-tag.active {
            background-color: rgba(0, 114, 206, 0.15);
            border-color: var(--color-uerj-blue);
            color: white;
            box-shadow: 0 0 10px rgba(0, 114, 206, 0.2);
        }

        .quick-tag.active:hover {
            background-color: rgba(0, 114, 206, 0.25);
        }

        .chips-container {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
            margin-bottom: 1.2rem;
            padding: 0.6rem;
            background: rgba(0, 114, 206, 0.04);
            border: 1px solid rgba(0, 114, 206, 0.1);
            border-radius: 10px;
            animation: fadeInItem 0.25s ease-out;
        }

        .chips-label {
            font-size: 0.75rem;
            color: var(--color-uerj-blue);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-right: 0.4rem;
        }

        .filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
            font-size: 0.76rem;
            font-weight: 600;
            padding: 0.25rem 0.65rem;
            border-radius: 16px;
            transition: var(--transition-smooth);
            animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .filter-chip:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .filter-chip-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            font-size: 0.7rem;
            cursor: pointer;
            color: var(--text-secondary);
            transition: var(--transition-smooth);
        }

        .filter-chip-close:hover {
            background-color: var(--color-danger);
            color: white;
        }

        .btn-clear-all-chips {
            background: transparent;
            border: none;
            color: var(--color-danger);
            cursor: pointer;
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0.25rem 0.6rem;
            border-radius: 6px;
            transition: var(--transition-smooth);
        }

        .btn-clear-all-chips:hover {
            background-color: rgba(249, 66, 58, 0.08);
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.9);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Premium Form Filter styling */
        .filter-row-form {
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            margin-top: 1.2rem;
            padding: 1.5rem;
            background: rgba(0, 50, 90, 0.4);
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(16px);
            animation: scaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-col-lg { flex: 2 1 240px; }
        .filter-col-md { flex: 1 1 180px; }
        .filter-col-sm { flex: 1 1 130px; }

        .filter-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.9;
            transition: var(--transition-smooth);
        }

        .filter-input {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            padding: 0.65rem 0.95rem;
            color: var(--text-primary);
            font-size: 0.9rem;
            font-weight: 500;
            font-family: 'Outfit', sans-serif;
            transition: var(--transition-smooth);
        }

        .filter-input::placeholder {
            color: var(--text-secondary);
            opacity: 0.45;
        }

        .filter-input:focus {
            outline: none;
            border-color: var(--color-uerj-blue);
            background-color: rgba(0, 114, 206, 0.08);
            box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.25), 0 0 15px rgba(0, 114, 206, 0.15);
        }

        /* Style select arrows custom */
        select.filter-input {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 1.1rem;
            padding-right: 2.2rem;
        }

        select.filter-input option {
            background-color: #004b84; /* matching UERJ blue dark theme */
            color: #ffffff;
            padding: 0.5rem;
        }

        /* Style date input calendar icon */
        input[type="date"].filter-input {
            position: relative;
        }

        input[type="date"].filter-input::-webkit-calendar-picker-indicator {
            background: transparent;
            bottom: 0;
            color: transparent;
            cursor: pointer;
            height: auto;
            left: 0;
            position: absolute;
            right: 0;
            top: 0;
            width: auto;
        }

        input[type="date"].filter-input::after {
            content: "";
        }

        /* Review Tab Styling */
        .review-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 16px;
            padding: 1.75rem;
            margin-bottom: 1.5rem;
            position: relative;
            backdrop-filter: blur(12px);
            transition: var(--transition-smooth);
            animation: fadeInUp 0.4s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .review-card:hover {
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: var(--shadow-premium);
        }

        .review-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            padding-bottom: 0.75rem;
        }

        .review-author {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--color-uerj-gold);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .review-link-original {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            margin-left: 0.5rem;
            padding: 0.25rem 0.65rem;
            border-radius: 6px;
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.3);
            color: #38bdf8;
            font-size: 0.78rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
        }

        .review-link-original:hover {
            background: #0072ce;
            color: #ffffff;
            border-color: #38bdf8;
            box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3);
            transform: translateY(-1px);
        }

        .review-link-original:focus {
            outline: 2px solid #38bdf8;
            outline-offset: 2px;
        }

        .review-date {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .mention-text {
            font-size: 1.1rem;
            line-height: 1.5;
            font-style: italic;
            margin-bottom: 1.25rem;
            color: var(--text-primary);
            padding: 0.75rem 1rem;
            background-color: rgba(0,0,0,0.15);
            border-radius: 8px;
            border-left: 3px solid var(--color-uerj-blue);
        }

        .mention-metadata-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .chip {
            font-size: 0.8rem;
            padding: 0.3rem 0.6rem;
            border-radius: 20px;
            background-color: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            color: var(--text-secondary);
        }

        .chip b {
            color: var(--text-primary);
        }

        .draft-editor-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .draft-textarea {
            width: 100%;
            height: 120px;
            background-color: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 1rem;
            color: var(--text-primary);
            font-size: 0.95rem;
            line-height: 1.4;
            resize: vertical;
            transition: var(--transition-smooth);
            margin-bottom: 0.75rem;
        }

        .draft-textarea:focus {
            outline: none;
            border-color: var(--color-uerj-blue);
            box-shadow: 0 0 0 2px rgba(0, 93, 164, 0.2);
        }

        .sources-info {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .review-actions {
            display: flex;
            gap: 1rem;
        }

        /* Buttons styling */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            transition: var(--transition-smooth);
            gap: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.5;
        }

        .btn-primary {
            background-color: var(--color-uerj-blue);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 114, 206, 0.25);
        }

        .btn-primary:hover {
            background-color: var(--color-uerj-blue-hover);
            box-shadow: 0 6px 20px rgba(0, 114, 206, 0.35);
            transform: translateY(-2px);
        }

        .btn-success {
            background-color: var(--color-success);
            color: white;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
        }

        .btn-success:hover {
            background-color: var(--color-success-hover);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
            transform: translateY(-2px);
        }

        .btn-danger {
            background-color: var(--color-danger);
            color: white;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
        }

        .btn-danger:hover {
            background-color: #dc2626;
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: rgba(255,255,255,0.06);
            color: var(--text-primary);
            border: 1px solid rgba(255,255,255,0.08);
        }

        .btn-secondary:hover {
            background-color: rgba(255,255,255,0.1);
            transform: translateY(-2px);
        }

        .btn-load-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 1.5rem;
            padding: 0.85rem 1.5rem;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background-color: rgba(255, 255, 255, 0.03);
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition-smooth);
            gap: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-load-more:hover {
            background-color: rgba(6, 114, 206, 0.15);
            border-color: var(--color-uerj-blue);
            box-shadow: 0 4px 15px rgba(0, 114, 206, 0.2);
            transform: translateY(-2px);
        }

        /* Settings Grid */
        .settings-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        @media (max-width: 768px) {
            .settings-grid {
                grid-template-columns: 1fr;
            }
        }

        .setting-section {
            margin-bottom: 1.5rem;
        }

        .setting-description {
            font-size: 0.92rem;
            color: var(--text-secondary);
            margin-bottom: 1.25rem;
            line-height: 1.5;
        }

        /* Glassmorphism Progress Bar */
        .progress-bar-container {
            width: 100%;
            height: 14px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            overflow: hidden;
            position: relative;
            margin-top: 0.75rem;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--color-uerj-blue), var(--color-success));
            border-radius: 8px;
            transition: width 0.8s ease-out;
        }

        /* Live Dot Indicator (GPU Accelerated) */
        .live-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--color-success);
            display: inline-block;
            animation: pulse-dot 2s ease-in-out infinite forwards;
        }

        .live-dot.warning {
            background-color: var(--color-warning);
        }

        .live-dot.danger {
            background-color: var(--color-danger);
        }

        @keyframes pulse-dot {
            0% { transform: scale(0.95); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px currentColor; }
            100% { transform: scale(0.95); opacity: 0.5; }
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.3rem 0.6rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .status-active {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--color-success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .status-inactive {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--color-danger);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .status-warning {
            background-color: rgba(245, 158, 11, 0.1);
            color: var(--color-warning);
            border: 1px solid rgba(245, 158, 11, 0.2);
        }

        .status-list {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .status-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background-color: rgba(0,0,0,0.15);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.03);
            transition: var(--transition-smooth);
        }
        
        .status-row:hover {
            transform: translateX(4px);
            background-color: rgba(255, 255, 255, 0.02);
        }

        .status-label {
            font-weight: 500;
            color: var(--text-primary);
        }

        .status-value {
            font-weight: 600;
            color: var(--text-secondary);
        }

        .notification {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            background-color: var(--bg-secondary);
            border-left: 4px solid var(--color-success);
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Empty state styling */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-secondary);
        }

        .empty-state-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            display: inline-block;
        }

        .empty-state h3 {
            color: var(--text-primary);
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .empty-state p {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Tooltip custom styling for Recharts */
        .custom-tooltip {
            background-color: rgba(0, 50, 90, 0.95) !important;
            border: 1px solid rgba(255,255,255,0.15) !important;
            border-radius: 8px !important;
            padding: 0.75rem 1rem !important;
            color: #fff !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
        }

        .custom-tooltip-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .custom-tooltip-value {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        /* Large Action Buttons in Settings Tab */
        .scrapers-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 1rem;
        }

        .scraper-button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem;
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition-smooth);
            text-align: left;
        }

        .scraper-button:hover {
            background-color: rgba(255, 255, 255, 0.05);
            border-color: var(--color-uerj-blue);
            transform: translateY(-2px);
        }

        .scraper-info {
            display: flex;
            flex-direction: column;
        }

        .scraper-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .scraper-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 0.15rem;
        }

        .scraper-icon-wrap {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background-color: rgba(255,255,255,0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: var(--transition-smooth);
        }

        .scraper-button:hover .scraper-icon-wrap {
            background-color: rgba(0, 93, 164, 0.2);
            color: var(--color-uerj-blue);
        }

        /* Console de erro visível na página */
        #error-banner {
            background-color: #fee2e2;
            color: #991b1b;
            border: 1px solid #f87171;
            padding: 15px;
            border-radius: 8px;
            margin: 20px;
            font-family: monospace;
            display: none;
            white-space: pre-wrap;
            z-index: 9999;
        }
        
        /* Custom Heatmap Cells styling */
        .heatmap-cell:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
            filter: brightness(1.15);
            z-index: 10;
        }

        /* Premium Modal — Glassmorphism & Modern Form Styling */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 15, 30, 0.82);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: fadeIn 0.2s ease-out;
            padding: 1.5rem;
        }

        .modal-content {
            background: linear-gradient(145deg, #0b1c34, #040e1e);
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 18px;
            width: 100%;
            max-width: 780px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 114, 206, 0.2);
            padding: 2rem;
            color: var(--text-primary);
            position: relative;
            animation: modalScaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes modalScaleUp {
            from { transform: scale(0.93); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 1rem;
            margin-bottom: 1.25rem;
        }

        .modal-header h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            letter-spacing: 0.3px;
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-secondary);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .modal-close:hover {
            background-color: var(--color-danger);
            color: #ffffff;
            border-color: var(--color-danger);
        }

        .modal-body {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .modal-meta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            padding: 0.9rem 1.2rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
        }

        .modal-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .modal-meta-item b {
            color: var(--text-primary);
        }

        .modal-section-label {
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #38bdf8;
            margin-top: 0.4rem;
        }

        .modal-quote-card {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 4px solid var(--color-uerj-blue);
            border-radius: 12px;
            padding: 1.2rem;
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-primary);
            white-space: pre-wrap;
            word-break: break-word;
        }

        .ai-diagnosis-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 0.9rem;
        }

        .ai-diagnosis-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 0.85rem 1.1rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .ai-diag-label {
            font-size: 0.74rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .ai-diag-value {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .modal-footer {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: flex-end;
            gap: 0.8rem;
        }

        .btn-link-original {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.65rem 1.2rem;
            border-radius: 10px;
            background: rgba(0, 114, 206, 0.2);
            border: 1px solid var(--color-uerj-blue);
            color: #ffffff;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition-smooth);
        }

        .btn-link-original:hover {
            background: var(--color-uerj-blue);
            box-shadow: 0 4px 15px rgba(0, 114, 206, 0.4);
        }
        
        .review-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 1.5rem;
            padding: 16px;
            background: rgba(13, 27, 42, 0.6);
            backdrop-filter: blur(12px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            align-items: center;
        }

        .review-filter-bar input[type="text"],
        .review-filter-bar select {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 14px;
            flex: 1;
            min-width: 160px;
            transition: all 0.2s ease;
        }

        .review-filter-bar input[type="text"]:focus,
        .review-filter-bar select:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
        }

        .review-filter-bar input[type="text"]::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .review-filter-bar select option {
            background: #0d1b2a;
            color: #fff;
        }
        
        .review-filter-bar .btn {
            padding: 10px 16px;
            border-radius: 8px;
        }

        /* Dashboard Reusable Filter Bar Glassmorphism */
        .dashboard-filter-bar {
            position: relative;
            z-index: 50;
            background: rgba(13, 27, 42, 0.75);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(56, 189, 248, 0.25);
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dashboard-filter-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.85rem;
            align-items: center;
        }

        .dash-filter-group-search {
            grid-column: span 3;
        }

        @media (max-width: 1100px) {
            .dashboard-filter-grid {
                grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            }
            .dash-filter-group-search {
                grid-column: span 1;
            }
        }

        .dash-filter-group {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .dash-filter-group.popover-active {
            z-index: 100;
        }

        .dash-filter-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-secondary);
        }

        .dash-filter-select,
        .dash-filter-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
            padding: 0.55rem 0.85rem;
            border-radius: 8px;
            font-size: 0.85rem;
            transition: var(--transition-smooth);
            width: 100%;
        }

        .dash-filter-select:focus,
        .dash-filter-input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.1);
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
        }

        .dash-filter-select option {
            background: #0b1c34;
            color: #ffffff;
        }

        .dashboard-active-chips {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .chips-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: #38bdf8; /* Contrast > 4.5:1 WCAG AA compliant */
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(56, 189, 248, 0.15);
            border: 1px solid rgba(56, 189, 248, 0.35);
            color: #ffffff;
            padding: 0.25rem 0.65rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .filter-chip-remove {
            background: transparent;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 0.15rem;
            border-radius: 50%;
            transition: var(--transition-smooth);
        }

        .filter-chip-remove:hover,
        .filter-chip-remove:focus-visible {
            color: #ef4444;
            outline: none;
        }

        .btn-clear-filters {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #fca5a5;
            padding: 0.3rem 0.75rem;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-smooth);
            margin-left: auto;
        }

        .btn-clear-filters:hover,
        .btn-clear-filters:focus-visible {
            background: rgba(239, 68, 68, 0.3);
            color: #ffffff;
            outline: none;
        }

        .coverage-counter-badge {
            font-size: 0.8rem;
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.3rem 0.75rem;
            border-radius: 8px;
        }

        /* --- Pure Vector Info Button (100% Transparent, No Background Fill) --- */
        .kpi-info-badge {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
            margin: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            opacity: 0.85 !important;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
            position: relative !important;
        }
        .kpi-info-badge:hover,
        .kpi-info-badge:focus-visible {
            opacity: 1 !important;
            transform: scale(1.15) !important;
            filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) !important;
            outline: none !important;
        }
        .kpi-info-badge svg {
            width: 20px !important;
            height: 20px !important;
        }

        .kpi-info-badge-large {
            background: rgba(56, 189, 248, 0.12);
            border: 1px solid rgba(56, 189, 248, 0.3);
            color: #38bdf8;
            padding: 0.4rem 0.85rem;
            border-radius: 20px;
            font-size: 0.82rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            margin-left: 1rem;
        }
        .kpi-info-badge-large:hover,
        .kpi-info-badge-large:focus-visible {
            background: rgba(56, 189, 248, 0.25);
            border-color: #38bdf8;
            color: #ffffff;
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
            transform: translateY(-2px);
            outline: none;
        }
        .kpi-info-badge-large svg {
            width: 15px !important;
            height: 15px !important;
            stroke: currentColor !important;
            fill: none !important;
            stroke-width: 2.2 !important;
        }

        /* --- Anchored Natural Card Popovers (Sem escurecer o fundo) --- */
        .kpi-card.popover-active {
            overflow: visible !important;
            z-index: 100 !important;
        }

        .card-anchored-popover {
            position: absolute;
            bottom: calc(100% + 10px);
            right: 0;
            width: 340px;
            background: #09192b;
            border: 1px solid rgba(56, 189, 248, 0.4);
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.15);
            border-radius: 14px;
            padding: 1.1rem;
            z-index: 200;
            animation: popoverScaleUpRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            color: var(--text-primary);
            text-align: left;
            font-transform: none;
            letter-spacing: normal;
        }

        /* Seta indicadora (caret) na parte INFERIOR apontando para o botão no topo do card */
        .card-anchored-popover::before {
            content: "";
            position: absolute;
            top: 100%;
            right: 14px;
            border-width: 7px;
            border-style: solid;
            border-color: rgba(56, 189, 248, 0.4) transparent transparent transparent;
        }

        .card-anchored-popover::after {
            content: "";
            position: absolute;
            top: 100%;
            right: 15px;
            border-width: 6px;
            border-style: solid;
            border-color: #09192b transparent transparent transparent;
        }

        .card-popover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 0.5rem;
            margin-bottom: 0.6rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .card-popover-title {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.88rem;
            font-weight: 700;
            color: #ffffff;
            text-transform: none;
        }

        .card-popover-close {
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: var(--text-secondary);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            transition: all 0.2s ease;
        }

        .card-popover-close:hover {
            background: var(--color-danger);
            color: #ffffff;
        }

        .card-popover-body {
            font-size: 0.81rem;
            color: var(--text-secondary);
            line-height: 1.45;
            text-transform: none;
        }

        .card-popover-body p {
            margin-bottom: 0.5rem;
        }

        .card-popover-body ul {
            padding-left: 1.2rem;
            margin-top: 0.35rem;
            margin-bottom: 0.5rem;
        }

        .card-popover-body li {
            margin-bottom: 0.3rem;
        }

        .card-popover-note {
            font-size: 0.76rem;
            color: rgba(255, 255, 255, 0.55);
            margin-top: 0.5rem;
            margin-bottom: 0 !important;
            font-style: italic;
        }

        /* Anchored Popover para a Central de Revisão */
        .header-banner.popover-active {
            overflow: visible !important;
            z-index: 100 !important;
        }

        .review-anchored-popover {
            position: absolute;
            top: calc(100% + 8px);
            left: 20px;
            width: 360px;
            background: #09192b;
            border: 1px solid rgba(56, 189, 248, 0.4);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.15);
            border-radius: 14px;
            padding: 1.1rem;
            z-index: 250;
            animation: popoverScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            color: var(--text-primary);
            text-align: left;
        }

        .review-anchored-popover::before {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 310px;
            border-width: 7px;
            border-style: solid;
            border-color: transparent transparent rgba(56, 189, 248, 0.4) transparent;
        }

        .review-anchored-popover::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 311px;
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent #09192b transparent;
        }

        @keyframes popoverScaleIn {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes popoverScaleUpRight {
            from {
                opacity: 0;
                transform: translateY(8px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .info-popover-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #fff;
        }

        .info-popover-text {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .info-popover-text ul {
            margin-top: 0.8rem;
            padding-left: 1.5rem;
            margin-bottom: 0.8rem;
        }
        
        .info-popover-text li {
            margin-bottom: 0.5rem;
        }
        
        .info-highlight {
            color: var(--color-uerj-gold);
            font-weight: 600;
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes scaleUp { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

        /* RBAC Table Row Hover and Custom Buttons */
        .table-row-hover:hover {
            background: rgba(255, 255, 255, 0.02) !important;
        }

        .btn-refresh-rbac-circular:hover {
            background: rgba(56, 189, 248, 0.12) !important;
            border-color: rgba(56, 189, 248, 0.4) !important;
            color: #38bdf8 !important;
        }

        .btn-refresh-rbac-circular:hover svg {
            transform: rotate(45deg);
        }

        .btn-refresh-rbac-circular:active {
            transform: scale(0.92);
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .btn-action-rbac:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            filter: brightness(1.1);
        }
        
        .btn-action-rbac:active {
            transform: translateY(0);
        }

        /* RBAC Modern Horizontal Row Styling and Hover Effect */
        .user-line-rbac:hover {
            transform: translateX(3px);
            border-color: rgba(56, 189, 248, 0.25) !important;
            background: rgba(255, 255, 255, 0.05) !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 10px rgba(56, 189, 248, 0.02) !important;
        }