:root {
  --brand-primary: #5b5fc7;
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 91, 95, 199;
}

body {
  padding-bottom: 3.5rem;
}

.navbar-brand img {
  border-radius: 6px;
}

.landing-card {
  max-width: 32rem;
}

/* Inline replica of a toolbar icon button, used when explanatory text refers
   to one (e.g. the invite-link tip pointing at the copy-link button). */
.icon-btn-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.4em;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
  color: var(--bs-secondary-color);
}

/* The settings modal swaps between two views (settings form / cookie policy),
   each wrapping its own header/body/footer. modal-dialog-scrollable expects
   those to be direct flex children of .modal-content, so the wrappers must
   pass the flex column layout through for the body to scroll. */
#settings-modal .modal-content > * {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.license-card {
  max-width: 40rem;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  text-align: center;
  z-index: 1030;
}

.app-footer a {
  color: inherit;
}

.roster-position {
  width: 1.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.online-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--bs-secondary-color);
  opacity: 0.4;
  flex: none;
}

.online-dot.online {
  background: #2e9e5b;
  opacity: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.you-badge {
  background: #000;
  color: #fff;
}

:root[data-bs-theme='dark'] .you-badge {
  background: #fff;
  color: #000;
}

.roster-item {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}

.roster-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bs-body-bg);
  transform: translateX(0);
  transition: transform 0.2s ease;
  touch-action: pan-y;
}

.roster-row.swiping {
  transition: none;
}

.roster-delete-btn {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4.5rem;
  border: 0;
  background: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
