@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
  --bg-outer: #E8ECF4;
  --bg-app: #F8F9FD;
  --surface: #FFFFFF;
  --charcoal: #2B2927;
  --charcoal-soft: #3D3A37;
  --accent-green: #68B937;
  --accent-green-dark: #529927;
  --accent-amber: #F59E0B;
  --accent-warm: #FFF3D6;
  --text-main: #1F1E1D;
  --text-muted: #8C8E96;
  --border-soft: #EFEFF4;
  --shadow-card: 0 12px 32px rgba(31, 30, 29, 0.06);
  --shadow-plate: 0 14px 28px rgba(0, 0, 0, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  background: var(--bg-outer);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Mobile App Shell */
.app-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(20, 22, 36, 0.16);
  overflow-x: hidden;
  padding-bottom: 94px;
}

@media (min-width: 500px) {
  body {
    padding: 18px 0;
  }
  .app-shell {
    min-height: calc(100vh - 36px);
    border-radius: 38px;
    border: 7px solid #FFFFFF;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-thumb {
  background: #D4D7E3;
  border-radius: 10px;
}

/* Circular Overlapping Plate Aesthetics (Matches Reference Image) */
.plate-circle {
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-plate);
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.plate-card:hover .plate-circle {
  transform: scale(1.04) rotate(2deg);
}

/* Reference Screen 1: Horizontal Carousel Cards */
.featured-card {
  position: relative;
  background: var(--surface);
  border-radius: 26px;
  padding: 14px;
  padding-top: 90px;
  margin-top: 62px;
  min-width: 188px;
  max-width: 188px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.featured-card:active {
  transform: scale(0.97);
}

.featured-card .plate-img-wrap {
  position: absolute;
  top: -52px;
  left: 16px;
  width: 124px;
  height: 124px;
}

.featured-card .kcal-badge {
  position: absolute;
  top: 26px;
  right: 12px;
  text-align: left;
}

/* Reference Screen 2: Catering Menu Vertical Card */
.menu-list-card {
  position: relative;
  background: var(--surface);
  border-radius: 26px;
  padding: 18px 16px 18px 158px;
  margin-top: 22px;
  min-height: 162px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-list-card .menu-plate-wrap {
  position: absolute;
  left: 14px;
  top: -12px;
  width: 132px;
  height: 132px;
}

.menu-list-card .plus-circle-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F6F7FB;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-list-card .plus-circle-btn:hover {
  background: var(--accent-green);
  color: #fff;
}

/* Reference Screen 3: Detail Hero Backdrop */
.detail-hero-wrapper {
  position: relative;
  padding-top: 16px;
  margin-bottom: 18px;
}

.detail-dark-backdrop {
  background: var(--charcoal);
  color: #FFFFFF;
  border-radius: 0 32px 32px 0;
  margin-left: -20px;
  width: 72%;
  padding: 150px 22px 26px 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 36px rgba(43, 41, 39, 0.22);
}

.detail-plate-large {
  width: 220px;
  height: 220px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-46%);
  z-index: 2;
  border: 6px solid #FFFFFF;
  box-shadow: 0 22px 44px rgba(0,0,0,0.22);
}

.detail-right-stats {
  position: absolute;
  right: 4px;
  bottom: 16px;
  width: 28%;
  padding-left: 12px;
  z-index: 2;
}

/* Date Strip Pills (Matches Reference Screen 1) */
.date-pill {
  min-width: 48px;
  height: 68px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F1F3F9;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.date-pill.active {
  background: var(--charcoal);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(43, 41, 39, 0.25);
  transform: translateY(-2px);
}

.date-pill.warm {
  background: var(--accent-warm);
  color: #5C4813;
}

/* Meal Type Selector Boxes */
.meal-box {
  flex: 1;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  border: 1.5px solid #F0F1F6;
  transition: all 0.2s ease;
}

.meal-box.active {
  background: var(--charcoal);
  color: #FFFFFF;
  border-color: var(--charcoal);
  box-shadow: 0 12px 24px rgba(43, 41, 39, 0.22);
  transform: translateY(-2px);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #ECEEF5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px 12px;
  z-index: 40;
}

@media (min-width: 500px) {
  .bottom-nav {
    bottom: 18px;
    border-radius: 0 0 31px 31px;
    width: calc(440px - 14px);
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--charcoal);
  background: #F2F4FA;
}

.nav-item.active i {
  color: var(--accent-green);
}

/* Modal Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 26, 0.6);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 30px 30px 0 0;
  padding: 22px 20px 30px;
  overflow-y: auto;
  animation: slideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
