html {
  font-size: 14px;
}

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

:root {
  --vtx-primary: #930000;
  --vtx-accent: #f15a25;
  --vtx-success: #7ad821;
  --vtx-bg: #f8f8f8;
  --vtx-surface: #ffffff;
  --vtx-text: #222222;
  --vtx-muted: #707070;
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--vtx-bg);
  color: var(--vtx-text);
  font-family: Hind, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

h1,
h2,
.navbar-brand {
  font-family: "Inknut Antiqua", Georgia, serif;
}

a {
  color: #ab1b1b;
}

a:hover {
  color: #dd2222;
}

.navbar {
  background-color: var(--vtx-surface) !important;
  border-bottom: 2px solid #ececec !important;
}

.navbar-brand {
  color: var(--vtx-primary) !important;
  font-weight: 700;
}

.nav-link {
  color: var(--vtx-text) !important;
}

.nav-link:hover {
  color: var(--vtx-accent) !important;
}

.theme-toggle-btn {
  border: 2px solid #aa665b;
  border-radius: 999px;
  color: var(--vtx-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.theme-toggle-btn:hover {
  background-color: #aa665b;
  color: #ffffff;
}

.footer {
  background-color: var(--vtx-surface);
}

.footer .container {
  line-height: 1.4;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.theme-dark {
  --vtx-bg: #161a20;
  --vtx-surface: #1f2630;
  --vtx-text: #e4e8ef;
  --vtx-muted: #aeb7c2;
}

body.theme-dark .navbar,
body.theme-dark .footer,
body.theme-dark .modal-content,
body.theme-dark .card,
body.theme-dark .list-group-item,
body.theme-dark .table {
  background-color: var(--vtx-surface) !important;
  color: var(--vtx-text) !important;
}

body.theme-dark .text-muted {
  color: var(--vtx-muted) !important;
}

body.theme-dark .border-top,
body.theme-dark .border-bottom,
body.theme-dark .table,
body.theme-dark .list-group-item,
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
  border-color: #36404b !important;
}

body.theme-dark .nav-link,
body.theme-dark .navbar-brand,
body.theme-dark .btn-link,
body.theme-dark .modal-title,
body.theme-dark .theme-toggle-btn {
  color: var(--vtx-text) !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark textarea {
  background-color: #12171d;
  color: var(--vtx-text);
  border-color: #36404b;
}

body.theme-dark .btn-close {
  filter: invert(1);
}

body.theme-dark .theme-toggle-btn {
  border-color: #7ad821;
}

body.theme-dark .theme-toggle-btn:hover {
  background-color: #7ad821;
  color: #222222 !important;
}

body.theme-dark .text-dark {
  color: var(--vtx-text) !important;
}

body.theme-dark .table {
  --bs-table-color: var(--vtx-text);
  --bs-table-bg: #1f2935;
  --bs-table-border-color: #36404b;
  --bs-table-striped-bg: #24303c;
  --bs-table-striped-color: var(--vtx-text);
  --bs-table-active-bg: #2c3a49;
  --bs-table-active-color: #f0f5fb;
  --bs-table-hover-bg: #2a3542;
  --bs-table-hover-color: #f0f5fb;
  color: var(--vtx-text) !important;
  border-color: #36404b !important;
}

body.theme-dark .table thead th,
body.theme-dark .table th {
  background-color: #2b3746 !important;
  color: #e6edf5 !important;
  border-color: #36404b !important;
}

body.theme-dark .table td {
  border-color: #36404b !important;
}

body.theme-dark .table-hover > tbody > tr:hover > * {
  background-color: #2a3542 !important;
  color: #f0f5fb !important;
}

body.theme-dark .sticky-top.bg-white,
body.theme-dark .bg-white.sticky-top,
body.theme-dark .table thead.sticky-top,
body.theme-dark thead.sticky-top {
  background-color: #2b3746 !important;
  color: #e6edf5 !important;
}