.account {
  padding: 1rem 0;
}

.account__title {
  font-size: 2rem;
  margin: 1rem 0;
}
.autocomplete__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background: white;
  position: absolute;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

.autocomplete__item {
  padding: 0.5rem;
  cursor: pointer;
}

.autocomplete__item:hover {
  background: #f0f0f0;
}
/* Block: container--login */
.container--login {
  margin: 0 auto;
  padding: 1rem;
  border-radius: 10px;

  height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
}

/* Block: form */
.form {
  display: flex;
  flex-direction: column;
}

/* Element: form__group */
.form__group--inputs {
  margin-bottom: 1.5rem;
}

/* Element: form__field */
.form__field {
  margin-bottom: 20px;
}

/* Element: form__label */
.form__label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

/* Element: form__input */
.form__input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.form__input:focus {
  border-color: #282826;
  outline: none;
}

/* Element: form-header */
.form-header {
  text-align: center;
  margin-bottom: 20px;
}

/* Element: form-header__title */
.form-header__title {
  font-size: 24px;
  font-weight: bold;
  color: #282826;
  margin-bottom: 10px;
}

/* Element: form-header__subtitle */
.form-header__subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

/* Element: form__actions */
.form__actions {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Responsive adjustments */
@media (min-width: 500px) {
  .container--login {
    padding: 15px;
  }

  .form-header__title {
    font-size: 20px;
  }

  .form__input {
    padding: 8px;
  }
}
.backups__subtitle {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.backups__date {
  font-size: 0.9rem;
  color: #666;
}
.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button--primary {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
}

.button--primary:hover {
  background-color: var(--color-primary-hover);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.button--secondary:hover {
  background-color: var(--color-surface);
}

.button--wide {
  width: 100%;
}
.app-footer {
  --header-pad-y: 0.4rem;
  --header-pad-x: 1.25rem;
  --header-gap: 1.25rem;

  position: absolute;
  background-color: var(--app-footer-bg);
  padding: var(--header-pad-y) var(--header-pad-x);
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

@media (prefers-color-scheme: dark) {
  .app-footer {
    background-color: var(--app-footer-bg);
  }
}
.container--auth {
  max-width: 400px;
  margin: 3rem auto;
}

.form-container {
  background: #fff;
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header__title {
  font-size: 1.6rem;
  font-weight: 300;
}

.form-header__subtitle {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

.form__field-group {
  display: flex;
  gap: 1rem;
}

.form__textarea {
  width: 100%;
}

.form__hint {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.3rem;
}

.form__footer {
  margin-top: 1.5rem;
  text-align: center;
}
/* ===== Header (Block) ===== */
.site-header {
  /* --header-bg: #fff;
  --header-fg: #111; */
  --header-border: #eee;
  --header-gap: 1rem;
  --header-pad-y: 0.4rem;
  --header-pad-x: 0.85rem;

  background: var(--app-background);
  color: var(--app-color);
  /* border-top: 3px solid var(--accent-color); */

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  gap: var(--header-gap);
  padding: var(--header-pad-y) var(--header-pad-x);
}

.icon-nav__primary {
  justify-self: start;
}

.brand__link {
  justify-self: center;
  text-align: center;
}

.icon-nav__secondary {
  justify-self: end;
}

/* ===== Brand ===== */
.brand__title {
  /* font-size: clamp(1rem, 1vw + 0.875rem, 1.25rem); */
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  color: var(--color-primary);
}

/* ===== Primary nav (Block) ===== */
.icon-nav {
  display: flex;
  gap: 2rem;
}

.icon-nav__secondary {
  display: flex;
  gap: 0.75rem;
}

.icon-nav__list {
  --gap: 0.75rem;

  display: flex;
  align-items: center;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-nav__item {}

.icon-nav__link {
  display: inline-block;
  padding: 0.375rem 0.5rem;
  font-size: clamp(0.875rem, 0.25vw + 0.75rem, 1rem); /* slightly smaller */
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
  line-height: 1;
  transition: background-color 120ms ease, color 120ms ease;
}

.icon-nav__link:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.icon-nav__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.icon-nav__link--active {
  background-color: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* ===== Icon nav (Block) ===== */
.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: var(--icon-color);
  border-radius: 0.5rem;
  transition: color 120ms ease, color 120ms ease;
}

.nav__link svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav__link:hover {
  color: var(--icon-color-hover);
}

.nav__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ===== Modifiers ===== */
.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .site-header {
    --header-pad-y: 0.4rem;
    --header-pad-x: 1.25rem;
    --header-gap: 1.25rem;
  }

  .icon-nav__list {
    --gap: 1rem;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .icon-nav__link,
  .nav__link {
    transition: none;
  }
}

@media (prefers-color-scheme: dark){
  .brand__title {
    color: var(--app-color);
  }
}
.helper-panel {
  --header-pad-y: 0.4rem;
  --header-pad-x: 1.25rem;
  --header-gap: 1.25rem;

  background-color: #FAFAFA;
  min-height: 40%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.hp__footer {
  position: absolute;
  padding: var(--header-pad-y) var(--header-pad-x);
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}
.link {
  --danger-color: red;
  --font-size: 16px;
}

.lk--xsmall {
  font-size: calc(var(--font-size) * 0.6);
}

.lk--small {
  font-size: calc(var(--font-size) * 0.8);
}

.lk--danger {
  color: var(--danger-color);
}
.backups__list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.meals {
  width: 50%;
  margin: 0 auto;
  padding: 1rem;
}

.meals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.meals__title {
  font-size: 1.8rem;
}

.meals__notice {
  color: green;
  margin-bottom: 1rem;
}

.meals__list {
  display: grid;
  gap: 1rem;
}

.meal {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fafafa;
}

.meal__name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.meal__details {
  font-size: 0.95rem;
}

.meal__detail {
  margin: 0.3rem 0;
}

.meal__label {
  font-weight: bold;
}

.meal__link {
  color: blue;
  text-decoration: underline;
}
.meal-plan {
  --header-bg: #fff;
  --header-fg: #111;
  --header-border: #eee;
  --header-gap: 1rem;
  --header-pad-y: 0.75rem;
  --header-pad-x: 1rem;
  --font-size: 16px;

  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 2rem;
  margin-bottom: 5dvh;
}

/* Meal Plan Day Container */
.meal-plan__day {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  /* padding: 1rem; */
  border-radius: 6px;
}

.meal-plan__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
  width: 100%;
}

/* Date Section */
.meal-plan__day-name, .meal-plan__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-basis: 25%;
  gap: 0.6875rem; /* 11px in rem */
  align-self: stretch;
}

/* Day Name and Full Date Text */
.meal-plan__day-name span, .meal-plan__date span {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.meal-plan__date span {
  font-size: 0.6rem; /* reduced from 1.5rem for smaller text */
  text-transform: uppercase;
  opacity: 0.6;
}

.meal-plan__day-name span {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.25rem; /* reduced from 1.5rem for smaller text */
}


.meal-plan__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  align-self: stretch;
  flex-grow: 1;
}

.meal-plan__type {
  font-size: 0.7rem;
}

.meal-plan__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  cursor: pointer;
  padding: 0.5rem 0rem;
  border-bottom: 1px solid var(--header-border);
}

.meal-plan__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.meal-plan__name {
  font-family: Inter;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.meal-form {
  position: relative;
}

.meal-form__input {
  border: none;
  border-bottom: 1px solid var(--app-color);
  outline: none;
  padding: 0.375rem 0;
  background: none;
}

.meal-form__suggestions {
  position: absolute;
  list-style: none;
  padding-top: 0.5rem;
  width: 100%;
  background-color: var(--app-background);
  z-index: 30;
  & li {
    width: 100%;
    padding: 0.5rem 0.5rem;
  }
  & li:hover {
    background-color: var(--app-background);
  }
}

.meal-plan__slot {
  position: relative;
}

.meal-schedule__delete {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  opacity: 0;
  pointer-events: none; /* disabled until hover */
  z-index: 10;
  border-radius: 0.25rem;
  border: 2px solid var(--app-background);
  background-color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Reveal button on hover of the parent slot */
.meal-plan__slot:hover .meal-schedule__delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-0.125rem);
}

.meal-schedule__delete:hover {
  background-color: var(--app-color);
  transition: background-color 0.3s ease-in-out;
}

/* Ensure SVG icon color is visible */
.meal-schedule__delete svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--app-background); /* white icon on grey bg */
}

/* .meal-schedule__delete svg:hover {
  stroke: var(--app-background);
} */




@media (min-width: 1000px) {
  .meal-plan {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }

  .meal-plan__day {
    flex-direction: column;
  }
}

@media (min-width: 400px) and (max-width: 1000px) {
  .meal-plan {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(100px, auto);
  }

  .meal-plan__day {
    display: flex;
    padding: 1rem;
    align-items: flex-start;
    gap: 2rem;
    align-self: stretch;
    border-radius: 6px;
    background: #FFF;
  }
}
.nav__container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100dvw;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--background-color);
  height: 10dvh;
}

.nav__icon {
  width: 1.8rem;
  height: 1.8rem;
}

.mobile-nav {
  display: flex;
  align-items: center; /* Vertically centers items */
  justify-content: center; /* Centers the title horizontally */
  position: relative; /* Allows positioning of the back button */
  padding-bottom: 1rem;
}

.mobile-nav a {
  position: absolute;
  font-size: 0.9rem;
  text-decoration: none;
  &.right {
    right: 0;
  }
  &.left {
    left: 0; /* Moves the back button to the left */
  }
}

.mobile-nav__title {
  font-size: 0.9rem;
  text-align: center;
  font-weight: bold;
  flex-grow: 1;
}
.notice__container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  padding: 1rem;
  margin: 0 auto;
  width: 100dvw;
  transform: translateY(-10rem);
  transition: all 250ms ease-in-out;
}

