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 #76adff;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #eef6ff 0%, #e7f1ff 100%);
  color: #2f4f85;
}

h1, h2, h3, h4, h5, h6,
p, span, label, li, small,
.form-label, .form-check-label {
  color: #2f4f85;
}

a {
  color: #2a63c7;
}

a:hover,
a:focus {
  color: #1f4fa8;
}

.text-dark {
  color: #2f4f85 !important;
}

.app-shell {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.topbar {
  background: #f7fbff;
  border-bottom: 1px solid #d6e6ff;
  box-shadow: 0 2px 12px rgba(76, 125, 196, 0.08);
}

.topbar-content {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: #2a63c7;
  letter-spacing: 0.02em;
}

.page-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
  align-items: start;
}

.menu-card,
.content-card {
  background: #ffffff;
  border: 1px solid #d6e6ff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(76, 125, 196, 0.12);
}

.menu-card {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-list a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: #2f4f85;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-list a:hover,
.menu-list a:focus {
  background-color: #e8f2ff;
  color: #1f4fa8;
}

.content-card {
  padding: 1.5rem;
  min-height: 420px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.recipe-card {
  overflow: hidden;
  border: 1px solid #d6e6ff;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.8rem;
}

.recipe-card-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #e8f2ff;
}

.recipe-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.recipe-card-count {
  margin: 0;
}

.app-footer {
  border-top: 1px solid #d6e6ff;
  background: #f7fbff;
  color: #5e6f84;
  padding: 1rem 0;
}

.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;
}

@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .menu-card {
    position: static;
  }
}