@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* =========================
   GLOBAL
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background: linear-gradient(135deg,
      #c9cfcf,
      #eac2a8);

  font-family: "Poppins", sans-serif;

  overflow-x: hidden;
  overflow-y: auto;

  padding:
    18px 18px calc(120px + env(safe-area-inset-bottom));

  display: flex;
  flex-direction: column;
}

/* =========================
   PAGE CONTAINER
========================== */

.page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================== */

/* =========================
   BACK BUTTON
========================== */

.page-back-btn {
  width: 48px;
  height: 48px;

  border: none;
  outline: none;

  border-radius: 50%;

  background: #ffffff;

  color: #111111;

  font-size: 1.05rem;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  margin-right: 14px;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.10);

  transition: 0.3s ease;
}

.page-back-btn:hover {
  transform: translateY(-2px);
}

.page-back-btn:active {
  transform: scale(0.95);
}

.top-header {
  width: 100%;

  display: flex;
  align-items: center;

  margin-bottom: 24px;

  animation: fadeTop 0.8s ease;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO */

.brand-logo {
  width: 80px;
  height: 80px;

  object-fit: contain;

  display: block;

  flex-shrink: 0;
}

/* BRAND NAME */

.brand-section h1 {
  font-family: "Montserrat", serif;

  font-size: 1.6rem;
  font-weight: 700;

  color: #000000;

  letter-spacing: 1px;

  line-height: 1;

  text-transform: uppercase;

  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.10);
}

/* =========================
   REMINDER SECTION
========================== */
.reminder-section {

  width: 100%;

  display: flex;
  justify-content: center;

  padding-bottom: 120px;
}

.reminder-card {

  width: min(100%, 520px);

  background: #ffffff;

  border-radius: 28px;

  padding: 24px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .08);

  animation:
    fadeTop .6s ease;
}

.page-title {

  text-align: center;

  color: #744320;

  font-size: 1.6rem;

  margin-bottom: 22px;
}

#reminderForm {

  display: flex;

  flex-direction: column;

  gap: 16px;
}

#reminderForm input,
#reminderForm textarea,
#reminderForm select {

  width: 100%;

  border: none;

  outline: none;

  background: #e0e0e0;

  border-radius: 16px;

  padding: 16px;

  font-size: 15px;

  font-family: "Poppins", sans-serif;
}

#reminderForm textarea {

  resize: none;

  min-height: 120px;
}

.save-btn {

  height: 56px;

  border: none;

  border-radius: 16px;

  background: #964c13;

  color: #fff;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: .3s;
}

.save-btn:hover {

  transform: translateY(-2px);
}

.save-btn:active {

  transform: scale(.98);
}

#toast {

  position: fixed;

  left: 50%;

  bottom: 110px;

  transform:
    translateX(-50%);

  background: #a1551a;

  color: #fff;

  padding: 14px 24px;

  border-radius: 14px;

  font-weight: 600;

  opacity: 0;

  visibility: hidden;

  transition: .35s;

  z-index: 999999;
}

#toast.show {

  opacity: 1;

  visibility: visible;
}

