html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Cute theme variables */
:root {
  --cute-pink: #ffd6e8; /* very light pink */
  --cute-pink-600: #ff88c2; /* accent pink */
  --cute-accent: #ff6fa8; /* stronger pink */
  --cute-muted: #fff0f6;
  --cute-text: #3a2b2b;
  --btn-radius: 1rem;
}

.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;
}

/* Override focus to pink glow for cute theme */
.form-control:focus, .form-floating > .form-control:focus, .form-control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(255,111,168,0.25);
  border-color: var(--cute-pink-600);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: var(--cute-text);
  background: linear-gradient(180deg, #fff 0%, var(--cute-muted) 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;
}

/* Rounded, soft buttons */
.btn {
  border-radius: var(--btn-radius) !important;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary buttons use soft pink accent */
.btn-primary {
  background-color: var(--cute-pink-600);
  border-color: var(--cute-pink-600);
  color: white;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--cute-accent);
  border-color: var(--cute-accent);
}

/* Outline danger softer */
.btn-outline-danger {
  color: var(--cute-pink-600);
  border-color: rgba(255,111,168,0.35);
  background-color: transparent;
}
.btn-outline-danger:hover {
  background-color: rgba(255,111,168,0.08);
  border-color: var(--cute-pink-600);
}

.btn-danger {
  background-color: #ff6f9e;
  border-color: #ff6f9e;
  color: white;
}

/* Cards and elements rounded */
.card, .table, .navbar, .dropdown-menu {
  border-radius: 0.8rem;
}

.card-header {
  background: linear-gradient(90deg, #fff, var(--cute-pink));
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.navbar {
  background: linear-gradient(90deg, #fff, rgba(255,230,240,0.6));
}

.table thead th {
  background: rgba(255,230,240,0.6);
}

/* Soft shadows */
.card, .table, .btn, .dropdown-menu {
  box-shadow: 0 6px 18px rgba(122, 60, 90, 0.04);
}

/* Make links pink-ish */
a, .nav-link {
  color: var(--cute-pink-600);
}
a:hover, .nav-link:hover {
  color: var(--cute-accent);
}

/* Footer health badge smaller and rounded */
#healthFooterText {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,111,168,0.08);
}

/* Input and select round */
.form-control, .form-select {
  border-radius: 0.6rem;
}

/* Make badges and small UI elements match theme */
.badge-primary {
  background-color: var(--cute-pink-600);
  color: white;
}

/* Utility: gentle pastel table row hover */
.table tbody tr:hover {
  background-color: rgba(255,223,236,0.5);
}

/* small screens: reduce radius slightly */
@media (max-width: 575.98px) {
  :root { --btn-radius: 0.6rem; }
}

/* Gradient sign-in button and layout tweaks for login page */
.btn-gradient {
  background: linear-gradient(90deg, var(--cute-pink-600), #b583ff);
  border: none;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 1.2rem;
  width: 100%;
  box-shadow: 0 8px 20px rgba(122, 60, 90, 0.08);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

/* Login page specific */
.login-container {
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.login-card {
  max-width: 560px;
  width: 100%;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(122, 60, 90, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.login-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #331b2b;
}

.login-subtle {
  background: linear-gradient(90deg, rgba(255,245,250,1), rgba(255,240,246,1));
  border-radius: 8px;
  padding: 10px 12px;
  color: #6b3b4c;
  font-size: 0.95rem;
}

.passkey-btn {
  border-radius: 0.6rem;
  width: 100%;
}

/* Make inputs a bit larger on login page */
.login-card .form-control {
  padding: 12px 14px;
}

/* small note box */
.note-box {
  background: linear-gradient(90deg, rgba(255,250,252,1), rgba(255,245,250,1));
  border-radius: 8px;
  padding: 14px;
  border: 1px solid rgba(255,111,168,0.06);
}

/* make the nav login button contrast on the gradient header */
.navbar .btn.rounded-pill {
  box-shadow: 0 6px 18px rgba(122,60,90,0.06);
}