/*
  theme.css
  ---------
  Project-specific styles. Loaded AFTER bootstrap.min.css and nifty.min.css.
  Never edit the vendor files directly - extend them here so template
  updates (if you ever buy a newer version) don't get overwritten.
*/

:root {
  /* Royal Restaurant brand palette - sampled directly from the logo */
  --tiffin-marigold: #D9A400;       /* brand gold */
  --tiffin-marigold-dark: #A67E00;  /* darker gold shade */
  --tiffin-teal: #0F7A3D;           /* brand green (palm fronds) */
  --tiffin-magenta: #7A0010;        /* brand maroon (calligraphy) */
  --tiffin-mango: #E6C34D;          /* light gold tint */
  --tiffin-ink: #3D2314;            /* brand ink brown (calligraphy strokes) */
  --tiffin-rust: #7A0010;           /* maroon doubles as the "cancelled" tone */
  --tiffin-bg: #FFF8EE;

  /* Status colors used consistently across dashboard, reports, badges */
  --status-full: var(--tiffin-teal);       /* green = going ahead */
  --status-cancelled: var(--tiffin-rust);  /* maroon = stopped */
  --status-partial: var(--tiffin-marigold-dark); /* gold = partial */
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
}

.page-title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Logo lockup in the header */
.tiffin-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tiffin-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.tiffin-logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--tiffin-ink);
}
.auth-card .tiffin-logo img {
  width: 96px;
  height: 96px;
}

/* Header brand (real Nifty markup uses .brand-title, not our .tiffin-logo) */
.header__brand .brand-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--tiffin-ink);
}

/* Sidebar profile avatar placeholder (we use an icon, not a photo) */
.mainnav__avatar {
  color: var(--tiffin-marigold-dark);
  background-color: #fff;
}

/* ---- Status badges (used in reports, preference tables, feedback) ---- */
.badge-status-full {
  background-color: rgba(14, 149, 148, 0.12);
  color: var(--status-full);
  font-weight: 600;
}
.badge-status-cancelled {
  background-color: rgba(181, 72, 47, 0.12);
  color: var(--status-cancelled);
  font-weight: 600;
}
.badge-status-partial {
  background-color: rgba(245, 194, 66, 0.18);
  color: #8a6d1c;
  font-weight: 600;
}

/* ---- Tiffin-stack visual (dashboard "food saved" + menu display) ---- */
.tiffin-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  width: 100%;
  max-width: 160px;
}
.tiffin-stack .tier {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.tiffin-stack .tier.tier-1 { background-color: var(--tiffin-marigold); }
.tiffin-stack .tier.tier-2 { background-color: var(--tiffin-teal); }
.tiffin-stack .tier.tier-3 { background-color: var(--tiffin-magenta); }
.tiffin-stack .tier.tier-empty {
  background-color: rgba(0,0,0,0.06);
  color: transparent;
}

/* ---- Feedback: anonymous tag ---- */
.feedback-anonymous-tag {
  background-color: rgba(43, 33, 24, 0.08);
  color: var(--tiffin-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ---- Auth pages (login) ---- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--tiffin-bg) 0%, #FCEBD5 100%);
  padding: 2rem 1rem;
}







.auth-card {
  max-width: 680px;
  width: 100%;
  border: none;
  border-top: 5px solid var(--tiffin-marigold);
  border-radius: 0.75rem;
}
.auth-card .card-body {
  padding: 3.5rem 4.5rem;
}
.auth-card .form-control {
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 14px;
  width: 400px;
}
.auth-card .btn-lg {
  padding: 0.9rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.auth-card .tiffin-logo img {
  width: 110px;
  height: 110px;
}
@media (max-width: 562px) {
    .auth-card {
        width: 100%;
        max-width: 620px;
    }
    .auth-wrap {
        padding: 1.5rem 1rem;
    }
    .auth-card .card-body {
        padding: 2.5rem 1.75rem;
    }
    .auth-card .tiffin-logo img {
        width: 88px;
        height: 88px;
    }
    .auth-card .form-control {
        padding: 0.9rem 1.1rem;
        font-size: 16px;
        width: 100%;
    }
}





/* ============================================================
   USER (HOUSEHOLD) APP - mobile-first, no sidebar
   ============================================================ */

.user-app {
  background-color: var(--tiffin-bg);
  min-height: 100vh;
  padding-bottom: 76px; /* room for the fixed bottom nav */
}

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.user-topbar__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-main {
  padding: 1.25rem 0;
}
.user-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

.user-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0;
}
.user-bottomnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0;
  color: var(--tiffin-ink);
  opacity: 0.55;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
}
.user-bottomnav__item i {
  font-size: 1.3rem;
}
.user-bottomnav__item.active {
  opacity: 1;
  color: var(--tiffin-marigold-dark);
}

/* Big touch-friendly segmented control for setting a preference */
.pref-mode-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pref-mode-option {
  display: block;
  cursor: pointer;
}
.pref-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pref-mode-option .pref-mode-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-weight: 600;
  min-height: 56px;
}
.pref-mode-option input:checked + .pref-mode-card {
  border-color: var(--tiffin-marigold);
  background-color: rgba(217, 164, 0, 0.08);
}

.pref-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.pref-item-row label {
  flex: 1;
  font-weight: 500;
  margin-bottom: 0;
}
.pref-item-row .form-check-input {
  width: 1.4em;
  height: 1.4em;
}
.pref-item-row .pref-item-tag {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tiffin-rust);
}
.pref-item-row.is-skipped {
  background-color: rgba(122, 0, 16, 0.08);
}
.pref-item-row.is-skipped label {
  text-decoration: line-through;
  opacity: 0.75;
}
.pref-item-row.is-skipped .tag-skip {
  display: inline;
}

/* Full / Cancel-all modes: every row shows the same forced state,
   using the same visual language as the per-item highlight above. */
#itemSkipList.mode-full .pref-item-row {
  background-color: rgba(15, 122, 61, 0.06);
}
#itemSkipList.mode-full .pref-item-row .form-check-input {
  visibility: hidden;
}
#itemSkipList.mode-full .pref-item-row label {
  text-decoration: none;
  opacity: 1;
}
#itemSkipList.mode-full .pref-item-row .tag-receive {
  display: inline;
  color: var(--tiffin-teal);
}

#itemSkipList.mode-cancelled .pref-item-row {
  background-color: rgba(122, 0, 16, 0.08);
}
#itemSkipList.mode-cancelled .pref-item-row .form-check-input {
  visibility: hidden;
}
#itemSkipList.mode-cancelled .pref-item-row label {
  text-decoration: line-through;
  opacity: 0.75;
}
#itemSkipList.mode-cancelled .pref-item-row .tag-skip {
  display: inline;
}

/* Feedback / profile forms - roomier touch targets */
.user-app .form-control,
.user-app .form-select,
.user-app textarea {
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.user-app .btn {
  padding: 0.7rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
.user-app .btn-lg {
  padding: 0.85rem 1.2rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--tiffin-teal);
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


@media (max-width: 991px) {
  .header__brand {
    display: none;
  }
}