@media(max-width:480px) {

  .reminder-card {

    padding: 18px;
  }

  .page-title {

    font-size: 1.4rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-section h1 {
    font-size: 1.0rem;
  }
}

/* =========================
   BOTTOM NAVIGATION
========================== */

.bottom-nav {
  position: fixed;

  bottom: calc(15px + env(safe-area-inset-bottom));

  left: 50%;
  transform: translateX(-50%);

  width: min(92vw, 420px);
  height: 78px;

  background: rgba(182, 181, 181, 0.92);

  border-radius: 28px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  padding: 0 10px;

  backdrop-filter: blur(12px);

  z-index: 9999;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-item {
  position: relative;

  width: 68px;
  height: 68px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;

  text-decoration: none;
  color: #ffffff;

  transition: 0.35s ease;
}

.nav-link i {
  font-size: 1.2rem;
  transition: 0.35s ease;
}

.nav-text {
  position: absolute;

  bottom: -10px;

  font-size: 0.7rem;

  opacity: 0;

  transform: translateY(10px);

  transition: 0.35s ease;

  color: #000000;
}

.nav-item.active .nav-link i {
  transform: translateY(-10px);

  color: #9c5015;

  text-shadow:
    0 0 10px rgb(253, 210, 196),
    0 0 25px rgba(255, 187, 164, 1);
}

.nav-item.active .nav-text {
  opacity: 1;
  transform: translateY(0);

  font-weight: 600;
}

/* =========================
   ANIMATIONS
========================== */

@keyframes fadeTop {

  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;

  color: #ac5b1c;

  font-weight: 600;

  margin-top: 4px;
}

.call-link i {
  font-size: 13px;
}

.call-link:hover {
  opacity: .8;
}

.reminder-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  margin-top: 8px;

  font-size: 14px;
  color: #555555;

  line-height: 1.5;

  word-break: break-word;
}

.reminder-location i {
  color: #9c5117;
  margin-top: 3px;
  flex-shrink: 0;
}

/* =========================
   MOBILE
========================== */

@media (max-width:480px) {

  body {
    padding:
      14px 12px calc(120px + env(safe-area-inset-bottom));
  }

  .brand-section {
    gap: 10px;
  }

  .nav-text {
    font-size: 0.62rem;
  }
}

/* =========================
   REMINDER TOAST
========================== */

.reminder-toast {
  position: fixed;

  top: 24px;
  right: 24px;

  min-width: 320px;
  max-width: 90vw;

  background: #ffffff;

  border-radius: 24px;

  padding: 16px;

  display: flex;
  align-items: center;
  gap: 14px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18);

  z-index: 99999;

  opacity: 0;
  visibility: hidden;

  transform:
    translateX(120px) scale(0.9);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

/* SHOW */

.reminder-toast.show {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(0) scale(1);
}

/* ICON */

.toast-icon {
  width: 52px;
  height: 52px;

  border-radius: 18px;

  background:
    linear-gradient(135deg,
      #88440f,
      #be6521);

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  animation: toastPulse 1.2s infinite;
}

.toast-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

/* CONTENT */

.toast-content {
  flex: 1;
}

.toast-content h4 {
  font-size: 1rem;
  font-weight: 700;

  color: #111111;

  margin-bottom: 3px;
}

.toast-content p {
  font-size: 0.9rem;
  color: #666666;
}

/* =========================
   POPUP TITLE
========================== */

#popupTitle {
  display: flex;
  align-items: center;
  gap: 6px;

  flex-wrap: nowrap;

  font-size: 1.2rem;
  font-weight: 700;

  line-height: 1.2;

  text-transform: capitalize;
}

/* ANIMATION */

@keyframes toastPulse {

  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* MOBILE */

@media (max-width:480px) {

  .reminder-toast {
    top: 16px;
    right: 12px;
    left: 12px;

    min-width: auto;

    padding: 14px;

    border-radius: 20px;
  }

  .toast-icon {
    width: 46px;
    height: 46px;

    border-radius: 15px;
  }

  .toast-content h4 {
    font-size: 0.92rem;
  }

  .toast-content p {
    font-size: 0.82rem;
  }

}

/* =========================
   HEADER ACTION BUTTON
========================== */

.top-header {
  justify-content: space-between;
}

.list-btn {
  width: 48px;
  height: 48px;

  border: none;
  outline: none;

  border-radius: 50%;

  background: #ffffff;

  color: #a85a1e;

  font-size: 1rem;

  cursor: pointer;

  flex-shrink: 0;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, .10);
}

/* =========================
   POPUP OVERLAY
========================== */

/* =========================
   POPUP CARD
========================== */

.reminder-popup {

  width: 100%;
  max-width: 650px;

  background: #ffffff;

  border-radius: 28px;

  overflow: hidden;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, .25);

  animation: popupShow .3s ease;
}

@keyframes popupShow {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reminder-popup-overlay {

  position: fixed;

  inset: 0;

  background:
    rgba(0, 0, 0, .45);

  backdrop-filter: blur(6px);

  display: flex;

  justify-content: center;
  align-items: center;

  padding: 16px;

  z-index: 999999;

  opacity: 0;
  visibility: hidden;

  transition: .35s;
}

.reminder-popup-overlay.show {

  opacity: 1;
  visibility: visible;
}

/* =========================
   POPUP
========================== */

.popup-header {

  background: #7c3a0a;

  color: #ffffff;

  padding: 18px 22px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {

  font-size: 1.2rem;
}

.popup-close-btn {

  border: none;

  background: none;

  color: #ffffff;

  font-size: 1.3rem;

  cursor: pointer;
}

/* =========================
   LIST
========================== */

.reminder-list {

  padding: 18px;

  overflow-y: auto;

  max-height: 70vh;
}

.reminder-item {

  background: #f8f8f8;

  border-radius: 20px;

  padding: 16px;

  margin-bottom: 14px;

  border-left:
    5px solid #a0541a;
}

.reminder-date {

  font-size: 12px;

  color: #944b13;

  font-weight: 600;

  margin-bottom: 8px;
}

.reminder-name {

  font-size: 16px;

  font-weight: 700;

  color: #111;
}

.reminder-mobile {

  margin-top: 4px;

  color: #666;
}

.delete-reminder-btn {

  margin-top: 12px;

  border: none;

  background: #ff4d4d;

  color: #fff;

  padding: 10px 16px;

  border-radius: 12px;

  cursor: pointer;

  font-weight: 600;
}

.empty-reminder {

  text-align: center;

  color: #666;

  padding: 30px 0;
}

.reminder-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.reminder-order {
  margin-top: 8px;

  font-size: 14px;

  color: #444444;

  line-height: 1.5;

  word-break: break-word;
}

.delete-reminder-btn {

  width: 42px;
  height: 42px;

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  border: none;

  border-radius: 12px;

  background: #ff4d4d;

  color: #ffffff;

  cursor: pointer;

  font-size: 15px;

  transition: .3s ease;
}

.delete-reminder-btn:hover {
  transform: scale(1.05);
}

.delete-reminder-btn i {
  pointer-events: none;
}

/* =========================
   PREVENT BACKGROUND SCROLL
========================== */

body.popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}