/**
 * SistecHub - Estilos Globais e Suporte a Tema Claro (Light) e Escuro (Dark)
 * Compatível com todas as paletas GLPI (Light e Dark)
 */

/* ==========================================================================
   1. Variáveis de Tema (Light por defeito / Dark quando ativado)
   ========================================================================== */
:root {
    --sh-bg-card: #ffffff;
    --sh-bg-card-subtle: #f8fafc;
    --sh-bg-header: #ffffff;
    --sh-border-card: #e2e8f0;
    --sh-border-subtle: #f1f5f9;
    --sh-text-title: #0f172a;
    --sh-text-body: #1e293b;
    --sh-text-muted: #64748b;
    --sh-bg-input: #ffffff;
    --sh-border-input: #cbd5e1;
    --sh-text-input: #0f172a;
    --sh-placeholder-input: #94a3b8;
    --sh-table-th-bg: #f8f9fa;
    --sh-table-th-color: #475569;
    --sh-table-td-bg: #ffffff;
    --sh-table-td-hover: #f1f5f9;
    --sh-table-border: #e2e8f0;
}

html.sh-dark-mode,
body.sh-dark-mode {
    --sh-bg-card: #1e293b;
    --sh-bg-card-subtle: #182234;
    --sh-bg-header: #1e293b;
    --sh-border-card: #334155;
    --sh-border-subtle: #293548;
    --sh-text-title: #f8fafc;
    --sh-text-body: #f1f5f9;
    --sh-text-muted: #94a3b8;
    --sh-bg-input: #0f172a;
    --sh-border-input: #334155;
    --sh-text-input: #f8fafc;
    --sh-placeholder-input: #64748b;
    --sh-table-th-bg: #1e293b;
    --sh-table-th-color: #cbd5e1;
    --sh-table-td-bg: #1e293b;
    --sh-table-td-hover: #243046;
    --sh-table-border: #334155;
}

/* ==========================================================================
   2. ESTILOS NO TEMA CLARO (LIGHT THEME - PADRÃO)
   ========================================================================== */

/* Cards de Estatísticas KPI (Claro) */
.sistechub-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 1.1rem 1.25rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.sistechub-kpi-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
}
.sistechub-kpi-val {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
}
.kpi-icon-blue {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
}
.kpi-icon-blue i {
    color: #1d4ed8 !important;
}
.kpi-icon-green {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}
.kpi-icon-green i {
    color: #15803d !important;
}
.kpi-icon-amber {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}
.kpi-icon-amber i {
    color: #b45309 !important;
}
.kpi-icon-red {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
.kpi-icon-red i {
    color: #b91c1c !important;
}
.kpi-icon-cyan {
    background-color: #cffafe !important;
    color: #0e7490 !important;
}
.kpi-icon-cyan i {
    color: #0e7490 !important;
}
.kpi-icon-purple {
    background-color: #ede9fe !important;
    color: #6d28d9 !important;
}
.kpi-icon-purple i {
    color: #6d28d9 !important;
}

/* Tabelas no Tema Claro */
#sistechub-machines-table th,
#sistechub-logs-table th,
#sistechub-alerts-table th,
#sistechub-report-table th {
    background-color: #f8f9fa !important;
    color: #475569 !important;
    font-weight: 700 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
#sistechub-machines-table td,
#sistechub-logs-table td,
#sistechub-alerts-table td,
#sistechub-report-table td {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
#sistechub-machines-table tbody tr:nth-child(even) td,
#sistechub-logs-table tbody tr:nth-child(even) td,
#sistechub-alerts-table tbody tr:nth-child(even) td,
#sistechub-report-table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}
#sistechub-machines-table tbody tr:hover td,
#sistechub-logs-table tbody tr:hover td,
#sistechub-alerts-table tbody tr:hover td,
#sistechub-report-table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}
#sistechub-machines-table a,
#sistechub-logs-table a,
#sistechub-alerts-table a,
#sistechub-report-table a {
    color: #0284c7 !important;
}
#sistechub-machines-table a:hover,
#sistechub-logs-table a:hover,
#sistechub-alerts-table a:hover,
#sistechub-report-table a:hover {
    color: #0369a1 !important;
}
#sistechub-machines-table code,
#sistechub-logs-table code,
#sistechub-alerts-table code,
#sistechub-report-table code {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.825rem;
}
#sistechub-machines-table .text-muted,
#sistechub-logs-table .text-muted,
#sistechub-alerts-table .text-muted,
#sistechub-report-table .text-muted {
    color: #64748b !important;
}

