/*Change recipe label when checked in meal plan form*/
.recipe-checkbox:checked + .label-for-check {
  font-weight: bold;
}

/* Delete arrows from number field in forms*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.myForm {
  display: none;
}

#myForm {
  position: sticky;
  top: 8px;
}

.icons{
  height: 30px;
  width: 22px;
}

/* Floating action buttons – frosted glass */
.fab {
  position: fixed;
  right: 1.5rem;
  z-index: 1030;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #212529;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.fab:hover {
  color: #212529;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.85);
}
.fab-primary {
  bottom: 1.5rem;
}
.fab-secondary {
  bottom: 3rem;
  background: rgba(248, 249, 250, 0.75);
}
.fab-secondary:hover {
  background: rgba(248, 249, 250, 0.9);
}
.fab-danger {
  bottom: 3rem;
  background: rgba(255, 255, 255, 0.65);
  color: #c92a2a;
}
.fab-danger:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #e03131;
}
.fab-group .fab-secondary {
  bottom: 3rem;
}
.fab-group .fab-danger {
  bottom: 3rem;
}

.fab-form {
  margin: 0;
  padding: 0;
  display: inline;
}
.fab-form .fab {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
}

/* Footer nav – floats at same level as FABs, segmented round buttons */
.footer-nav {
  position: fixed;
  bottom: 1.5rem;

  left: 45%;
  transform: translateX(-50%);
  z-index: 1030;
}

.footer-nav__segmented {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
  padding: 0.25rem;
  box-shadow: 0 4px 12px rgba(231, 231, 231, 0.15);
}

.footer-nav__item {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  color: rgba(33, 37, 41, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
}

.footer-nav__item:hover {
  color: #212529;
  background-color: rgba(0, 0, 0, 0.06);
}

.footer-nav__item--active {
  background-color: rgba(33, 37, 41, 0.12);
  color: #212529;
}

.todays-meal-plan-image {
  display: block;
  width: calc(100% + 6em);
  max-height: 100px;
  object-fit: cover;
  object-position: 90% 55%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-left: -3em;
  animation: parallax infinite;
  animation-timeline: view(-100px);
}

.crop {
  overflow: clip;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.crop--with-caption {
  position: relative;
}

.crop__caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 2rem;
  text-shadow: 0 1px 26px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.footer-nav__item--active:hover {
  background-color: rgba(33, 37, 41, 0.18);
  color: #212529;
}

@keyframes parallax {
  from {
    object-position: 90% 55%;
  }
  to {
    object-position: 90% 45%;
  }
}

/* Meal plan category: gradient bg, frosted glass, scroll-linked parallax */
.meal-plan-category-header {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  border-radius: 20px;
  corner-shape: squircle;
  isolation: isolate;
}

.meal-plan-category-header.mini {
  float: left;
  position: relative;
  top: auto;
  z-index: auto;
}

.meal-plan-category-header__bg {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform: scale(1.14) translateY(0);
  will-change: transform;
  opacity: 0.3;
}

/* @media (prefers-reduced-motion: no-preference) {
  .meal-plan-category-header__bg {
    animation: meal-plan-category-header-parallax linear both;
    animation-timeline: view(-32px);
    animation-range: entry 0% exit 100%;
    opacity: 0.3;
  }
} */

.meal-plan-category-header__frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.meal-plan-category-header__label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

@keyframes meal-plan-category-header-parallax {
  from {
    transform: scale(1.14) translateY(-14%);
  }
  to {
    transform: scale(1.14) translateY(14%);
  }
}

/* Shopping list form — sticky frosted glass */
.shopping-list-form {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.shopping-list-form .input-group > .form-control,
.shopping-list-form .input-group > .form-select {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.55);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-size: 1rem;
}
.shopping-list-form .input-group > .form-control:focus,
.shopping-list-form .input-group > .form-select:focus {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.08);
}

.shopping-list-form__submit {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #212529;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  padding: 0;
}
.shopping-list-form__submit:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 *= require_custom
 */
