html {
  font-size: 14px;
}

@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;
}

html {
  position: relative;
  min-height: 100%;
}

.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 toggle button: show the icon for the theme you'd switch TO */
[data-bs-theme="dark"] .theme-icon-dark {
  display: none;
}

[data-bs-theme="light"] .theme-icon-light,
html:not([data-bs-theme="dark"]) .theme-icon-light {
  display: none;
}

#themeToggle {
  font-size: 1.1rem;
}

.sidebar-menu .nav-header {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color, #6c757d);
  text-transform: uppercase;
}

/* Keep the top navbar + page title pinned; only the page body scrolls. */
.app-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: calc(100vh - 57px);
}

.app-content-header {
  flex: 0 0 auto;
}

.app-content {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

/* Read-only detail view: clearly separate the field label from its value. */
.detail-item {
  margin-bottom: 1.1rem;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bs-emphasis-color);
  word-break: break-word;
}

.detail-value.text-muted-value {
  color: var(--bs-secondary-color);
  font-weight: 400;
  font-style: italic;
}

.detail-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-primary);
}