/* Barra de Ferramentas / Filtros (Acesso Remoto) - Claro */
.sh-toolbar-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
.sh-filter-btn {
    background: #ffffff !important;
    border: 1px solid #dce1e7 !important;
    color: #334155 !important;
}
.sh-filter-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.sh-filter-btn .sh-pill-count {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.sh-filter-btn.active {
    background: #e02424 !important;
    border-color: #e02424 !important;
    color: #ffffff !important;
}
.sh-filter-btn.active .sh-pill-count {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

/* Busca e Inputs do Acesso Remoto - Claro */
.sh-search-addon,
#sistechub-remote-app .input-group-text {
    background-color: #ffffff !important;
    border-color: #dce1e7 !important;
    color: #64748b !important;
}
#sistechub-live-search,
#sistechub-remote-app .form-control,
#sistechub-remote-app .form-select,
.sistechub-machines-toolbar .form-control,
.sistechub-machines-toolbar .form-select,
.sistechub-alerts-toolbar .form-control,
.sistechub-alerts-toolbar .form-select {
    background-color: #ffffff !important;
    border-color: #dce1e7 !important;
    color: #0f172a !important;
}
#btn-toggle-all-entities {
    background-color: #ffffff !important;
    border-color: #dce1e7 !important;
    color: #334155 !important;
}
#btn-toggle-all-entities:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Painel de Favoritas Fixadas - Claro */
.sistechub-pinned-favorites-panel {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
    border: 1px solid #fde68a !important;
}
.sh-fav-header-icon {
    background: #fef3c7 !important;
    color: #d97706 !important;
}
.sh-fav-count-pill {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

/* Card Individual de Máquina - Claro */
.sistechub-machine-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.sistechub-machine-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07) !important;
    border-color: #cbd5e1 !important;
}
.sistechub-machine-card.is-favorite {
    border-color: #fcd34d !important;
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.25) 0%, #ffffff 40%) !important;
}
.sh-machine-name {
    color: #0f172a !important;
}
.sh-machine-name:hover {
    color: #e02424 !important;
}
.sh-machine-user {
    color: #64748b !important;
}
.sistechub-remoto-id-box {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
}
.sistechub-remoto-id-box .remoto-link {
    color: #3730a3 !important;
}
.sistechub-anydesk-id-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.sistechub-anydesk-id-box .anydesk-link {
    color: #0f172a !important;
}
.sistechub-anydesk-empty-box {
    background: #fffbeb !important;
    border: 1px dashed #fcd34d !important;
    color: #b45309 !important;
}
.sistechub-card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
}
.sh-btn-more {
    background: #ffffff !important;
    border: 1px solid #dce1e7 !important;
    color: #475569 !important;
}
.sh-btn-more:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Acordeão de Entidades - Claro */
.sistechub-entity-accordion {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.sistechub-entity-header {
    background: #ffffff !important;
}
.sistechub-entity-header:hover {
    background: #f8fafc !important;
}
.sistechub-entity-accordion.is-open .sistechub-entity-header {
    background: #fcfcfd !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.sh-entity-title {
    color: #0f172a !important;
}
.sh-entity-path {
    color: #64748b !important;
}
.sh-entity-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
}
.sh-entity-badge.badge-total {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}
.sh-entity-badge.badge-online {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}
.sistechub-entity-body {
    background: #ffffff !important;
}

/* Model Cards (Relatórios) - Claro */
.sistechub-model-card {
    background: #ffffff !important;
    border: 1px solid #e6e8eb !important;
    color: #1e293b !important;
}
.sistechub-model-card:hover {
    border-color: #0b5cad !important;
    box-shadow: 0 4px 12px rgba(11, 92, 173, 0.12) !important;
}
.sistechub-model-card.is-active {
    background-color: rgba(11, 92, 173, 0.08) !important;
    border-color: #0b5cad !important;
}
.sistechub-column-picker {
    background: #ffffff !important;
    border: 1px solid #e6e8eb !important;
    color: #1e293b !important;
}

