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-bottom: 60px;
}

.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;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.9rem 1rem;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: rgba(13, 110, 253, 0.35);
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}

.landing-page {
  background: #f8f5f2;
}

.landing-hero {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.landing-hero__inner {
  background: #fbf8f5;
  border-radius: 18px;
  padding: 3rem 1.5rem;
  box-shadow: 0 18px 40px rgba(68, 48, 34, 0.08);
}

.landing-eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #8f7c6a;
  margin-bottom: 0.75rem;
}

.landing-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #4d3b2c;
  margin-bottom: 0.75rem;
}

.landing-subtitle {
  color: #7b6a5a;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.landing-options {
  margin-bottom: 2.5rem;
}

.landing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(68, 48, 34, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.landing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(68, 48, 34, 0.12);
}

.landing-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.landing-card__title {
  font-size: 1.3rem;
  font-family: "Georgia", "Times New Roman", serif;
  color: #4d3b2c;
  margin-bottom: 0.9rem;
}

.landing-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing-card__actions .btn {
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  align-self: center;
}


.landing-card--disabled {
  opacity: 0.75;
  box-shadow: none;
  background: #f5f1ee;
}

.landing-card--disabled:hover {
  transform: none;
  box-shadow: none;
}

.landing-footer {
  font-size: 0.9rem;
  color: #9a8a7a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.landing-footer a {
  text-decoration: none;
}

.planner-header {
  margin-bottom: 1.75rem;
}

.planner-header__eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #8f7c6a;
  margin-bottom: 0.5rem;
}

.planner-header__title {
  font-family: "Georgia", "Times New Roman", serif;
  color: #4d3b2c;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.planner-header__subtitle {
  color: #7b6a5a;
  max-width: 640px;
}

.planner-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.planner-header__actions .btn {
  white-space: nowrap;
}

.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem;
  border: 1px solid #e6dfd8;
  border-radius: 14px;
  background: #fbf8f5;
}

.icon-picker__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-picker__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-picker__swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2d9d1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.icon-picker__option input:checked + .icon-picker__swatch {
  border-color: #7b6a5a;
  box-shadow: 0 0 0 3px rgba(123, 106, 90, 0.25);
  transform: translateY(-1px);
}

.icon-picker__option input:focus-visible + .icon-picker__swatch {
  outline: 2px solid #258cfb;
  outline-offset: 2px;
}


.icon-picker__swatch--image img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.95;
}

/* ============================================================
   DAY PLANNER TIMELINE (UPDATED: one continuous vertical line)
   ============================================================ */

.day-timeline {
  position: relative;              /* needed for ::before line */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* One full-height line spanning the entire timeline */
.day-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* This aligns with the center of the former 40px rail column:
     left column max = 190px, gap = 1.5rem (24px), rail center = 20px */
  left: calc(190px + 1.5rem + 20px);
  width: 2px;
  background: #d8cec5;
}

.day-timeline__item {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 40px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.day-timeline__left {
  text-align: right;
  color: #3f3428;
}

.day-timeline__icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.day-timeline__time {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.day-timeline__end,
.day-timeline__duration {
  font-size: 0.85rem;
  color: #7b6a5a;
}

/* Keep the rail column for spacing, but don't draw line per item anymore */
.day-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

/* disable the per-item line */
.day-timeline__rail::before {
  content: none;
}

/* The dot stays per item and will visually sit on the full-height line */
.day-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fdfcfb;
  border: 2px solid #9f8f82;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}

.day-timeline__content {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee4db;
}

.day-timeline__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.day-timeline__title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 0;
  color: #4d3b2c;
}

.day-timeline__notes {
  margin-bottom: 0.6rem;
  color: #6f5f50;
}

.day-timeline__meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: #5f5246;
}

.day-timeline__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mobile: stack and remove the vertical line */
@media (max-width: 768px) {
  .day-timeline__item {
    grid-template-columns: 1fr;
  }

  .day-timeline__left {
    text-align: left;
  }

  .day-timeline::before {
    content: none;
  }

  .day-timeline__rail {
    display: none;
  }
}

.todo-summary li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.todo-summary li:last-child {
  border-bottom: none;
}

.timeline-visual {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.timeline-visual::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.35rem;
  width: 2px;
  background: rgba(13, 110, 253, 0.2);
}

.timeline-visual__item {
  position: relative;
  padding-left: 0.75rem;
  padding-bottom: 1rem;
}

.timeline-visual__item::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.timeline-visual__item:last-child {
  padding-bottom: 0;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
}

.timeline-status--passed {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.timeline-status--attention {
  background: rgba(255, 193, 7, 0.2);
  color: #b57b00;
}

.day-plan-preview li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.day-plan-preview li:last-child {
  border-bottom: none;
}

.day-plan-preview__title {
  font-weight: 600;
}

.planner-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.planner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ded6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.planner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(68, 48, 34, 0.12);
}

.planner-item__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.planner-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f4ede6;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.planner-item__title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.planner-item__subtitle {
  color: #8f7c6a;
  font-size: 0.9rem;
}

.planner-item__chevron {
  font-size: 1.2rem;
  color: #b0957c;
}

.food-print {
  display: none;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.7);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-stroke: rgba(255, 255, 255, 0.6);
}

.food-print__shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.food-print__card {
  border-radius: 28px;
  border: 1px solid var(--glass-stroke);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(0, 0, 0, 0.1), transparent 55%),
    var(--invite-bg, none);
  background-size: cover;
  background-position: center;
  padding: 2.5rem;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.food-print__header {
  text-align: center;
  margin-bottom: 2rem;
}

.food-print__kicker {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.78;
}

.food-print__title {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.food-print__subtitle {
  font-size: 1rem;
  opacity: 0.75;
}

.food-print__section {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
}

.food-print__section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.food-print__section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.food-print__course {
  margin-bottom: 1.25rem;
}

.food-print__course-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.food-print__list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.food-print__dish {
  font-weight: 500;
}

.food-print__muted {
  color: var(--muted);
  font-size: 0.95rem;
}

@media print {
  body {
    background: #ffffff !important;
  }

  .food-screen {
    display: none !important;
  }

  .food-print {
    display: block;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .food-print__card {
    box-shadow: none;
  }
}

.invite-timeline-icon-preview {
    object-fit: contain;
    opacity: 0.9;
}

.schedule-task-table .btn,
.schedule-task-table .dropdown-item {
    font-size: 0.8rem;
}

.schedule-action-menu {
    width: 2rem;
    padding: 0.15rem 0;
    line-height: 1;
}
