body.high-contrast {
  font-size: 1.2em;
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #0ff !important;
}

body.high-contrast .btn {
  font-size: 1em;
  background-color: #ff0 !important;
  color: #000 !important;
  border-color: #ff0 !important;
}

html[data-bs-theme="light"] body {
  background-color: #f4f4f8;
  background-image: linear-gradient(to bottom right, #ffffff, #f4f4f8);
}

/* Centered login form container */
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.5rem;
  background-color: var(--bs-body-bg);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Narrow column for action buttons */
.action-col {
  width: 1%;
  white-space: nowrap;
}

/* Consistent column widths across tables */
.id-col {
  width: 6ch;
}

.name-col {
  width: 20ch;
}

.participants-col {
  width: 12ch;
  text-align: center;
}

/* Minimum width for attendance progress column */
.attendance-col {
  min-width: 120px;
}

@media (max-width: 576px) {
  body {
    font-size: 0.9rem;
  }
  .login-box {
    padding: 1rem;
  }
  #main.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