/* Filtros e Tabela de Logs - Claro */
.sistechub-filter-box {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.sistechub-filter-label {
    color: #1e293b !important;
}
#sistechub-logs-app .form-control,
#sistechub-logs-app .form-select {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}
.sistechub-filter-box .btn-primary {
    background-color: #0b5cad !important;
    border-color: #0b5cad !important;
    color: #ffffff !important;
}
.sistechub-filter-box .btn-primary:hover {
    background-color: #084a8f !important;
    border-color: #084a8f !important;
}
.sistechub-filter-box .btn-outline-secondary {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
}
.sistechub-filter-box .btn-outline-secondary:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   3. ESTILOS NO TEMA ESCURO (DARK THEME - ATIVADO SOMENTE SOBRE .sh-dark-mode)
   ========================================================================== */

/* Neutralização de textos pretos "text-dark" no modo escuro */
html.sh-dark-mode .text-dark,
body.sh-dark-mode .text-dark {
    color: #f8fafc !important;
}

/* Neutralização de fundos brancos acidentais no modo escuro */
html.sh-dark-mode .bg-white,
body.sh-dark-mode .bg-white {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}
html.sh-dark-mode .bg-light,
body.sh-dark-mode .bg-light {
    background-color: #182234 !important;
    color: #f1f5f9 !important;
}

/* Cards de Estatísticas KPI (Escuro) */
html.sh-dark-mode .sistechub-kpi-card,
body.sh-dark-mode .sistechub-kpi-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}
html.sh-dark-mode .sistechub-kpi-label,
body.sh-dark-mode .sistechub-kpi-label {
    color: #94a3b8 !important;
}
html.sh-dark-mode .sistechub-kpi-val,
body.sh-dark-mode .sistechub-kpi-val {
    color: #f8fafc !important;
}
html.sh-dark-mode .kpi-icon-blue,
body.sh-dark-mode .kpi-icon-blue {
    background-color: rgba(29, 78, 216, 0.2) !important;
    color: #60a5fa !important;
}
html.sh-dark-mode .kpi-icon-blue i,
body.sh-dark-mode .kpi-icon-blue i {
    color: #60a5fa !important;
}
html.sh-dark-mode .kpi-icon-green,
body.sh-dark-mode .kpi-icon-green {
    background-color: rgba(21, 128, 61, 0.2) !important;
    color: #4ade80 !important;
}
html.sh-dark-mode .kpi-icon-green i,
body.sh-dark-mode .kpi-icon-green i {
    color: #4ade80 !important;
}
html.sh-dark-mode .kpi-icon-amber,
body.sh-dark-mode .kpi-icon-amber {
    background-color: rgba(180, 83, 9, 0.2) !important;
    color: #fbbf24 !important;
}
html.sh-dark-mode .kpi-icon-amber i,
body.sh-dark-mode .kpi-icon-amber i {
    color: #fbbf24 !important;
}
html.sh-dark-mode .kpi-icon-red,
body.sh-dark-mode .kpi-icon-red {
    background-color: rgba(185, 28, 28, 0.2) !important;
    color: #f87171 !important;
}
html.sh-dark-mode .kpi-icon-red i,
body.sh-dark-mode .kpi-icon-red i {
    color: #f87171 !important;
}
html.sh-dark-mode .kpi-icon-cyan,
body.sh-dark-mode .kpi-icon-cyan {
    background-color: rgba(14, 116, 144, 0.2) !important;
    color: #22d3ee !important;
}
html.sh-dark-mode .kpi-icon-cyan i,
body.sh-dark-mode .kpi-icon-cyan i {
    color: #22d3ee !important;
}
html.sh-dark-mode .kpi-icon-purple,
body.sh-dark-mode .kpi-icon-purple {
    background-color: rgba(109, 40, 217, 0.2) !important;
    color: #a78bfa !important;
}
html.sh-dark-mode .kpi-icon-purple i,
body.sh-dark-mode .kpi-icon-purple i {
    color: #a78bfa !important;
}

