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: 0;
  background: #f8fafc;
  color: #0f172a;
}

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

.app-navbar {
  background: #ffffff;
}

.navbar .nav-link.active {
  font-weight: 600;
  color: #0b5ed7 !important;
}

.container main {
  min-height: calc(100vh - 170px);
}

.footer {
  background: #ffffff;
}

.app-alert {
  border-radius: 0.65rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-surface {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  padding: 1rem;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 0.8rem;
  padding: 1rem;
  color: #475569;
}

.table-modern {
  background: #ffffff;
  border-radius: 0.8rem;
  overflow: hidden;
}

.table-modern thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  border-bottom-width: 1px;
}

.recipe-search-input-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.recipe-search-input-wrapper > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.recipe-search-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 280px;
  overflow-y: auto;
}

.recipe-suggestion-highlight {
  font-weight: 700;
}

/* Identity account pages (default Identity UI markup) — match page-header + card-surface rhythm */
.identity-account-section {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.identity-account-section h1,
main[data-area="Identity"] h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.identity-account-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1rem;
}

.identity-account-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Login / Register columns (heading + Bootstrap row); scoped so Manage nested grids stay untouched */
.identity-account-section h1 + .row > [class*="col-"],
main[data-area="Identity"] h1 + .row > [class*="col-"] {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .identity-account-section h1 + .row,
  main[data-area="Identity"] h1 + .row {
    align-items: stretch;
  }

  .identity-account-section h1 + .row > [class*="col-"],
  main[data-area="Identity"] h1 + .row > [class*="col-"] {
    margin-bottom: 0;
  }
}

.identity-account-section hr,
main[data-area="Identity"] hr {
  border-color: #e2e8f0;
  opacity: 1;
}

.identity-account-section .form-floating > label,
main[data-area="Identity"] .form-floating > label {
  color: #64748b;
}