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

body {
  margin-bottom: 60px;
}

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

/* --- Mobile bottom navigation + quick-log ⊕ ------------------------------------------ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #dee2e6;
  z-index: 1030;
  padding: 0.2rem 0 calc(0.2rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.bottom-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  color: #495057;
  text-decoration: none;
  font-size: 0.7rem;
  padding: 0.35rem 0;
  min-height: 52px;
}

.bottom-nav-item:active,
.bottom-nav-item:focus {
  color: #198754;
}

.bottom-nav-item .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.add-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-top: -18px;
  background: #198754;
  color: #fff;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Clear the fixed bottom bar so it never covers page content / form submit buttons. */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 68px;
  }

  /* Comfortable tap targets for one-handed, gloved, outdoor use. */
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .btn-lg {
    min-height: 52px;
  }
}