        :root {
            --primary-color: #1a73e8;
            --sec-color: #4285f4;
            --tri-color: #ff8400;
            --hover-color: #e8f0fe;
            --text-color: #202124;
            --light-gray: #f8f9fa;
            --border-radius: 8px;
            --transition: all 0.3s ease;

            /* Cores das categorias */
            --enfermaria-color: #f2ff3d;
            --ambulatorio-color: #34a853;
            --uti-color: #a105fb;
            --atencao-basica-color: #7ed4fc;
            --emergencia-color: #ff0000;
            --pa-color: #fb6705;
            --premium-color: #ffc107;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        /* ===== LAYOUT BASE ===== */
        body {
            background-color: white;
            color: var(--text-color);
            line-height: 1.6;
            padding: 20px;
            overflow: hidden !important;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }

        h1 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 500;
        }

        /* ===== COMPONENTES DE FORMULÁRIO ===== */
        .search-container {
            max-width: 600px;
            margin: 0 auto 10px;
            position: relative;
            overflow: visible !important;
        }

        #search {
            width: 100%;
            padding: 12px 20px;
            border: 1px solid #dfe1e5;
            border-radius: var(--border-radius);
            font-size: 16px;
            outline: none;
            transition: var(--transition);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        #search:focus {
            border-color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
        }

        /* ===== FILTROS ===== */
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            margin-bottom: 25px;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            min-width: 200px;
        }

        .filter-group label {
            margin-bottom: 5px;
            font-weight: 500;
            color: var(--primary-color);
        }

        .filter-group select {
            padding: 10px;
            border-radius: var(--border-radius);
            border: 1px solid #dfe1e5;
            background-color: white;
        }

        .free-filter,
        .favorites-filter {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            border-radius: var(--border-radius);
            cursor: pointer;
        }

        .free-filter {
            background-color: #f9fff3;
        }

        .favorites-filter {
            background-color: #fff3f3;
        }

        .free-filter input,
        .favorites-filter input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .free-filter label,
        .favorites-filter label {
            font-weight: 500;
            cursor: pointer;
        }

        .free-filter label {
            color: var(--primary-color);
        }

        .favorites-filter label {
            color: #e91e63;
        }

        /* ===== FILTROS MOBILE ===== */
        .mobile-filters-toggle {
            display: none;
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: var(--border-radius);
            cursor: pointer;
            margin: 10px auto;
            font-size: 16px;
            width: 100%;
            max-width: 300px;
        }

        .mobile-filters-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 10000;
            padding: 20px;
            overflow-y: auto;
        }

        .mobile-filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #dfe1e5;
        }

        .mobile-filters-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .mobile-filters-container.active {
            display: block;
        }

        /* Estilo para a label que contém os textos */
        .free-filter-label {
            display: flex;
            align-items: center;
        }

        /* Estilo para o container dos textos ("Gratuitos" e o número) */
        .text-container {
            display: flex;
            flex-direction: column;
            margin-left: 5px;
            line-height: 1;
        }

        /* Estilo específico para a contagem (o número) */
        .count-gratuitos-style {
            font-size: 0.7em;
            margin-top: 2px;
            opacity: 0.8;
            text-align: center;
        }

        /* ===== GRID DE LINKS ===== */
        .links-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        .links-column {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .link-item {
            will-change: transform;
            transform: translateZ(0);
            contain: layout style;
            animation: fadeIn 0.2s ease-out;
        }

        .link-item a {
            display: block;
            padding: 12px 15px 12px 40px;
            background-color: var(--light-gray);
            color: var(--text-color);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition);
            border-left: 4px solid transparent;
            position: relative;
        }

        .link-item.premium a,
        .link-item.gratuito a {
            background-color: #f9fff3;
        }

        /* Indicadores de categoria */
        .link-item a::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .enfermaria a::before {
            background-color: var(--enfermaria-color);
        }

        .ambulatorio a::before {
            background-color: var(--ambulatorio-color);
        }

        .uti a::before {
            background-color: var(--uti-color);
        }

        .atencao-basica a::before {
            background-color: var(--atencao-basica-color);
        }

        .emergencia a::before {
            background-color: var(--emergencia-color);
        }

        .pa a::before {
            background-color: var(--pa-color);
        }

        /* Hover states por categoria */
        .enfermaria a:hover {
            border-left-color: var(--enfermaria-color);
        }

        .ambulatorio a:hover {
            border-left-color: var(--ambulatorio-color);
        }

        .uti a:hover {
            border-left-color: var(--uti-color);
        }

        .atencao-basica a:hover {
            border-left-color: var(--atencao-basica-color);
        }

        .emergencia a:hover {
            border-left-color: var(--emergencia-color);
        }

        .pa a:hover {
            border-left-color: var(--pa-color);
        }

        .link-item a:hover {
            background-color: var(--hover-color);
            transform: translateX(5px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .link-category,
        .link-data {
            font-size: 12px;
            color: #5f6368;
            margin-top: 3px;
            display: block;
        }

        .link-data {
            font-size: 9px;
        }

        /* ===== ÍCONES ===== */
        .premium-icon,
        .novidade-icon,
        .study-icon,
        .docs-icon,
        .favorite-icon,
        .notes-icon {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            z-index: 2;
            transition: var(--transition);
        }

        .premium-icon.lazy,
        .novidade-icon.lazy,
        .study-icon.lazy,
        .docs-icon.lazy {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* Posicionamento dos ícones */
        .premium-icon {
            top: 4px;
            right: 6px;
            color: var(--premium-color);
            background-color: rgba(255, 193, 7, 0.2);
            font-size: 14px;
            width: 24px;
            height: 24px;
        }

        .novidade-icon {
            top: 4px;
            right: 6px;
            color: #e91e63;
            background-color: rgba(233, 30, 99, 0.2);
            font-size: 12px;
            width: 20px;
            height: 20px;
        }

        .study-icon {
            bottom: 4px;
            right: 6px;
            color: #1a73e8;
            background-color: rgba(26, 115, 232, 0.2);
            font-size: 12px;
            width: 20px;
            height: 20px;
        }

        .docs-icon {
            bottom: 4px;
            right: 6px;
            color: #34a853;
            background-color: rgba(52, 168, 83, 0.2);
            font-size: 12px;
            width: 20px;
            height: 20px;
        }

        .favorite-icon {
            bottom: 2px;
            left: 2px;
            color: #ccc;
            background: rgba(255, 255, 255, 0.8);
            font-size: 11px;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .notes-icon {
            top: 2px;
            left: 2px;
            background: rgba(255, 255, 255, 0.9);
            width: 20px;
            height: 20px;
            font-size: 11px;
            cursor: pointer;
            color: #666;
        }

        .favorite-icon.active {
            color: #e91e63;
        }

        .favorite-icon:hover,
        .notes-icon:hover {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.9);
        }

        .notes-icon:hover {
            color: #1a73e8;
        }

        .notes-icon.has-note {
            color: #1a73e8;
        }

        /* Tooltips para ícones */
        .premium-icon:hover::after,
        .novidade-icon:hover::after,
        .study-icon:hover::after,
        .docs-icon:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            background-color: #333;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 10;
        }

        .premium-icon:hover::after {
            content: "Conteúdo Premium - Acesso mediante assinatura";
            top: 100%;
            right: 0;
            margin-top: 5px;
        }

        .novidade-icon:hover::after {
            content: "Novo Assistente!";
            top: 100%;
            right: 0;
            margin-top: 5px;
        }

        .study-icon:hover::after {
            content: "Conteúdo de Estudo";
            top: -30px;
            right: 0;
        }

        .docs-icon:hover::after {
            content: "Produção de Documentos";
            top: -30px;
            right: 0;
        }

        /* ===== SISTEMA DE POSICIONAMENTO DE ÍCONES ===== */
        /* Quando ambos premium e novidade estão presentes */
        .premium-icon~.novidade-icon {
            right: 35px !important;
        }

        .novidade-icon~.premium-icon {
            right: 8px !important;
        }

        /* Quando study ou docs estão presentes com ícones superiores */
        .premium-icon~.study-icon,
        .premium-icon~.docs-icon,
        .novidade-icon~.study-icon,
        .novidade-icon~.docs-icon {
            right: 8px !important;
            bottom: 8px !important;
        }

        /* Múltiplos ícones inferiores */
        .study-icon~.docs-icon {
            right: 35px !important;
        }

        .docs-icon~.study-icon {
            right: 8px !important;
        }

        /* Combinações complexas */
        .premium-icon~.novidade-icon~.study-icon,
        .premium-icon~.novidade-icon~.docs-icon,
        .novidade-icon~.premium-icon~.study-icon,
        .novidade-icon~.premium-icon~.docs-icon {
            right: 8px !important;
            bottom: 8px !important;
        }

        /* Quando há premium + novidade + ícone inferior */
        .premium-icon~.novidade-icon~.study-icon~.docs-icon,
        .premium-icon~.novidade-icon~.docs-icon~.study-icon {
            right: 35px !important;
            bottom: 8px !important;
        }

        .study-icon~.docs-icon {
            right: 35px !important;
        }

        /* Quando há badge de novidade e atualizado juntos */
        .novidades-grid .novidade-badge~.atualizado-badge {
            left: 60px;
            /* Espaço para o badge de novidade */
        }

        .novidades-grid .atualizado-badge~.novidade-badge {
            left: 10px;
        }

        /* Ajuste de z-index para garantir sobreposição */
        .novidades-grid .link-item a {
            position: relative;
            z-index: 1;
        }

        .novidades-grid .atualizado-badge,
        .novidades-grid .novidade-badge {
            z-index: 20;
        }

        .novidades-grid .atualizado-badge {
            animation: badgePulse 2s ease-in-out infinite;
        }

        /* Correção específica para múltiplos badges */
        .novidades-grid .link-item {
            position: relative;
        }

        /* Garantir que os badges não sejam cortados */
        .novidades-grid .link-item a {
            overflow: visible;
        }

        /* Ajuste de posicionamento quando há ícones */
        .novidades-grid .atualizado-badge~.premium-icon,
        .novidades-grid .atualizado-badge~.novidade-icon {
            top: 20px;
        }

        /* ===== BADGES ===== */
        .atualizado-badge {
            position: absolute;
            top: -6px;
            left: 6px;
            background: linear-gradient(45deg, #ff6b35, #ff8e53);
            color: white;
            font-size: 9px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 3px;
            z-index: 3;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .atualizado-badge::after {
            content: "Atualizado";
        }

        /* Ajuste quando badge está presente */
        .atualizado-badge~.premium-icon,
        .atualizado-badge~.novidade-icon {
            top: 20px;
        }

        /*         .atualizado-badge~.study-icon,
        .atualizado-badge~.docs-icon, 
        .atualizado-badge~.favorite-icon {
            bottom: 2px;
        }     */

        /* ===== PAGINAÇÃO ===== */
        .pagination-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin: 20px 0;
        }

        .pagination-controls.top {
            margin-bottom: 30px;
        }

        .pagination-controls.bottom {
            margin-top: 30px;
        }

        .pagination-buttons {
            display: flex;
            flex-wrap: nowrap;
            white-space: nowrap;
            overflow-x: auto;
            justify-content: center;
            width: 100%;
            gap: 5px;
        }

        .pagination-info {
            color: #5f6368;
            font-size: 14px;
            text-align: center;
            flex-wrap: nowrap !important;
        }

        .pagination-btn,
        .pagination-page {
            margin: 0 2px;
            padding: 8px 12px;
            border: 1px solid #dfe1e5;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
        }

        .pagination-btn {
            background-color: var(--light-gray);
        }

        .pagination-ellipsis {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px;
            color: #5f6368;
            margin: 0 2px;
            user-select: none;
        }

        .pagination-btn:hover:not(:disabled),
        .pagination-page:hover:not(.active) {
            background-color: var(--hover-color);
        }

        .pagination-page.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .pagination-btn:disabled,
        .pagination-page.active {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination-controls label {
            font-weight: 500;
            color: var(--primary-color);
            margin-right: 5px;
        }

        .pagination-controls select {
            padding: 8px;
            border-radius: var(--border-radius);
            border: 1px solid #dfe1e5;
            background-color: white;
            margin-right: 15px;
        }

        /* ===== AUTO-COMPLETE ===== */
        .autocomplete-container {
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            right: 0 !important;
            background: white !important;
            border: 1px solid #dfe1e5 !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
            z-index: 99999 !important;
            max-height: 400px !important;
            overflow-y: auto !important;
            margin-top: 5px !important;
        }

        .autocomplete-item {
            padding: 12px 15px !important;
            cursor: pointer !important;
            border-bottom: 1px solid #f0f0f0 !important;
            transition: all 0.3s ease !important;
        }

        .autocomplete-item:hover,
        .autocomplete-item.active {
            background-color: #e8f0fe !important;
        }

        .autocomplete-item:last-child {
            border-bottom: none !important;
        }

        .autocomplete-item strong {
            color: #202124 !important;
            display: block !important;
            margin-bottom: 4px !important;
            font-size: 14px !important;
        }

        .highlight {
            background-color: #fff3cd !important;
            padding: 1px 2px !important;
            border-radius: 2px !important;
            font-weight: 600 !important;
        }

        .term-badge {
            background-color: #e3f2fd !important;
            color: #1976d2 !important;
            padding: 2px 6px !important;
            border-radius: 12px !important;
            font-size: 10px !important;
            font-weight: 500 !important;
            white-space: nowrap !important;
        }

        .premium-badge {
            background-color: #fff3e0 !important;
            color: #f57c00 !important;
        }

        .novidade-badge {
            background-color: #fce4ec !important;
            color: #c2185b !important;
        }

        /* ===== MODAIS ===== */
        .lgpd-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            padding: 20px;
        }

        .lgpd-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 10px;
            max-width: 800px;
            width: 90%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: modalopen 0.5s;
        }

        .lgpd-content h2 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .lgpd-content p {
            margin-bottom: 20px;
            line-height: 1.6;
            color: #5f6368;
        }

        .lgpd-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 25px;
        }

        .lgpd-btn {
            padding: 12px 25px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
        }

        .lgpd-btn.accept {
            background-color: var(--primary-color);
            color: white;
        }

        .lgpd-btn.accept:hover {
            background-color: var(--sec-color);
        }

        .lgpd-btn.reject {
            background-color: #f0f0f0;
            color: #5f6368;
        }

        .lgpd-btn.reject:hover {
            background-color: #e0e0e0;
        }

        .lgpd-privacy-link {
            margin-top: 15px;
            font-size: 14px;
        }

        .lgpd-privacy-link a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .lgpd-privacy-link a:hover {
            text-decoration: underline;
        }

        /* ===== SEÇÕES ESPECIAIS ===== */
        .favorites-grid,
        .novidades-grid,
        .history-grid {
            animation: fadeIn 0.5s ease-in;
            margin-bottom: 30px;
            padding-bottom: 20px;
            grid-column: 1 / -1;
        }

        .favorites-grid {
            animation: fadeIn 0.5s ease-in;
            margin-bottom: 30px;
            border-bottom: 2px solid #e91e63;
            padding-bottom: 20px;
            background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
            border-radius: 12px;
            padding: 20px;
            margin-top: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        .novidades-grid {
            animation: fadeIn 0.5s ease-in;
            margin-bottom: 30px;
            border-bottom: 2px solid var(--tri-color);
            padding-bottom: 20px;
            background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
            border-radius: 12px;
            padding: 20px;
            margin-top: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        .favorites-grid h2,
        .novidades-grid h2 {
            margin-bottom: 15px !important;
            text-align: center !important;
            font-size: 1.5rem !important;
            font-weight: 600 !important;
        }

        .novidades-grid h2 {
            color: #e96f1e !important;
        }

        .favorites-grid h2 {
            color: #e91e63;
        }

        .favorites-container,
        .novidades-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
            width: 100%;
        }

        .favorites-grid .link-item a {
            background-color: #fff5f5 !important;
            border-left: 4px solid #e91e63 !important;
        }

        /* Esconder ícones em seções especiais */
        .favorites-grid .notes-icon,
        .novidades-grid .notes-icon,
        .history-grid .notes-icon,
        .history-item .notes-icon,
        #historico-grid .notes-icon,
        #favoritos-grid .notes-icon,
        #novidades-grid .notes-icon {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .favorites-empty {
            text-align: center;
            padding: 40px 20px;
            color: #e91e63;
            grid-column: 1 / -1;
            font-style: italic;
        }

        .favorites-empty i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #f48fb1;
            display: block;
        }

        .favorites-empty p {
            margin: 0;
        }

        .favorites-grid .link-item a .favorite-icon {
            color: #e91e63 !important;
            animation: heartbeat 2s ease-in-out infinite;
        }

        /* Garantir que não haja overflow */
        .favorites-container,
        .favorites-grid .link-item,
        .favorites-grid .link-item a {
            max-width: 100%;
            overflow: hidden;
        }

        /* Itens de novidades */
        .novidades-grid .link-item {
            will-change: transform;
            transform: translateZ(0);
            contain: layout style;
            animation: fadeIn 0.2s ease-out;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .novidades-grid .link-item a {
            display: block;
            padding: 12px 15px 12px 40px;
            background-color: #fffaf0 !important;
            color: var(--text-color);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition);
            border-left: 4px solid var(--tri-color) !important;
            box-shadow: 0 2px 8px rgba(255, 132, 0, 0.1);
            position: relative;
            word-wrap: break-word;
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
        }

        .novidades-grid .link-item a:hover {
            background-color: #fff3e0 !important;
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(255, 132, 0, 0.2);
        }

        .novidades-grid .link-category {
            font-size: 11px;
            color: #ff6d00;
            margin-top: 4px;
            display: block;
            font-weight: 500;
        }

        .novidades-grid .link-data {
            font-size: 9px;
            color: #ff6d00;
            margin-top: 2px;
            display: block;
            font-style: italic;
            opacity: 0.8;
        }

        /* Header das novidades */
        .novidades-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
        }

        .novidades-title {
            color: #e91e63;
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .novidades-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        /* Indicadores de categoria para novidades */
        .novidades-grid .link-item a::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--tri-color);
        }

        /* Efeito de pulso para itens muito recentes */
        .novidades-grid .link-item.recente a {
            animation: pulseNovidade 2s infinite;
        }

        /* Estados vazios das novidades */
        .novidades-empty {
            text-align: center;
            padding: 40px 20px;
            color: #ff6d00;
            grid-column: 1 / -1;
            font-style: italic;
        }

        .novidades-empty i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ffcc80;
            display: block;
        }

        .novidades-empty p {
            margin: 0;
        }

        /* Destaque para novidades muito recentes (últimas 24h) */
        .novidades-grid .link-item.muito-recente {
            position: relative;
        }

        .novidades-grid .link-item.muito-recente::before {
            content: '🔥';
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 8px;
            z-index: 2;
        }

        /* Scroll suave para container de novidades */
        .novidades-container {
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        /* Garantir que o badge fique acima de qualquer conteúdo */
        .novidades-grid .link-item {
            overflow: visible !important;
        }

        /* Limitar texto muito longo nos itens de novidades */
        .novidades-grid .link-item a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: visible !important;
        }

        .novidades-grid .link-item a:hover {
            white-space: normal;
            word-wrap: break-word;
        }

        /* Itens de favoritos */
        .favorites-grid .link-item {
            will-change: transform;
            transform: translateZ(0);
            contain: layout style;
            animation: fadeIn 0.2s ease-out;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .favorites-grid .link-item a {
            display: block;
            padding: 12px 15px 12px 40px;
            background-color: #fff5f5 !important;
            color: var(--text-color);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition);
            border-left: 4px solid #e91e63 !important;
            box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
            position: relative;
            word-wrap: break-word;
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
        }

        .favorites-grid .link-item a:hover {
            background-color: #ffe6e6 !important;
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
        }

        .favorites-grid .link-category {
            font-size: 11px;
            color: #d81b60;
            margin-top: 4px;
            display: block;
            font-weight: 500;
        }

        .favorites-grid .link-data {
            font-size: 9px;
            color: #d81b60;
            margin-top: 2px;
            display: block;
            font-style: italic;
            opacity: 0.8;
        }

        /* Header dos favoritos */
        .favorites-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
        }

        .favorites-title {
            color: #e91e63;
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .favorites-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        /* Indicadores de categoria para favoritos */
        .favorites-grid .link-item a::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .favorites-grid .enfermaria a::before {
            background-color: var(--enfermaria-color);
        }

        .favorites-grid .ambulatorio a::before {
            background-color: var(--ambulatorio-color);
        }

        .favorites-grid .uti a::before {
            background-color: var(--uti-color);
        }

        .favorites-grid .atencao-basica a::before {
            background-color: var(--atencao-basica-color);
        }

        .favorites-grid .emergencia a::before {
            background-color: var(--emergencia-color);
        }

        .favorites-grid .pa a::before {
            background-color: var(--pa-color);
        }

        /* Hover states por categoria nos favoritos */
        .favorites-grid .enfermaria a:hover {
            border-left-color: var(--enfermaria-color);
        }

        .favorites-grid .ambulatorio a:hover {
            border-left-color: var(--ambulatorio-color);
        }

        .favorites-grid .uti a:hover {
            border-left-color: var(--uti-color);
        }

        .favorites-grid .atencao-basica a:hover {
            border-left-color: var(--atencao-basica-color);
        }

        .favorites-grid .emergencia a:hover {
            border-left-color: var(--emergencia-color);
        }

        .favorites-grid .pa a:hover {
            border-left-color: var(--pa-color);
        }

        /* ===== HISTÓRICO ===== */
        .history-grid {
            animation: fadeIn 0.5s ease-in;
            margin-bottom: 30px;
            border-bottom: 2px solid #1a73e8;
            padding-bottom: 20px;
            background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
            border-radius: 12px;
            padding: 20px;
            margin-top: 10px;
        }

        .history-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 12px;
            width: 100%;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .history-item {
            will-change: transform;
            transform: translateZ(0);
            contain: layout style;
            animation: fadeIn 0.2s ease-out;
            min-width: 0;
            /* Permite que o item shrink adequadamente */
        }

        .history-item a {
            display: block;
            display: block;
            padding: 12px 15px 12px 40px;
            background-color: #ffffff !important;
            color: var(--text-color);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition);
            border-left: 4px solid #1a73e8 !important;
            box-shadow: 0 2px 4px rgba(26, 115, 232, 0.1);
            position: relative;
            word-wrap: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-item a:hover {
            background-color: #e8f0fe !important;
            transform: translateX(5px);
            white-space: normal;
            word-wrap: break-word;
        }

        .history-item .link-data {
            font-size: 9px;
            color: #5f6368;
            margin-top: 3px;
            display: block;
            font-style: italic;
        }

        /* Indicadores de categoria para histórico */
        .history-item.enfermaria a::before {
            background-color: var(--enfermaria-color);
        }

        .history-item.ambulatorio a::before {
            background-color: var(--ambulatorio-color);
        }

        .history-item.uti a::before {
            background-color: var(--uti-color);
        }

        .history-item.atencao-basica a::before {
            background-color: var(--atencao-basica-color);
        }

        .history-item.emergencia a::before {
            background-color: var(--emergencia-color);
        }

        .history-item.pa a::before {
            background-color: var(--pa-color);
        }

        /* Hover states por categoria no histórico */
        .history-item.enfermaria a:hover {
            border-left-color: var(--enfermaria-color);
        }

        .history-item.ambulatorio a:hover {
            border-left-color: var(--ambulatorio-color);
        }

        .history-item.uti a:hover {
            border-left-color: var(--uti-color);
        }

        .history-item.atencao-basica a:hover {
            border-left-color: var(--atencao-basica-color);
        }

        .history-item.emergencia a:hover {
            border-left-color: var(--emergencia-color);
        }

        .history-item.pa a:hover {
            border-left-color: var(--pa-color);
        }

        /* Header do histórico */
        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .history-title {
            color: #1a73e8;
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .history-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .history-empty {
            text-align: center;
            padding: 40px 20px;
            color: #5f6368;
            grid-column: 1 / -1;
        }

        .history-empty i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ccc;
            display: block;
        }

        .history-empty p {
            margin: 0;
            font-style: italic;
        }

        /* ===== LOADING STATES ===== */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(5px);
        }

        .loading-overlay.active {
            display: flex;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }

        .loading-text {
            color: var(--primary-color);
            font-size: 16px;
            font-weight: 500;
        }

        .shimmer {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        .links-container.loading {
            position: relative;
        }

        .links-container.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

        /* ===== BOTÕES E CONTROLES ===== */
        .dark-mode-toggle {
            position: absolute;
            top: 45px;
            right: 0px;
            background: none;
            border: none;
            font-size: 1.2rem;
            color: var(--primary-color);
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .dark-mode-toggle:hover {
            background-color: var(--hover-color);
            transform: rotate(20deg);
        }

        .history-clear-btn {
            background: none;
            border: 1px solid #dfe1e5;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 12px;
            color: #5f6368;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .history-clear-btn:hover {
            background-color: #fce8e6;
            border-color: #ea4335;
            color: #d93025;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(234, 67, 53, 0.2);
        }

        .floating-help-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #1a73e8, #4285f4);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: float 3s ease-in-out infinite;
        }

        .floating-help-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(26, 115, 232, 0.5);
            background: linear-gradient(135deg, #4285f4, #1a73e8);
        }

        .floating-help-btn:active {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
        }

        .floating-help-btn .tooltip {
            position: absolute;
            bottom: 70px;
            right: 0;
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .floating-help-btn .tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 20px;
            border: 5px solid transparent;
            border-top-color: #333;
        }

        .floating-help-btn:hover .tooltip {
            opacity: 1;
            transform: translateY(0);
        }

        /* Efeito de pulso para chamar atenção */
        .floating-help-btn.pulse {
            animation: pulse 2s infinite;
        }

        .floating-help-btn .tooltip small {
            display: block;
            opacity: 0.8;
            font-size: 10px;
            margin-top: 2px;
        }

        /* Efeito de brilho */
        .floating-help-btn::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(135deg, #1a73e8, #4285f4, #1a73e8);
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .floating-help-btn:hover::before {
            opacity: 0.4;
            animation: rotate 3s linear infinite;
        }

        .floating-achievements-btn {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ffd700, #ff6b00);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
            transition: all 0.3s ease;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .floating-achievements-btn:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
        }

        /* ===== CONTROLES DE VISUALIZAÇÃO ===== */
        .view-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 15px 0 20px 0;
            padding: 12px;
            background: var(--light-gray);
            border-radius: var(--border-radius);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .view-label {
            font-weight: 500;
            color: var(--text-color);
            font-size: 14px;
            white-space: nowrap;
        }

        .view-toggle {
            display: flex;
            background: white;
            border: 1px solid #dfe1e5;
            border-radius: var(--border-radius);
            padding: 4px;
            gap: 2px;
        }

        .view-option {
            background: none;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #5f6368;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            position: relative;
            opacity: 0.7;
        }

        /* Transições suaves para dark mode */
        .view-controls,
        .view-toggle,
        .view-option {
            transition: all 0.3s ease;
        }

        .view-option:hover {
            background: var(--hover-color);
            color: var(--primary-color);
        }

        .view-option.active {
            background: var(--primary-color) !important;
            color: white !important;
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(var(--primary-color), 0.3);
            opacity: 1;
            font-weight: 600;
        }

        .view-option i {
            font-size: 14px;
        }

        .view-option.just-activated {
            animation: pulse-gentle 0.5s ease;
        }

        /* Indicador visual de carregamento durante transição */
        .view-loading::after {
            content: ' ⟳';
            animation: spin 1s linear infinite;
            display: inline-block;
            margin-left: 5px;
        }

        /* Grid View */
        .links-container.grid-view {
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
        }

        .links-container.grid-view .links-column {
            display: contents;
        }

        .link-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e0e0e0;
            overflow: hidden;
            animation: fadeIn 0.4s ease;
        }

        .link-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-color);
        }

        .link-card a {
            display: block;
            padding: 18px;
            text-decoration: none;
            color: var(--text-color);
            position: relative;
            border-left: none !important;
            background: white !important;
        }

        .grid-view .premium-icon,
        .grid-view .novidade-icon,
        .grid-view .study-icon,
        .grid-view .docs-icon {
            position: static;
            display: inline-flex;
            margin: 0;
            transform: none !important;
        }

        .grid-view .favorite-icon {
            position: static;
            background: none;
            color: #ccc;
            font-size: 14px;
            width: auto;
            height: auto;
        }

        .grid-view .favorite-icon.active {
            color: #e91e63;
        }

        .grid-view .notes-icon {
            top: 9px;
            left: 2px;
        }

        /* ===== ABAS DE ESTATÍSTICAS ===== */
        .stats-tabs-container {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            padding: 0 10px;
        }

        .stats-tab {
            flex: 1;
            padding: 12px 15px;
            background: #f8f9fa;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            color: #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 50px;
            position: relative;
        }

        .stats-tab.active {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
            animation: tabSlideIn 0.3s ease;
        }

        .stats-tab:hover:not(.active) {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .stats-tab-icon {
            font-size: 16px;
            flex-shrink: 0;
        }

        .stats-tab-text {
            display: inline;
            white-space: nowrap;
        }

        /* Estados de loading para abas */
        .stats-tab.loading {
            position: relative;
            color: transparent;
        }

        .stats-tab.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            transform: translate(-50%, -50%);
        }

        /* Painéis das Abas */
        .tab-pane {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-pane.active {
            display: block;
        }

        /* Conteúdo das Estatísticas */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .stat-card {
            background: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            border-left: 4px solid var(--primary-color);
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 12px;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Barras de Progresso */
        .progress-bar {
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
            margin: 10px 0;
        }

        .progress-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
            position: relative;
            background: linear-gradient(90deg, var(--primary-color), var(--sec-color));
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
            animation: shimmer 2s infinite;
        }

        /* ===== FILTROS ATIVOS ===== */
        .active-filters-container {
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: var(--border-radius);
            padding: 15px;
            margin: 15px 0;
            animation: fadeIn 0.3s ease;
        }

        .active-filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 500;
            color: var(--primary-color);
        }

        .active-filters-title {
            font-size: 14px;
            font-weight: 600;
        }

        .clear-all-filters {
            background: none;
            border: 1px solid #dc3545;
            color: #dc3545;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .clear-all-filters:hover {
            background: #dc3545;
            color: white;
            transform: translateY(-1px);
        }

        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        /* Chip individual de filtro */
        .filter-chip {
            display: inline-flex;
            align-items: center;
            background: var(--primary-color);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            gap: 6px;
            animation: slideIn 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            max-width: 100%;
        }

        .filter-chip .chip-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }

        .filter-chip .remove-chip {
            background: rgba(255, 255, 255, 0.3);
            border: none;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .filter-chip .remove-chip:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }

        /* Cores diferentes para tipos de filtro */
        .filter-chip.search {
            background: #4285f4;
        }

        .filter-chip.category {
            background: #34a853;
        }

        .filter-chip.subcategory {
            background: #fbbc05;
        }

        .filter-chip.free {
            background: #ea4335;
        }

        .filter-chip.favorites {
            background: #e91e63;
        }

        .filter-chip.tag {
            background: #9c27b0;
        }

        .filter-chip.date {
            background: #607d8b;
        }

        /* Estados vazios */
        .active-filters-empty {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            font-size: 13px;
            padding: 10px 0;
        }

        .filter-chip.removing {
            animation: slideOut 0.3s ease forwards;
        }

        /* Transições suaves */
        .active-filters-container,
        .filter-chip,
        .clear-all-filters {
            transition: all 0.3s ease;
        }

        /* Estados de loading */
        .active-filters-container.loading {
            position: relative;
            opacity: 0.7;
        }

        .active-filters-container.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

        /* ===== CONTROLES DE CATEGORIA PRINCIPAL ===== */

        /* ===== CONTROLES DE CATEGORIA PRINCIPAL ===== */
        .main-category-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            border: 1px solid #e8eaed;
            text-align: center;
        }

        .category-label {
            font-weight: 600;
            color: #1a73e8;
            font-size: 16px;
        }

        .category-toggle {
            display: flex;
            background: white;
            border-radius: 12px;
            padding: 6px;
            border: 1px solid #dfe1e5;
            gap: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .category-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
            color: #5f6368;
            min-width: 140px;
            justify-content: center;
        }

        .category-option:hover {
            background: #f1f3f4;
            color: #1a73e8;
        }

        .category-option.active {
            background: #1a73e8;
            color: white;
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
        }

        .category-option i {
            font-size: 16px;
        }

        /* Badge para contagem */
        .category-badge {
            background: #34a853;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 6px;
        }

        .category-option.active .category-badge {
            background: rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        /* ===== CARDS ESPECIAIS PARA UTILITÁRIOS ===== */
        .utility-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .utility-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: translate(30px, -30px);
        }

        .utility-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .utility-card .card-title {
            color: white !important;
            font-size: 1.2rem;
            margin-bottom: 8px;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .utility-card .card-category {
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 0.9rem;
            opacity: 0.9;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        .utility-card .card-badge {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        .utility-card .card-data {
            color: rgba(255, 255, 255, 0.8) !important;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        /* 🆕 CORREÇÃO: Ícones nos cards de utilitários */
        .utility-card .premium-icon,
        .utility-card .novidade-icon,
        .utility-card .study-icon,
        .utility-card .docs-icon,
        .utility-card .favorite-icon {
            color: white !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .utility-card .card-badge i {
            color: white !important;
        }

        /* Diferentes cores para utilitários */
        .utility-card.management {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .utility-card.planning {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .utility-card.financial {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        .utility-card.productivity {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        .utility-card.clinical {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        }

        .utility-card.analytics {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
        }

        /* ===== RESPONSIVIDADE ===== */
        @media (max-width: 768px) {
            .header-top {
                flex-direction: column;
                gap: 15px;
            }

            .search-container {
                min-width: 100%;
            }

            .category-option span {
                display: none;
            }

            .category-option {
                padding: 8px 12px;
            }
        }

        /* ===== CARDS DE LINKS (GRID VIEW) ===== */
        .link-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #e0e0e0;
            overflow: hidden;
            animation: fadeIn 0.4s ease;
            position: relative;
            height: fit-content;
            animation: cardAppear 0.5s ease;
        }

        .link-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-color);
        }

        /* ===== CORREÇÃO COMPLETA DOS CARDS DE UTILITÁRIOS ===== */
        .link-card.utility-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            color: white !important;
            border-radius: 12px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* 🆕 CORREÇÃO CRÍTICA: Remover qualquer fundo interno */
        .link-card.utility-card a {
            background: transparent !important;
            color: inherit !important;
        }

        .link-card.utility-card .card-header,
        .link-card.utility-card .card-footer,
        .link-card.utility-card .card-badges {
            background: transparent !important;
            border: none !important;
        }

        /* 🆕 CORREÇÃO: Texto sempre branco e com sombra para contraste */
        .link-card.utility-card * {
            color: white !important;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .link-card.utility-card .card-title {
            font-size: 1.2rem;
            margin-bottom: 8px;
            font-weight: 600;
            color: white !important;
        }

        .link-card.utility-card .card-category {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.9) !important;
        }

        .link-card.utility-card .card-data {
            font-size: 0.8rem;
            opacity: 0.8;
            color: rgba(255, 255, 255, 0.8) !important;
        }

        /* 🆕 CORREÇÃO: Badges com fundo translúcido */
        .link-card.utility-card .card-badge {
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        .link-card.utility-card .card-badge i {
            color: white !important;
        }

        /* 🆕 CORREÇÃO: Ícones sempre brancos */
        .link-card.utility-card .premium-icon,
        .link-card.utility-card .novidade-icon,
        .link-card.utility-card .study-icon,
        .link-card.utility-card .docs-icon,
        .link-card.utility-card .favorite-icon {
            color: white !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* Variantes de cores para utilitários */
        .link-card.utility-card.management {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        }

        .link-card.utility-card.planning {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
        }

        .link-card.utility-card.financial {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
        }

        .link-card.utility-card.productivity {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
        }

        .link-card.utility-card.clinical {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
        }

        .link-card.utility-card.analytics {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
        }

        /* 🆕 CORREÇÃO: Hover effects */
        .link-card.utility-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

        /* 🆕 CORREÇÃO: Elemento decorativo */
        .link-card.utility-card::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            z-index: 1;
        }

        .link-card a {
            display: block;
            padding: 18px;
            text-decoration: none;
            color: var(--text-color);
            position: relative;
            border-left: none !important;
            background: white !important;
            transition: all 0.3s ease;
        }

        .link-card a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--sec-color));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .link-card:hover a::before {
            opacity: 1;
        }

        .link-card.loading {
            position: relative;
            min-height: 120px;
        }

        .link-card.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

        /* Header do card */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
            gap: 10px;
        }

        .card-title {
            font-weight: 600;
            font-size: 16px;
            line-height: 1.4;
            color: var(--text-color);
            flex: 1;
            margin: 0;
            word-wrap: break-word;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        /* Categoria no card */
        .card-category {
            font-size: 12px;
            color: #5f6368;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        .card-category::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            flex-shrink: 0;
        }

        /* Badges no card */
        .card-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 12px 0;
        }

        .card-badge {
            background: #f1f3f4;
            color: #5f6368;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
        }

        .card-badge.premium {
            background: #fff3e0;
            color: #f57c00;
        }

        .card-badge.novidade {
            background: #fce4ec;
            color: #c2185b;
        }

        .card-badge.study {
            background: #e3f2fd;
            color: #1976d2;
        }

        .card-badge.docs {
            background: #e8f5e8;
            color: #388e3c;
        }

        .card-badge.gratuito {
            background: #e8f5e8;
            color: #34a853;
        }

        /* Footer do card */
        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
        }

        .card-data {
            font-size: 10px;
            color: #9aa0a6;
            font-style: italic;
        }

        .card-actions {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        /* 🆕 Transição suave para mostrar/ocultar filtros */
        .filters,
        #activeFiltersContainer {
            transition: all 0.3s ease;
            min-height: 0;
            overflow: hidden;
        }

        /* 🆕 Ajuste no layout quando filtros estiverem ocultos */
        .filters.hidden {
            display: none !important;
        }

        #activeFiltersContainer {
            transition: all 0.3s ease;
        }

        #activeFiltersContainer:empty {
            display: none !important;
        }

        /* 🆕 Estilo para quando estiver oculto */
        #activeFiltersContainer[style*="display: none"] {
            height: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        #activeFiltersContainer:not([style*="display: block"]) {
            display: none !important;
        }

        /* Garantir que quando visível, ocupe espaço adequado */
        #activeFiltersContainer[style*="display: block"] {
            display: block !important;
            margin: 10px 0;
            padding: 10px;
            border: 1px solid #dfe1e5;
            border-radius: 8px;
            background: #f8f9fa;
        }

        /* Ícones no grid view */
        .grid-view .premium-icon,
        .grid-view .novidade-icon,
        .grid-view .study-icon,
        .grid-view .docs-icon {
            position: static;
            display: inline-flex;
            margin: 0;
            transform: none !important;
            width: 18px;
            height: 18px;
            font-size: 10px;
        }

        .grid-view .favorite-icon {
            position: static;
            background: none;
            color: #ccc;
            font-size: 14px;
            width: auto;
            height: auto;
            margin: 0;
        }

        .grid-view .favorite-icon.active {
            color: #e91e63;
        }

        .grid-view .favorite-icon:hover {
            transform: scale(1.2);
            background: none;
        }

        .grid-view .notes-icon {
            position: static;
            background: none;
            color: #666;
            font-size: 12px;
            width: auto;
            height: auto;
            margin: 0;
        }

        .grid-view .notes-icon.has-note {
            color: #1a73e8;
        }

        .grid-view .notes-icon:hover {
            transform: scale(1.1);
            background: none;
            color: #1a73e8;
        }

        /* Ajustes para o badge "atualizado" no grid */
        .grid-view .atualizado-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            left: auto;
            z-index: 3;
        }

        /* Cores de categoria para cards */
        .link-card.enfermaria a::before {
            background: linear-gradient(90deg, var(--enfermaria-color), #ffeb3b);
        }

        .link-card.ambulatorio a::before {
            background: linear-gradient(90deg, var(--ambulatorio-color), #4caf50);
        }

        .link-card.uti a::before {
            background: linear-gradient(90deg, var(--uti-color), #e1bee7);
        }

        .link-card.atencao-basica a::before {
            background: linear-gradient(90deg, var(--atencao-basica-color), #b3e5fc);
        }

        .link-card.emergencia a::before {
            background: linear-gradient(90deg, var(--emergencia-color), #ffcdd2);
        }

        .link-card.pa a::before {
            background: linear-gradient(90deg, var(--pa-color), #ffcc80);
        }

        /* ===== SISTEMA DE CONQUISTAS ===== */

        /* Notificações de Conquista */
        .achievement-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            z-index: 10010;
            transform: translateX(400px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 320px;
            border-left: 4px solid #ffd700;
        }

        .achievement-notification.show {
            transform: translateX(0);
        }

        .achievement-notification.weekly-reward {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-left-color: #ff6b6b;
        }

        .achievement-icon {
            font-size: 2rem;
            margin-right: 15px;
            float: left;
        }

        .achievement-content {
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .achievement-title {
            font-weight: bold;
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 2px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .achievement-name {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .achievement-description {
            font-size: 12px;
            opacity: 0.8;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .achievement-points {
            font-size: 12px;
            font-weight: bold;
            color: #ffd700;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .achievement-progress {
            margin-top: 8px;
        }

        .progress-text {
            font-size: 10px;
            opacity: 0.8;
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
        }

        /* Botão Fechar Notificação */
        .achievement-close {
            position: absolute;
            top: 8px;
            right: 8px;
            background: none;
            border: none;
            color: white;
            opacity: 0.7;
            cursor: pointer;
            font-size: 14px;
            transition: opacity 0.2s ease;
        }

        .achievement-close:hover {
            opacity: 1;
        }

        /* Modal de Conquistas */
        .achievements-modal-content {
            max-height: 70vh;
            overflow-y: auto;
        }

        .achievements-summary {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            padding: 20px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 12px;
            text-align: center;
            gap: 15px;
        }

        .summary-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .summary-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary-color);
            line-height: 1;
        }

        .summary-label {
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .achievements-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 20px 0;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-radius: 8px;
            background: #f8f9fa;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .achievement-item.earned {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border-left: 4px solid var(--primary-color);
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
            animation: achievementUnlock 0.6s ease;
        }

        /* Efeito de brilho para conquistas raras */
        .achievement-item.rare.earned {
            position: relative;
            overflow: hidden;
        }

        .achievement-item.rare.earned::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
            animation: shine 3s infinite;
            transform: rotate(45deg);
        }

        .achievement-item.locked {
            opacity: 0.6;
            background: #e9ecef;
        }

        .achievement-item .achievement-icon {
            font-size: 1.5rem;
            margin-right: 15px;
            float: none;
        }

        .achievement-info {
            flex: 1;
            min-width: 0;
        }

        .achievement-item .achievement-name {
            font-weight: 600;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .achievement-item .achievement-description {
            font-size: 12px;
            color: var(--text-color);
            margin-bottom: 4px;
        }

        .achievement-item .achievement-points {
            font-size: 11px;
            font-weight: bold;
            color: var(--tri-color);
        }

        .achievement-status {
            font-size: 11px;
            font-weight: 500;
            padding: 4px 8px;
            border-radius: 12px;
            background: #dee2e6;
            white-space: nowrap;
        }

        .achievement-item.earned .achievement-status {
            background: #d4edda;
            color: #155724;
        }

        .achievement-item.locked .achievement-status {
            background: #e9ecef;
            color: #6c757d;
        }

        /* Progresso nas conquistas */
        .achievement-progress-bar {
            height: 6px;
            background: #e9ecef;
            border-radius: 3px;
            overflow: hidden;
            margin: 8px 0;
            position: relative;
        }

        .achievement-progress-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.5s ease;
            background: linear-gradient(90deg, var(--primary-color), var(--sec-color));
            position: relative;
        }

        .achievement-progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
            animation: shimmer 2s infinite;
        }

        /* Categorias de Conquistas */
        .achievement-category {
            margin: 25px 0 15px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--primary-color);
            color: var(--primary-color);
            font-weight: 600;
            font-size: 16px;
        }

        .achievement-category:first-child {
            margin-top: 0;
        }

        /* ===== FOOTER ====== */
        .dashboard-btn {
            background: #ca9430ff;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: var(--border-radius);
            cursor: pointer;
            margin-top: 10px;
        }

        body.dark-mode .utility-card {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.dark-mode .utility-card:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        }

        body.dark-mode .utility-card::before {
            background: rgba(255, 255, 255, 0.05);
        }

        /* Ajustar opacidade no dark mode para melhor contraste */
        body.dark-mode .utility-card .card-category {
            opacity: 0.8;
        }

        body.dark-mode .utility-card .card-data {
            opacity: 0.7;
        }

        body.dark-mode .main-category-controls {
            background: #2d2d2d;
            border-color: #444;
        }

        body.dark-mode .category-label {
            color: #8ab4f8;
        }

        body.dark-mode .category-toggle {
            background: #3c3c3c;
            border-color: #555;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .category-option {
            color: #e8eaed;
        }

        body.dark-mode .category-option:hover {
            background: #4a4a4a;
            color: #8ab4f8;
        }

        body.dark-mode .category-option.active {
            background: #1a73e8;
            color: white;
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
        }

        body.dark-mode .category-badge {
            background: #34a853;
            color: white;
        }

        body.dark-mode .category-option.active .category-badge {
            background: rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        body.dark-mode {
            background-color: #000000;
            color: #e0e0e0;
        }

        body.dark-mode .container {
            background-color: #000000;
        }

        body.dark-mode .link-item a {
            background-color: #2d2d2d;
            color: #e0e0e0;
        }

        body.dark-mode .link-item a:hover {
            background-color: #3d3d3d;
        }

        body.dark-mode #search,
        body.dark-mode .filter-group select,
        body.dark-mode .pagination-btn,
        body.dark-mode .pagination-page {
            background-color: #2d2d2d;
            color: #e0e0e0;
            border-color: #444;
        }

        body.dark-mode #search:focus {
            background-color: #363636;
        }

        body.dark-mode .free-filter,
        body.dark-mode .favorites-filter {
            background-color: #2d2d2d;
        }

        body.dark-mode .pagination-btn:hover:not(:disabled),
        body.dark-mode .pagination-page:hover:not(.active) {
            background-color: #3d3d3d;
        }

        body.dark-mode .autocomplete-container {
            background-color: #2d2d2d;
            border-color: #444;
        }

        body.dark-mode .highlight {
            background-color: #ffeb3b;
            color: #000;
        }

        body.dark-mode .loading-overlay {
            background: rgba(26, 26, 26, 0.9);
        }

        body.dark-mode .favorite-icon {
            background: rgba(45, 45, 45, 0.8);
            color: #666;
        }

        body.dark-mode .notes-icon {
            background: rgba(45, 45, 45, 0.9);
            color: #9aa0a6;
        }

        body.dark-mode .notes-icon:hover {
            background: rgba(45, 45, 45, 1);
            color: #4285f4;
        }

        /* Dark mode para mobile filters */
        body.dark-mode .mobile-filters-container {
            background: #1a1a1a;
        }

        body.dark-mode .mobile-filters-header {
            border-bottom-color: #444;
        }

        body.dark-mode .floating-help-btn {
            background: linear-gradient(135deg, #4285f4, #1a73e8);
            box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
        }

        body.dark-mode .floating-help-btn:hover {
            background: linear-gradient(135deg, #1a73e8, #4285f4);
            box-shadow: 0 8px 25px rgba(66, 133, 244, 0.6);
        }

        body.dark-mode .stats-tab {
            background: #2d2d2d;
            color: #e0e0e0;
            border: 1px solid #444;
        }

        body.dark-mode .stats-tab.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        body.dark-mode .stats-tab:hover:not(.active) {
            background: #3d3d3d;
        }

        body.dark-mode .stat-card {
            background: #2d2d2d;
            color: #e0e0e0;
        }

        body.dark-mode .progress-bar {
            background: #3d3d3d;
        }

        body.dark-mode .history-grid {
            background: linear-gradient(135deg, #1a2d4d 0%, #0d1a30 100%);
        }

        body.dark-mode .history-item a {
            background-color: #2d2d2d !important;
            color: #e0e0e0;
        }

        body.dark-mode .history-item a:hover {
            background-color: #3d3d3d !important;
        }

        body.dark-mode .history-title {
            color: #4285f4;
        }

        body.dark-mode .history-empty {
            color: #9aa0a6;
        }

        body.dark-mode .view-controls {
            background: #2d2d2d;
            border: 1px solid #444;
        }

        body.dark-mode .view-label {
            color: #e0e0e0;
        }

        body.dark-mode .view-toggle {
            background: #2d2d2d;
            border-color: #444;
        }

        body.dark-mode .view-option {
            color: #9aa0a6;
        }

        body.dark-mode .view-option:hover {
            background: #3d3d3d;
            color: var(--sec-color);
        }

        body.dark-mode .view-option.active {
            background: var(--primary-color) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
        }

        body.dark-mode .view-option:not(.active) {
            opacity: 0.8;
        }

        /* Estados de loading no dark mode */
        body.dark-mode .view-loading::after {
            color: #e0e0e0;
        }

        /* Garantir contraste no dark mode */
        body.dark-mode .view-option:not(.active):hover {
            background: #3d3d3d;
            color: #e0e0e0;
        }

        /* Estados desabilitados no dark mode */
        body.dark-mode .view-option:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        body.dark-mode .view-option:disabled:hover {
            background: none;
            color: #9aa0a6;
            transform: none;
        }

        body.dark-mode .active-filters-container {
            background: #2d2d2d;
            border-color: #444;
        }

        body.dark-mode .active-filters-header {
            color: var(--sec-color);
        }

        body.dark-mode .active-filters-title {
            color: #e0e0e0;
        }

        body.dark-mode .clear-all-filters {
            background: none;
            border-color: #f28b82;
            color: #f28b82;
        }

        body.dark-mode .clear-all-filters:hover {
            background: #ea4335;
            border-color: #ea4335;
            color: white;
        }

        body.dark-mode .active-filters-empty {
            color: #9aa0a6;
        }

        /* Dark mode para chips */
        body.dark-mode .filter-chip {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .filter-chip .remove-chip {
            background: rgba(255, 255, 255, 0.2);
        }

        body.dark-mode .filter-chip .remove-chip:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        body.dark-mode .active-filters-container.loading::after {
            border-color: #444;
            border-top-color: var(--primary-color);
        }

        body.dark-mode .link-card {
            background: #2d2d2d;
            border-color: #444;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        body.dark-mode .link-card:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        body.dark-mode .link-card a {
            background: #2d2d2d !important;
            color: #e0e0e0;
        }

        body.dark-mode .card-title {
            color: #e0e0e0;
        }

        body.dark-mode .card-category {
            color: #9aa0a6;
        }

        body.dark-mode .card-badge {
            background: #3d3d3d;
            color: #e0e0e0;
        }

        body.dark-mode .card-badge.premium {
            background: #5d4037;
            color: #ffb74d;
        }

        body.dark-mode .card-badge.novidade {
            background: #4a235a;
            color: #f48fb1;
        }

        body.dark-mode .card-badge.study {
            background: #0d47a1;
            color: #90caf9;
        }

        body.dark-mode .card-badge.docs {
            background: #1b5e20;
            color: #a5d6a7;
        }

        body.dark-mode .card-badge.gratuito {
            background: #1b5e20;
            color: #81c784;
        }

        body.dark-mode .card-footer {
            border-top-color: #444;
        }

        body.dark-mode .card-data {
            color: #9aa0a6;
        }

        body.dark-mode .favorite-icon {
            color: #666;
        }

        body.dark-mode .notes-icon {
            color: #9aa0a6;
        }

        body.dark-mode .notes-icon.has-note {
            color: #4285f4;
        }

        body.dark-mode .notes-icon:hover {
            color: #4285f4;
        }

        body.dark-mode .achievement-notification {
            background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
            border-left-color: #ecc94b;
        }

        body.dark-mode .achievement-notification.weekly-reward {
            background: linear-gradient(135deg, #805ad5 0%, #d53f8c 100%);
        }

        body.dark-mode .achievements-summary {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        }

        body.dark-mode .summary-value {
            color: var(--sec-color);
        }

        body.dark-mode .summary-label {
            color: #cbd5e0;
        }

        body.dark-mode .achievement-item {
            background: #2d3748;
        }

        body.dark-mode .achievement-item.earned {
            background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
            border-left-color: var(--sec-color);
        }

        body.dark-mode .achievement-item.locked {
            background: #4a5568;
            opacity: 0.7;
        }

        body.dark-mode .achievement-item .achievement-description {
            color: #e2e8f0;
        }

        body.dark-mode .achievement-status {
            background: #4a5568;
            color: #cbd5e0;
        }

        body.dark-mode .achievement-item.earned .achievement-status {
            background: #22543d;
            color: #9ae6b4;
        }

        body.dark-mode .achievement-progress-bar {
            background: #4a5568;
        }

        body.dark-mode .novidades-grid {
            background: linear-gradient(135deg, #332900 0%, #4d3800 100%);
            border-bottom-color: var(--tri-color);
        }

        body.dark-mode .novidades-grid h2 {
            color: #ff79a8 !important;
        }

        body.dark-mode .novidades-grid .link-item a {
            background-color: #352b00 !important;
            color: #e0e0e0;
            border-left-color: var(--tri-color) !important;
            box-shadow: 0 2px 8px rgba(255, 132, 0, 0.2);
        }

        body.dark-mode .novidades-grid .link-item a:hover {
            background-color: #423500 !important;
            box-shadow: 0 4px 12px rgba(255, 132, 0, 0.3);
        }

        body.dark-mode .novidades-grid .link-category {
            color: #ffab40;
        }

        body.dark-mode .novidades-grid .link-data {
            color: #ffab40;
            opacity: 0.7;
        }

        body.dark-mode .novidades-title {
            color: #ff79a8;
        }

        body.dark-mode .novidades-grid .link-item a::before {
            background: var(--tri-color);
        }

        body.dark-mode .novidades-grid .link-item.recente a {
            animation: pulseNovidadeDark 2s infinite;
        }

        body.dark-mode .novidades-empty {
            color: #ffab40;
        }

        body.dark-mode .novidades-empty i {
            color: #ffb74d;
        }

        body.dark-mode .novidades-grid .link-item.muito-recente::after {
            border-color: transparent #d81b60 transparent transparent;
        }

        body.dark-mode .novidades-grid .atualizado-badge {
            background: linear-gradient(45deg, #e64a19, #ff5722);
            border-color: #352b00;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        }

        body.dark-mode .favorites-grid {
            background: linear-gradient(135deg, #331a1a 0%, #4d2626 100%);
            border-bottom-color: #e91e63;
        }

        body.dark-mode .favorites-grid h2 {
            color: #ff79a8;
        }

        body.dark-mode .favorites-grid .link-item a {
            background-color: #3d2d2d !important;
            color: #e0e0e0;
            border-left-color: #e91e63 !important;
            box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
        }

        body.dark-mode .favorites-grid .link-item a:hover {
            background-color: #4a3535 !important;
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
        }

        body.dark-mode .favorites-grid .link-category {
            color: #f48fb1;
        }

        body.dark-mode .favorites-grid .link-data {
            color: #f48fb1;
            opacity: 0.7;
        }

        body.dark-mode .favorites-title {
            color: #ff79a8;
        }

        body.dark-mode .favorite-badge {
            background: linear-gradient(45deg, #ad1457, #880e4f);
            border-color: #3d2d2d;
            box-shadow: 0 2px 6px rgba(173, 20, 87, 0.4);
        }

        body.dark-mode .favorites-empty {
            color: #f48fb1;
        }

        body.dark-mode .favorites-empty i {
            color: #ec407a;
        }

        /* ===== ANIMAÇÕES ===== */

        @keyframes heartbeat {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        @keyframes badgePulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes pulseNovidade {
            0% {
                box-shadow: 0 2px 8px rgba(255, 132, 0, 0.1);
            }

            50% {
                box-shadow: 0 2px 12px rgba(255, 132, 0, 0.3);
            }

            100% {
                box-shadow: 0 2px 8px rgba(255, 132, 0, 0.1);
            }
        }

        @keyframes pulseNovidadeDark {
            0% {
                box-shadow: 0 2px 8px rgba(255, 132, 0, 0.2);
            }

            50% {
                box-shadow: 0 2px 12px rgba(255, 132, 0, 0.4);
            }

            100% {
                box-shadow: 0 2px 8px rgba(255, 132, 0, 0.2);
            }
        }

        @keyframes achievementUnlock {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }

            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        @keyframes cardAppear {
            0% {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }

            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.8);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes slideOut {
            from {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            to {
                opacity: 0;
                transform: translateY(-10px) scale(0.8);
            }
        }

        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse-gentle {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        @keyframes modalopen {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
            }

            70% {
                box-shadow: 0 0 0 15px rgba(26, 115, 232, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
            }
        }

        @keyframes tabSlideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* ===== RESPONSIVIDADE ===== */
        @media (max-width: 1200px) {
            .links-container.grid-view {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 900px) {
            .links-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .favorites-grid {
                padding: 15px;
                margin-bottom: 20px;
                border-radius: 10px;
            }

            .favorites-container {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .favorites-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .favorites-title {
                text-align: center;
                font-size: 1.1rem;
            }

            .favorites-actions {
                justify-content: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            .favorites-grid .link-item a {
                padding: 10px 12px 10px 35px;
                font-size: 14px;
            }

            .novidades-grid .atualizado-badge {
                top: -6px;
                left: 8px;
                font-size: 8px;
                padding: 2px 6px;
            }

            .novidades-grid .novidade-badge~.atualizado-badge {
                left: 50px;
            }

            .novidades-grid {
                padding: 15px;
                margin-bottom: 20px;
                border-radius: 10px;
            }

            .novidades-container {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .novidades-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .novidades-title {
                text-align: center;
                font-size: 1.1rem;
            }

            .novidades-actions {
                justify-content: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            .novidades-grid .link-item a {
                padding: 10px 12px 10px 35px;
                font-size: 14px;
            }

            .novidades-grid h2 {
                font-size: 1.3rem !important;
            }

            .achievement-notification {
                top: 10px;
                right: 10px;
                left: 10px;
                max-width: none;
                transform: translateY(-100px);
            }

            .achievement-notification.show {
                transform: translateY(0);
            }

            .achievements-summary {
                flex-direction: column;
                gap: 20px;
                padding: 15px;
            }

            .summary-item {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .summary-value {
                font-size: 1.5rem;
            }

            .achievement-item {
                padding: 12px;
            }

            .achievement-item .achievement-icon {
                font-size: 1.3rem;
                margin-right: 12px;
            }

            .link-card a {
                padding: 15px;
            }

            .card-title {
                font-size: 15px;
                -webkit-line-clamp: 3;
            }

            .card-category {
                font-size: 11px;
            }

            .card-badges {
                margin: 10px 0;
            }

            .card-badge {
                font-size: 9px;
                padding: 2px 6px;
            }

            .active-filters-container {
                padding: 12px;
                margin: 10px 0;
            }

            .active-filters-header {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .active-filters-title {
                text-align: center;
                font-size: 13px;
            }

            .clear-all-filters {
                align-self: center;
                padding: 6px 12px;
                font-size: 11px;
            }

            .active-filters {
                gap: 6px;
            }

            .filter-chip {
                padding: 5px 10px;
                font-size: 11px;
            }

            .filter-chip .chip-text {
                max-width: 150px;
            }

            .filter-chip .remove-chip {
                width: 16px;
                height: 16px;
                font-size: 9px;
            }

            .history-grid {
                padding: 15px;
                margin-bottom: 20px;
                border-radius: 10px;
            }

            .history-container {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .history-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .history-title {
                text-align: center;
                font-size: 1rem;
                font-weight: 600;
            }

            .history-actions {
                justify-content: center;
                flex-wrap: wrap;
                gap: 6px;
            }

            .history-item {
                width: 90%;
            }

            .history-item a {
                padding: 8px 10px 8px 30px;
                font-size: 13px;
            }

            .history-clear-btn {
                padding: 5px 10px;
                font-size: 10px;
            }

            .stats-tab {
                padding: 10px 8px;
                font-size: 12px;
                gap: 4px;
                flex-direction: column;
                min-height: 50px;
            }

            /* Esconder texto em telas muito pequenas */
            .stats-tab-text {
                display: none;
            }

            /* Aumentar ícones em mobile */
            .stats-tab-icon {
                font-size: 18px;
            }

            /* Tooltip para mobile */
            .stats-tab {
                position: relative;
            }

            .stats-tab::after {
                content: attr(data-tooltip);
                position: absolute;
                bottom: -35px;
                left: 50%;
                transform: translateX(-50%);
                background: #333;
                color: white;
                padding: 5px 10px;
                border-radius: 4px;
                font-size: 11px;
                white-space: nowrap;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease;
                z-index: 1000;
            }

            .stats-tab::before {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 50%;
                transform: translateX(-50%);
                border: 5px solid transparent;
                border-top-color: #333;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .stats-tab:hover::after,
            .stats-tab:hover::before {
                opacity: 1;
            }

            .mobile-filters-toggle {
                display: block;
            }

            .filters {
                display: none;
            }

            .links-container {
                grid-template-columns: 1fr;
            }

            .filters {
                flex-direction: column;
                align-items: center;
            }

            .filter-group {
                width: 100%;
                max-width: 300px;
            }

            .pagination-controls {
                flex-direction: column;
                gap: 15px;
            }

            .pagination-buttons {
                flex-wrap: wrap;
                justify-content: center;
                gap: 4px;
            }

            .pagination-btn,
            .pagination-page,
            .pagination-ellipsis {
                padding: 6px 8px !important;
                font-size: 12px !important;
                min-width: 30px !important;
                height: 30px !important;
                margin: 0 1px !important;
            }

            .pagination-info {
                font-size: 14px;
                text-align: center;
            }

            .pagination-ellipsis {
                padding: 0 8px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .links-container.grid-view {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .floating-help-btn {
                width: 50px;
                height: 50px;
                bottom: 15px;
                right: 15px;
                font-size: 20px;
            }

            .floating-help-btn .tooltip {
                font-size: 11px;
                padding: 6px 10px;
                bottom: 60px;
            }

            .floating-achievements-btn {
                bottom: 75px;
                right: 15px;
            }

            .view-controls {
                flex-direction: column;
                gap: 8px;
                padding: 10px;
            }

            .view-label {
                font-size: 13px;
            }

            .view-option {
                padding: 10px;
                min-width: 35px;
            }

            .view-option i {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .favorites-grid {
                padding: 12px;
                border-radius: 8px;
                margin-bottom: 15px;
            }

            .favorites-container {
                gap: 8px;
            }

            .favorites-title {
                font-size: 1rem;
                text-align: left;
            }

            .favorites-grid .link-item a {
                padding: 8px 10px 8px 30px;
                font-size: 13px;
                line-height: 1.3;
            }

            .favorites-grid .link-category {
                font-size: 10px;
            }

            .favorites-grid .link-data {
                font-size: 8px;
                margin-top: 1px;
            }

            .favorites-actions {
                flex-direction: row;
                justify-content: flex-start;
                width: 100%;
            }

            .favorite-badge {
                font-size: 8px;
                padding: 2px 6px;
                left: 8px;
                top: -6px;
            }

            .favorites-grid .link-item a::before {
                left: 12px;
                width: 6px;
                height: 6px;
            }

            .novidades-grid .atualizado-badge {
                top: -5px;
                left: 6px;
                font-size: 7px;
                padding: 1px 4px;
            }

            .novidades-grid .novidade-badge~.atualizado-badge {
                left: 40px;
            }

            .novidades-grid {
                padding: 12px;
                border-radius: 8px;
                margin-bottom: 15px;
            }

            .novidades-container {
                gap: 8px;
            }

            .novidades-title {
                font-size: 1rem;
                text-align: left;
            }

            .novidades-grid .link-item a {
                padding: 8px 10px 8px 30px;
                font-size: 13px;
                line-height: 1.3;
            }

            .novidades-grid .link-category {
                font-size: 10px;
            }

            .novidades-grid .link-data {
                font-size: 8px;
                margin-top: 1px;
            }

            .novidades-actions {
                flex-direction: row;
                justify-content: flex-start;
                width: 100%;
            }

            .novidade-badge {
                font-size: 8px;
                padding: 1px 6px;
                left: 8px;
            }

            .novidades-grid .link-item a::before {
                left: 12px;
                width: 6px;
                height: 6px;
            }

            .achievement-notification {
                padding: 12px;
            }

            .achievement-icon {
                font-size: 1.5rem;
                margin-right: 10px;
            }

            .achievement-title {
                font-size: 12px;
            }

            .achievement-name {
                font-size: 14px;
            }

            .achievement-description {
                font-size: 11px;
            }

            .achievements-summary {
                margin: 15px 0;
                padding: 12px;
            }

            .achievement-item {
                padding: 10px;
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .achievement-item .achievement-icon {
                margin-right: 0;
                align-self: flex-start;
            }

            .achievement-info {
                width: 100%;
            }

            .achievement-status {
                align-self: flex-end;
                margin-top: 8px;
            }

            .link-card {
                margin: 0 5px;
            }

            .link-card a {
                padding: 12px;
            }

            .card-title {
                font-size: 14px;
                line-height: 1.3;
            }

            .card-header {
                margin-bottom: 8px;
            }

            .card-category {
                font-size: 10px;
                margin-bottom: 6px;
            }

            .card-footer {
                margin-top: 10px;
                padding-top: 10px;
            }

            .card-data {
                font-size: 9px;
            }

            .grid-view .premium-icon,
            .grid-view .novidade-icon,
            .grid-view .study-icon,
            .grid-view .docs-icon {
                width: 16px;
                height: 16px;
                font-size: 9px;
            }

            .active-filters-container {
                padding: 10px;
            }

            .active-filters {
                justify-content: center;
            }

            .filter-chip {
                flex: 1;
                min-width: 0;
                max-width: 45%;
                justify-content: space-between;
            }

            .filter-chip .chip-text {
                max-width: 100px;
            }

            .active-filters-header {
                gap: 8px;
            }

            .clear-all-filters {
                width: 100%;
                justify-content: center;
            }

            .history-grid {
                padding: 12px;
                border-radius: 8px;
                margin-bottom: 15px;
            }

            .history-container {
                gap: 8px;
            }

            .history-title {
                font-size: 0.9rem;
                text-align: left;
            }

            .history-item a {
                padding: 6px 8px 6px 28px;
                font-size: 12px;
                line-height: 1.3;
            }

            .history-item .link-data {
                font-size: 8px;
                margin-top: 2px;
            }

            .history-actions {
                flex-direction: row;
                justify-content: flex-start;
                width: 100%;
            }

            .history-clear-btn {
                width: auto;
                justify-content: center;
                padding: 4px 8px;
                font-size: 9px;
            }

            .history-item a::before {
                left: 10px;
                width: 5px;
                height: 5px;
            }

            .links-container.grid-view {
                grid-template-columns: 1fr;
            }

            .link-card a {
                padding: 15px;
            }

            .view-toggle {
                width: 100%;
                justify-content: stretch;
            }

            .view-option {
                flex: 1;
                padding: 10px;
            }

            .floating-help-btn,
            .floating-achievements-btn {
                width: 45px;
                height: 45px;
                bottom: 10px;
                right: 10px;
                font-size: 18px;
            }

            .floating-achievements-btn {
                bottom: 65px;
            }

            .view-controls {
                padding: 8px;
                margin: 10px 0 15px 0;
            }

            .view-toggle {
                width: 100%;
                justify-content: stretch;
            }

            .view-option {
                flex: 1;
                padding: 8px 6px;
                font-size: 12px;
            }

            .view-label {
                font-size: 12px;
                text-align: center;
            }

            body.dark-mode .view-option {
                padding: 8px 6px;
            }
        }

        /* Telas muito pequenas (smartphones antigos) */
        @media (max-width: 360px) {
            .favorites-title {
                font-size: 0.9rem;
            }

            .favorites-grid .link-item a {
                padding: 6px 8px 6px 28px;
                font-size: 12px;
            }

            .favorite-badge {
                font-size: 7px;
                padding: 1px 4px;
            }

            .novidades-title {
                font-size: 0.9rem;
            }

            .novidades-grid .link-item a {
                padding: 6px 8px 6px 28px;
                font-size: 12px;
            }

            .novidades-grid h2 {
                font-size: 1.2rem !important;
            }

            .filter-chip {
                max-width: 100%;
                flex: 0 1 auto;
            }

            .filter-chip .chip-text {
                max-width: 120px;
            }

            .active-filters {
                justify-content: flex-start;
            }

            .history-title {
                font-size: 0.85rem;
            }

            .history-item a {
                padding: 5px 6px 5px 25px;
                font-size: 11px;
            }

            .history-clear-btn {
                padding: 3px 6px;
                font-size: 8px;
            }

            .stats-tab {
                padding: 10px 6px;
                min-height: 45px;
            }

            .stats-tab-icon {
                font-size: 16px;
            }
        }

        /* Modo paisagem em mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .stats-tab {
                padding: 8px 6px;
                min-height: 40px;
                font-size: 11px;
            }

            .stats-tab-text {
                display: inline;
                /* Mostrar texto em landscape */
            }
        }

        /* ===== UTILITÁRIOS ===== */
        .hidden-terms {
            display: none;
        }

        .no-results {
            text-align: center;
            color: #5f6368;
            padding: 20px;
            display: none;
            grid-column: 1 / -1;
        }

        .results-count {
            color: #5f6368;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .error-state {
            text-align: center;
            color: #d93025;
            padding: 20px;
            background-color: #fce8e6;
            border-radius: var(--border-radius);
            margin: 20px 0;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .no-favorites {
            text-align: center;
            color: #5f6368;
            padding: 30px;
            font-style: italic;
            background-color: #f8f9fa;
            border-radius: var(--border-radius);
        }