html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background-color: #0b1220 !important;
  color: #e5e7eb !important;
}

html[data-theme="dark"] .bg-white {
  background-color: #111827 !important;
}

html[data-theme="dark"] .bg-gray-50 {
  background-color: #0b1220 !important;
}

html[data-theme="dark"] .bg-gray-100 {
  background-color: #1f2937 !important;
}

html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-400 {
  color: #d1d5db !important;
}

html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300 {
  border-color: #374151 !important;
}

html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-md {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: #ffffff;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: #111827;
  border-color: #9ca3af;
}

html[data-theme="dark"] .theme-toggle {
  background: #111827;
  border-color: #4b5563;
  color: #e5e7eb;
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: #9ca3af;
}

/* Dark mode: make the navbar brand/logo stand out */
html[data-theme="dark"] nav a[href="index.html"].font-bold.text-xl {
  color: #ffffff !important;
}
html[data-theme="dark"] nav a[href="index.html"].font-bold.text-xl:hover {
  color: #f3f4f6 !important;
}

/* ── Dil Seçici Butonlar ───────────────────────────────────────── */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}
.lang-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.lang-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.lang-btn:hover {
  border-color: #9ca3af;
  color: #111827;
  z-index: 1;
}
.lang-btn.active {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  z-index: 1;
}
html[data-theme="dark"] .lang-btn {
  background: #111827;
  border-color: #4b5563;
  color: #9ca3af;
}
html[data-theme="dark"] .lang-btn:hover {
  border-color: #9ca3af;
  color: #e5e7eb;
}
html[data-theme="dark"] .lang-btn.active {
  border-color: #3b82f6;
  color: #60a5fa;
  background: #1e3a5f;
}

/* ── Hero CTA butonu dark modda ────────────────────────────────── */
html[data-theme="dark"] header a[href="#tools"] {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] header a[href="#tools"]:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
}