.notice {
  display: block;
  background-color: #f4f4f4;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  color: #333;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.notice[hidden] {
  display: block;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.notice--success {
  background-color: #d4edda;
  color: #155724;
}

.notice--error {
  background-color: #f8d7da;
  color: #721c24;
}

.notice__icon {
  margin-right: 8px;
  vertical-align: middle;
}

.notice__text {
  display: inline-block;
  vertical-align: middle;
}
.settings {
  margin: 0 auto;
  min-width: 600px;
}

.settings__list {
  display: flex;
  align-items: center;
  width: 100%;
  & .settings__item {
    padding: 1rem 3rem;
    display: inline-block;
    transition: border-color 0.2s;
    border-bottom: 2px solid #ccc;
  }
  & .settings__item--active {
    border-bottom-color: #333;
    font-weight: 600;
  }
  & .settings__item a {
    text-decoration: none;
    color: inherit;
  }
}
/*
 * 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.
 *


 */

:root {
  /* Brand */
  --color-primary: #ff6b00; /* vibrant orange */
  --color-primary-hover: #e65c00;

  --app-background: #fafafa;
  --app-color: #0b0b0b;

  --app-footer-bg: #efefef;

  --icon-color: #616161;
  --icon-color-hover: #000000;

  /* Semantic */
  --color-danger: #e53935;
  --color-success: #2e7d32;
  --color-warning: #fbc02d;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-surface: #f9f9f9;
  --color-border: #e0e0e0;
  --color-text: #212121;
  --color-text-muted: #757575;

  --font-family: "Inter";
}

@media (prefers-color-scheme: dark) {
  :root {
    --app-background: #1d1d1d;
    --app-color: #f3f3f3;
    --app-footer-bg: #0e0e0e;

    --icon-color: #616161;
    --icon-color-hover: #ffffff;
  }
}

.visible {
  visibility: visible;
}

.hidden {
  visibility: hidden;
}


.touch {
  touch-action: none;
}

* {
  box-sizing: border-box;
  font-size: 16px;
  padding: 0;
  margin: 0;
  color: var(--app-color);
  font-family: var(--font-family);
  font-weight: var(--font-weight-base);
}

body {
  position: relative;
  background-color: var(--app-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin: 2rem;
  flex-grow: 1;
}

a {
  text-decoration: none;
}

.text-center {
  text-align: center;
}

ul {
  list-style: none;
}

/*
.meal-suggestions {
  border: 1px solid #ccc;
  background-color: white;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}

.meal-suggestions.visible {
  display: block;
}

.meal-suggestions li {
  padding: 8px;
  cursor: pointer;
}

.meal-suggestions li:hover {
  background-color: #f0f0f0;
} */
