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;
}

/* Global loading overlay (long-running requests, login, etc.) */
body.is-loading,
body.is-loading * {
  cursor: wait !important;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-loading-overlay__panel {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.btn-loading {
  pointer-events: none;
}

/* Home landing page */
.home-hero {
  background: radial-gradient(1200px circle at 10% 10%, rgba(37, 140, 251, 0.18), transparent 55%),
              radial-gradient(900px circle at 90% 40%, rgba(25, 135, 84, 0.14), transparent 55%),
              linear-gradient(180deg, rgba(248, 249, 250, 1), rgba(248, 249, 250, 0.7));
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.landing-card__img {
  height: 110px;
  object-fit: cover;
}

.landing-card__img--placeholder {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(13,110,253,0.12), rgba(25,135,84,0.10)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 8px, rgba(0,0,0,0.02) 8px 16px);
}

.home-cta {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.10), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.home-tile {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.9rem;
  background: #fff;
}

.home-tile__img {
  width: 100%;
  height: 110px;
  border-radius: 0.6rem;
  background:
    linear-gradient(135deg, rgba(13,110,253,0.12), rgba(25,135,84,0.10)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 8px, rgba(0,0,0,0.02) 8px 16px);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  margin-bottom: 0.75rem;
}

.home-tile__title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.home-tile__text {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  margin: 0;
}

.home-stat {
  border-radius: 0.75rem;
  background: rgba(248, 249, 250, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.85rem;
}

.home-stat__label {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}

.home-stat__value {
  font-weight: 700;
  font-size: 1.1rem;
}

.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;
}