/* ATHINA VSM – Custom styles */

body {
  background-color: #f8f9fa;
}

.editable-cell {
  min-width: 100px;
  min-height: 1.5em;
  padding: .375rem .5rem;
}

.editable-cell:focus {
  outline: 2px solid #0d6efd;
  background-color: #fff;
}

/* Bootstrap-compatible checkbox list styling for Django CheckboxSelectMultiple */
.form-check-input {
  margin-right: .5rem;
}

/* Fix Django CheckboxSelectMultiple widget wrapper */
form div[id^="id_"] > div {
  display: flex;
  align-items: center;
  padding: .35rem 0;
}

form div[id^="id_"] > div > label {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  margin: 0;
}

form div[id^="id_"] > div input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  margin: 0;
  position: static;
}

.card-header {
  font-weight: 600;
}

/* ── Dark mode overrides ── */
[data-bs-theme="dark"] body {
  background-color: #212529;
}

[data-bs-theme="dark"] .editable-cell:focus {
  background-color: #2b3035;
}

#theme-toggle {
  font-size: 1.15rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: .25rem .5rem;
}

[data-bs-theme="dark"] .card {
  border-color: rgba(255, 255, 255, .1);
}

[data-bs-theme="dark"] footer {
  border-color: rgba(255, 255, 255, .1) !important;
}

/* ── Intro.js dark mode ── */
[data-bs-theme="dark"] .introjs-tooltip {
  background-color: #1e293b;
  color: #e2e8f0;
  border: 1px solid #475569;
}
[data-bs-theme="dark"] .introjs-tooltip-title {
  color: #f1f5f9;
}
[data-bs-theme="dark"] .introjs-tooltiptext {
  color: #cbd5e1;
}
[data-bs-theme="dark"] .introjs-arrow.top {
  border-bottom-color: #1e293b;
}
[data-bs-theme="dark"] .introjs-arrow.bottom {
  border-top-color: #1e293b;
}
[data-bs-theme="dark"] .introjs-arrow.left {
  border-right-color: #1e293b;
}
[data-bs-theme="dark"] .introjs-arrow.right {
  border-left-color: #1e293b;
}
[data-bs-theme="dark"] .introjs-button {
  background-color: #334155;
  color: #e2e8f0;
  border-color: #475569;
  text-shadow: none;
}
[data-bs-theme="dark"] .introjs-button:hover,
[data-bs-theme="dark"] .introjs-button:focus {
  background-color: #475569;
  color: #f8fafc;
}
[data-bs-theme="dark"] .introjs-skipbutton {
  color: #94a3b8;
}
[data-bs-theme="dark"] .introjs-bullets ul li a {
  background: #475569;
}
[data-bs-theme="dark"] .introjs-bullets ul li a.active {
  background: #60a5fa;
}
[data-bs-theme="dark"] .introjs-progress .introjs-progressbar {
  background-color: #3b82f6;
}
[data-bs-theme="dark"] .introjs-helperLayer {
  border-color: rgba(96, 165, 250, .5);
}