/* Tabelas no Modo Escuro */
html.sh-dark-mode #sistechub-machines-table th,
body.sh-dark-mode #sistechub-machines-table th,
html.sh-dark-mode #sistechub-logs-table th,
body.sh-dark-mode #sistechub-logs-table th,
html.sh-dark-mode #sistechub-alerts-table th,
body.sh-dark-mode #sistechub-alerts-table th,
html.sh-dark-mode #sistechub-report-table th,
body.sh-dark-mode #sistechub-report-table th {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-top: 1px solid #334155 !important;
    border-bottom: 2px solid #334155 !important;
}
html.sh-dark-mode #sistechub-machines-table td,
body.sh-dark-mode #sistechub-machines-table td,
html.sh-dark-mode #sistechub-logs-table td,
body.sh-dark-mode #sistechub-logs-table td,
html.sh-dark-mode #sistechub-alerts-table td,
body.sh-dark-mode #sistechub-alerts-table td,
html.sh-dark-mode #sistechub-report-table td,
body.sh-dark-mode #sistechub-report-table td {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid #334155 !important;
}
html.sh-dark-mode #sistechub-machines-table tbody tr:nth-child(even) td,
body.sh-dark-mode #sistechub-machines-table tbody tr:nth-child(even) td,
html.sh-dark-mode #sistechub-logs-table tbody tr:nth-child(even) td,
body.sh-dark-mode #sistechub-logs-table tbody tr:nth-child(even) td,
html.sh-dark-mode #sistechub-alerts-table tbody tr:nth-child(even) td,
body.sh-dark-mode #sistechub-alerts-table tbody tr:nth-child(even) td,
html.sh-dark-mode #sistechub-report-table tbody tr:nth-child(even) td,
body.sh-dark-mode #sistechub-report-table tbody tr:nth-child(even) td {
    background-color: #182234 !important;
}
html.sh-dark-mode #sistechub-machines-table tbody tr:hover td,
body.sh-dark-mode #sistechub-machines-table tbody tr:hover td,
html.sh-dark-mode #sistechub-logs-table tbody tr:hover td,
body.sh-dark-mode #sistechub-logs-table tbody tr:hover td,
html.sh-dark-mode #sistechub-alerts-table tbody tr:hover td,
body.sh-dark-mode #sistechub-alerts-table tbody tr:hover td,
html.sh-dark-mode #sistechub-report-table tbody tr:hover td,
body.sh-dark-mode #sistechub-report-table tbody tr:hover td {
    background-color: #243046 !important;
}
html.sh-dark-mode #sistechub-machines-table a,
body.sh-dark-mode #sistechub-machines-table a,
html.sh-dark-mode #sistechub-logs-table a,
body.sh-dark-mode #sistechub-logs-table a,
html.sh-dark-mode #sistechub-alerts-table a,
body.sh-dark-mode #sistechub-alerts-table a,
html.sh-dark-mode #sistechub-report-table a,
body.sh-dark-mode #sistechub-report-table a {
    color: #60a5fa !important;
}
html.sh-dark-mode #sistechub-machines-table a:hover,
body.sh-dark-mode #sistechub-machines-table a:hover,
html.sh-dark-mode #sistechub-logs-table a:hover,
body.sh-dark-mode #sistechub-logs-table a:hover,
html.sh-dark-mode #sistechub-alerts-table a:hover,
body.sh-dark-mode #sistechub-alerts-table a:hover,
html.sh-dark-mode #sistechub-report-table a:hover,
body.sh-dark-mode #sistechub-report-table a:hover {
    color: #93c5fd !important;
}
html.sh-dark-mode #sistechub-machines-table code,
body.sh-dark-mode #sistechub-machines-table code,
html.sh-dark-mode #sistechub-logs-table code,
body.sh-dark-mode #sistechub-logs-table code,
html.sh-dark-mode #sistechub-alerts-table code,
body.sh-dark-mode #sistechub-alerts-table code,
html.sh-dark-mode #sistechub-report-table code,
body.sh-dark-mode #sistechub-report-table code {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}
html.sh-dark-mode #sistechub-machines-table .text-muted,
body.sh-dark-mode #sistechub-machines-table .text-muted,
html.sh-dark-mode #sistechub-logs-table .text-muted,
body.sh-dark-mode #sistechub-logs-table .text-muted,
html.sh-dark-mode #sistechub-alerts-table .text-muted,
body.sh-dark-mode #sistechub-alerts-table .text-muted,
html.sh-dark-mode #sistechub-report-table .text-muted,
body.sh-dark-mode #sistechub-report-table .text-muted {
    color: #94a3b8 !important;
}

