html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 60px;
}

/* --- Karanlık Tema (Dark Mode) --- */
html.dark-theme body {
  background-color: #121417 !important;
  color: #e4e6eb;
}

html.dark-theme .navbar {
  background-color: #1b1f24 !important;
  border-bottom: 1px solid #2d333b;
}

html.dark-theme .card {
  background-color: #1c2026;
  border-color: #2d333b;
  color: #e4e6eb;
}

html.dark-theme .card-header {
  background-color: #22272e;
  border-bottom-color: #2d333b;
  color: #f0f3f6;
}

html.dark-theme .table {
  color: #e4e6eb;
  border-color: #2d333b;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-hover-color: #ffffff;
}

html.dark-theme .table-light {
  --bs-table-bg: #22272e;
  --bs-table-color: #adbac7;
  color: #adbac7;
  border-color: #2d333b;
}

html.dark-theme .table > :not(caption) > * > * {
  border-bottom-color: #2d333b;
}

html.dark-theme .form-control,
html.dark-theme .form-select {
  background-color: #121417;
  border-color: #373e47;
  color: #e4e6eb;
}

html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus {
  background-color: #16191d;
  border-color: #539bf5;
  color: #ffffff;
}

html.dark-theme .form-control::placeholder {
  color: #768390;
}

html.dark-theme .text-muted {
  color: #8b949e !important;
}

html.dark-theme code {
  color: #79c0ff;
}

html.dark-theme .btn-outline-secondary {
  color: #adbac7;
  border-color: #444c56;
}

html.dark-theme .btn-outline-secondary:hover {
  background-color: #30363d;
  color: #ffffff;
}

html.dark-theme .modal-content {
  background-color: #1c2026;
  border-color: #2d333b;
  color: #e4e6eb;
}

html.dark-theme .modal-header,
html.dark-theme .modal-footer {
  border-color: #2d333b;
}

html.dark-theme .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
