/* Dark theme - Modern Dark Gaming (AI-GUIDE style) */
body.theme-dark {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.theme-dark-main {
  background: #0f172a;
}
.theme-dark #main {
  background: #0f172a;
}
.theme-dark header {
  background: #1e293b !important;
  border-bottom: 1px solid #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.theme-dark header nav a,
.theme-dark #menu_container a {
  color: #94a3b8 !important;
}
.theme-dark header nav a:hover,
.theme-dark #menu_container a:hover {
  color: #38bdf8 !important;
  text-decoration: none;
}
.theme-dark #site_content {
  background: #0f172a;
}
.theme-dark .content,
.theme-dark .theme-dark-content {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
.theme-dark .sidebar,
.theme-dark #sidebar_container .sidebar {
  background: #1e293b !important;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1 !important;
}
.theme-dark .sidebar h2,
.theme-dark .sidebar h3,
.theme-dark .sidebar h4 {
  color: #38bdf8 !important;
  border-bottom-color: #334155 !important;
}
.theme-dark .sidebar a {
  color: #7dd3fc !important;
}
.theme-dark .sidebar a:hover {
  color: #38bdf8 !important;
}
.theme-dark .sidebar .inner {
  background: transparent !important;
  color: #cbd5e1 !important;
}
.theme-dark p,
.theme-dark .content p {
  color: #cbd5e1 !important;
}
.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark .content h1, .theme-dark .content h2, .theme-dark .content h3 {
  color: #f1f5f9 !important;
}
/* Wszystkie tabele (highscores, news, itd.) – ciemne tło i jasna czcionka jak w sidebarze */
.theme-dark table#news,
.theme-dark .content table,
.theme-dark table {
  background: #1e293b !important;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
}
.theme-dark table tr th,
.theme-dark table tr td,
.theme-dark .content table tr th,
.theme-dark .content table tr td,
.theme-dark table#news tr th,
.theme-dark table#news tr td {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
.theme-dark table#news tr.yellow,
.theme-dark .content table tr.yellow,
.theme-dark table tr.yellow {
  background: #334155 !important;
  color: #38bdf8 !important;
}
.theme-dark table tr:first-child td,
.theme-dark table tr:first-child th {
  border-top: none !important;
}
.theme-dark table#news td,
.theme-dark .content table td {
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
.theme-dark table#news a,
.theme-dark .content table a,
.theme-dark table a {
  color: #7dd3fc !important;
}
.theme-dark table#news a:hover,
.theme-dark .content table a:hover,
.theme-dark table a:hover {
  color: #38bdf8 !important;
}
.theme-dark footer {
  background: #1e293b !important;
  border-top: 1px solid #334155;
  color: #94a3b8 !important;
}
.theme-dark footer a {
  color: #7dd3fc !important;
}
.theme-dark footer a:hover {
  color: #38bdf8 !important;
}
.theme-dark #scroll .top {
  background: #1e293b;
  border: 1px solid #334155;
}
.theme-dark select[name="newspage"] {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 4px;
}
.theme-dark input[type="text"],
.theme-dark input[type="password"],
.theme-dark input[type="submit"] {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
  border-radius: 4px;
}
.theme-dark input[type="submit"]:hover {
  background: #334155 !important;
  border-color: #38bdf8 !important;
}