/* Barra de Ferramentas / Filtros (Acesso Remoto) - Escuro */
html.sh-dark-mode .sh-toolbar-card,
body.sh-dark-mode .sh-toolbar-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25) !important;
}
html.sh-dark-mode .sh-filter-btn,
body.sh-dark-mode .sh-filter-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.sh-dark-mode .sh-filter-btn:hover,
body.sh-dark-mode .sh-filter-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}
html.sh-dark-mode .sh-filter-btn .sh-pill-count,
body.sh-dark-mode .sh-filter-btn .sh-pill-count {
    background: #1e293b !important;
    color: #94a3b8 !important;
}

/* Busca e Inputs - Escuro */
html.sh-dark-mode .sh-search-addon,
body.sh-dark-mode .sh-search-addon,
html.sh-dark-mode #sistechub-remote-app .input-group-text,
body.sh-dark-mode #sistechub-remote-app .input-group-text {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
html.sh-dark-mode #sistechub-live-search,
body.sh-dark-mode #sistechub-live-search,
html.sh-dark-mode #sistechub-remote-app .form-control,
body.sh-dark-mode #sistechub-remote-app .form-control,
html.sh-dark-mode #sistechub-remote-app .form-select,
body.sh-dark-mode #sistechub-remote-app .form-select,
html.sh-dark-mode .sistechub-machines-toolbar .form-control,
body.sh-dark-mode .sistechub-machines-toolbar .form-control,
html.sh-dark-mode .sistechub-machines-toolbar .form-select,
body.sh-dark-mode .sistechub-machines-toolbar .form-select,
html.sh-dark-mode .sistechub-alerts-toolbar .form-control,
body.sh-dark-mode .sistechub-alerts-toolbar .form-control,
html.sh-dark-mode .sistechub-alerts-toolbar .form-select,
body.sh-dark-mode .sistechub-alerts-toolbar .form-select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.sh-dark-mode #btn-toggle-all-entities,
body.sh-dark-mode #btn-toggle-all-entities {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.sh-dark-mode #btn-toggle-all-entities:hover,
body.sh-dark-mode #btn-toggle-all-entities:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* Painel de Favoritas Fixadas - Escuro */
html.sh-dark-mode .sistechub-pinned-favorites-panel,
body.sh-dark-mode .sistechub-pinned-favorites-panel {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, #1e293b 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
html.sh-dark-mode .sh-fav-header-icon,
body.sh-dark-mode .sh-fav-header-icon {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fbbf24 !important;
}
html.sh-dark-mode .sh-fav-count-pill,
body.sh-dark-mode .sh-fav-count-pill {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
}

/* Card Individual de Máquina - Escuro */
html.sh-dark-mode .sistechub-machine-card,
body.sh-dark-mode .sistechub-machine-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
html.sh-dark-mode .sistechub-machine-card:hover,
body.sh-dark-mode .sistechub-machine-card:hover {
    border-color: #475569 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html.sh-dark-mode .sistechub-machine-card.is-favorite,
body.sh-dark-mode .sistechub-machine-card.is-favorite {
    border-color: rgba(245, 158, 11, 0.5) !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, #1e293b 45%) !important;
}
html.sh-dark-mode .sh-machine-name,
body.sh-dark-mode .sh-machine-name {
    color: #f8fafc !important;
}
html.sh-dark-mode .sh-machine-user,
body.sh-dark-mode .sh-machine-user {
    color: #94a3b8 !important;
}
html.sh-dark-mode .sistechub-remoto-id-box,
body.sh-dark-mode .sistechub-remoto-id-box {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
}
html.sh-dark-mode .sistechub-remoto-id-box:hover,
body.sh-dark-mode .sistechub-remoto-id-box:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.55) !important;
}
html.sh-dark-mode .sistechub-remoto-id-box .remoto-link,
body.sh-dark-mode .sistechub-remoto-id-box .remoto-link {
    color: #a5b4fc !important;
}
html.sh-dark-mode .sistechub-anydesk-id-box,
body.sh-dark-mode .sistechub-anydesk-id-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}
html.sh-dark-mode .sistechub-anydesk-id-box:hover,
body.sh-dark-mode .sistechub-anydesk-id-box:hover {
    background: #182234 !important;
    border-color: #475569 !important;
}
html.sh-dark-mode .sistechub-anydesk-id-box .anydesk-link,
body.sh-dark-mode .sistechub-anydesk-id-box .anydesk-link {
    color: #f1f5f9 !important;
}
html.sh-dark-mode .sistechub-anydesk-empty-box,
body.sh-dark-mode .sistechub-anydesk-empty-box {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px dashed rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
}
html.sh-dark-mode .sistechub-card-footer,
body.sh-dark-mode .sistechub-card-footer {
    background: #182234 !important;
    border-top: 1px solid #334155 !important;
}
html.sh-dark-mode .sh-btn-more,
body.sh-dark-mode .sh-btn-more {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
html.sh-dark-mode .sh-btn-more:hover,
body.sh-dark-mode .sh-btn-more:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Acordeão de Entidades - Escuro */
html.sh-dark-mode .sistechub-entity-accordion,
body.sh-dark-mode .sistechub-entity-accordion {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
html.sh-dark-mode .sistechub-entity-header,
body.sh-dark-mode .sistechub-entity-header {
    background: #1e293b !important;
}
html.sh-dark-mode .sistechub-entity-header:hover,
body.sh-dark-mode .sistechub-entity-header:hover {
    background: #243046 !important;
}
html.sh-dark-mode .sistechub-entity-accordion.is-open .sistechub-entity-header,
body.sh-dark-mode .sistechub-entity-accordion.is-open .sistechub-entity-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}
html.sh-dark-mode .sh-entity-title,
body.sh-dark-mode .sh-entity-title {
    color: #f8fafc !important;
}
html.sh-dark-mode .sh-entity-path,
body.sh-dark-mode .sh-entity-path {
    color: #94a3b8 !important;
}
html.sh-dark-mode .sh-entity-icon,
body.sh-dark-mode .sh-entity-icon {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(37, 99, 235, 0.35) !important;
    color: #60a5fa !important;
}
html.sh-dark-mode .sh-entity-badge.badge-total,
body.sh-dark-mode .sh-entity-badge.badge-total {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
html.sh-dark-mode .sh-entity-badge.badge-online,
body.sh-dark-mode .sh-entity-badge.badge-online {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}
html.sh-dark-mode .sistechub-entity-body,
body.sh-dark-mode .sistechub-entity-body {
    background: #182234 !important;
}

/* Model Cards (Relatórios) - Escuro */
html.sh-dark-mode .sistechub-model-card,
body.sh-dark-mode .sistechub-model-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.sh-dark-mode .sistechub-model-card:hover,
body.sh-dark-mode .sistechub-model-card:hover {
    background: #243046 !important;
    border-color: #3b82f6 !important;
}
html.sh-dark-mode .sistechub-model-card.is-active,
body.sh-dark-mode .sistechub-model-card.is-active {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6 !important;
}
html.sh-dark-mode .sistechub-column-picker,
body.sh-dark-mode .sistechub-column-picker {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* Filtros e Tabela de Logs - Escuro */
html.sh-dark-mode #sistechub-logs-app,
body.sh-dark-mode #sistechub-logs-app {
    color: #f1f5f9 !important;
}
html.sh-dark-mode .sistechub-filter-box,
body.sh-dark-mode .sistechub-filter-box {
    background-color: #182234 !important;
    border-bottom: 1px solid #334155 !important;
}
html.sh-dark-mode .sistechub-filter-label,
body.sh-dark-mode .sistechub-filter-label {
    color: #cbd5e1 !important;
}
html.sh-dark-mode #sistechub-logs-app .form-control,
body.sh-dark-mode #sistechub-logs-app .form-control,
html.sh-dark-mode #sistechub-logs-app .form-select,
body.sh-dark-mode #sistechub-logs-app .form-select {
    color: #f8fafc !important;
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
}
html.sh-dark-mode .sistechub-filter-box .btn-primary,
body.sh-dark-mode .sistechub-filter-box .btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
html.sh-dark-mode .sistechub-filter-box .btn-primary:hover,
body.sh-dark-mode .sistechub-filter-box .btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}
html.sh-dark-mode .sistechub-filter-box .btn-outline-secondary,
body.sh-dark-mode .sistechub-filter-box .btn-outline-secondary {
    border-color: #475569 !important;
    color: #cbd5e1 !important;
    background-color: #1e293b !important;
}
html.sh-dark-mode .sistechub-filter-box .btn-outline-secondary:hover,
body.sh-dark-mode .sistechub-filter-box .btn-outline-secondary:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* Modais do Acesso Remoto - Escuro */
html.sh-dark-mode .modal-content,
body.sh-dark-mode .modal-content {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155 !important;
}
html.sh-dark-mode .modal-header,
body.sh-dark-mode .modal-header {
    background-color: #182234 !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}
html.sh-dark-mode .modal-body,
body.sh-dark-mode .modal-body {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}
html.sh-dark-mode .modal-footer,
body.sh-dark-mode .modal-footer {
    background-color: #182234 !important;
    border-top: 1px solid #334155 !important;
}
html.sh-dark-mode .sh-conn-card,
body.sh-dark-mode .sh-conn-card {
    background-color: #182234 !important;
    border: 1px solid #334155 !important;
}
html.sh-dark-mode .sh-conn-card:hover,
body.sh-dark-mode .sh-conn-card:hover {
    border-color: #475569 !important;
}
html.sh-dark-mode .sh-conn-card .card-header,
body.sh-dark-mode .sh-conn-card .card-header {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

/* Hub da Máquina - Escuro */
html.sh-dark-mode .sistechub-hub-sidebar .list-group-item:not(.active),
body.sh-dark-mode .sistechub-hub-sidebar .list-group-item:not(.active) {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html.sh-dark-mode .sistechub-hub-sidebar .list-group-item:not(.active):hover,
body.sh-dark-mode .sistechub-hub-sidebar .list-group-item:not(.active):hover {
    background-color: #243046 !important;
    color: #ffffff !important;
}
html.sh-dark-mode .sistechub-hub-sidebar .list-group-item.active,
body.sh-dark-mode .sistechub-hub-sidebar .list-group-item.active {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
    font-weight: 600 !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-header,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-header {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.25) !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-header .fw-semibold,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-header .fw-semibold {
    color: #60a5fa !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-body,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-block-body {
    background-color: #182234 !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-dl > dt,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-dl > dt {
    color: #94a3b8 !important;
}
html.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-dl > dd,
body.sh-dark-mode .sistechub-hub-section-pane .sistechub-hub-inv-dl > dd {
    color: #f1f5f9 !important;
    border-bottom: 1px solid #334155 !important;
}

/* Ficha Técnica / Dossier - Escuro */
html.sh-dark-mode .sistechub-dossier-card,
body.sh-dark-mode .sistechub-dossier-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html.sh-dark-mode .sistechub-dossier-card-header,
body.sh-dark-mode .sistechub-dossier-card-header {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.25) !important;
}
html.sh-dark-mode .sistechub-dossier-card-header h3,
body.sh-dark-mode .sistechub-dossier-card-header h3 {
    color: #60a5fa !important;
}
html.sh-dark-mode .sistechub-dossier-label,
body.sh-dark-mode .sistechub-dossier-label {
    color: #94a3b8 !important;
}
html.sh-dark-mode .sistechub-dossier-value,
body.sh-dark-mode .sistechub-dossier-value {
    color: #f8fafc !important;
}

/* Select2 - Escuro */
html.sh-dark-mode .select2-container--default .select2-selection--single,
body.sh-dark-mode .select2-container--default .select2-selection--single {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.sh-dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.sh-dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
}
html.sh-dark-mode .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.sh-dark-mode .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
}
html.sh-dark-mode .select2-dropdown,
body.sh-dark-mode .select2-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
html.sh-dark-mode .select2-search--dropdown,
body.sh-dark-mode .select2-search--dropdown {
    background-color: #1e293b !important;
}
html.sh-dark-mode .select2-search__field,
body.sh-dark-mode .select2-search__field {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html.sh-dark-mode .select2-results__option,
body.sh-dark-mode .select2-results__option {
    color: #cbd5e1 !important;
}
html.sh-dark-mode .select2-results__option--highlighted,
body.sh-dark-mode .select2-results__option--highlighted {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}
html.sh-dark-mode .select2-results__option[aria-selected="true"],
body.sh-dark-mode .select2-results__option[aria-selected="true"] {
    background-color: #243046 !important;
    color: #60a5fa !important;
}

/* SistecHub Mode Badge */
.sh-badge-sistechub {
    background-color: #ede9fe !important;
    color: #4c1d95 !important;
    border: 1px solid #c4b5fd !important;
}
html.sh-dark-mode .sh-badge-sistechub,
body.sh-dark-mode .sh-badge-sistechub,
[data-bs-theme="dark"] .sh-badge-sistechub {
    background-color: rgba(139, 92, 246, 0.25) !important;
    color: #ddd6fe !important;
    border: 1px solid rgba(167, 139, 250, 0.4) !important;
}
