/* Variabili generali */
:root {
  --color-sidebar-bg: #000 !important;
  --color-sidebar-link: #fff !important;
  --color-sidebar-link-hover: #ff4d4d !important;
  --color-sidebar-border: #333 !important;
}

/* Override diretti per la sidebar */
html.dark .sidebar {
  background-color: var(--color-sidebar-bg) !important;
}

html.dark .sidebar-nav .nav-link {
  color: var(--color-sidebar-link) !important;
  background-color: transparent !important;
}

html.dark .sidebar-nav .nav-link:hover {
  color: var(--color-sidebar-link-hover) !important;
  background-color: rgba(var(--color-primary-rgb), 0.08) !important;
}

html.dark .sidebar-nav .nav-heading {
  color: var(--color-sidebar-link) !important;
}

html.dark .comment {
  background-color: #202122;
}

html.dark .member-info {
  background-color: #202122 !important;
}

html.dark .team .team-member {
  background-color: #363636 !important;
}

html.dark .table.dataTable tbody tr {
  background-color: #363636 !important;
}

html.dark #filesTable,
html.dark #threadTagTable,
html.dark #postTagTable {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
}

html.dark #filesTable th,
html.dark #filesTable td,
html.dark #threadTagTable th,
html.dark #threadTagTable td,
html.dark #postTagTable th,
html.dark #postTagTable td {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}

html.dark table.dataTable {
  border-collapse: collapse !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

html.dark table.dataTable thead {
  background-color: #222 !important;
  color: #fff !important;
}

html.dark table.dataTable tbody tr:hover {
  background-color: rgba(255, 77, 77, 0.1) !important;
}