/*
 * "Fresh" look — food-poster style layered on top of theme.css.
 * Deep greens, full-bleed food photography, heavy rounded display type,
 * orange starburst accents and soft rounded cards.
 * Loaded after theme.css; only overrides tokens and adds fresh-* components.
 */
:root {
  --fr-green: #0c573e;
  --fr-green-dark: #08402d;
  --fr-night: #0d2a20;
  --fr-mint: #9fd8bf;
  --fr-leaf: #cfe9c4;
  --fr-leaf-soft: #eef6ea;
  --fr-orange: #f26b1d;
  --fr-cream: #f6f7f2;
  --fr-display: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;

  --ui-bg: var(--fr-cream);
  --ui-subtle: #eef1ea;
  --ui-border: #e3e7de;
  --ui-border-strong: #d3d9cc;
  --ui-text: #14211b;
  --ui-muted: #5f6b64;
  --ui-faint: #9aa59e;
  --ui-accent: var(--fr-green);
  --ui-accent-hover: var(--fr-green-dark);
  --ui-link: var(--fr-green);
  --ui-ring: rgba(12, 87, 62, 0.16);
  --ui-radius: 18px;
  --ui-radius-sm: 12px;
  --ui-shadow: 0 1px 2px rgba(13, 42, 32, 0.04), 0 4px 14px rgba(13, 42, 32, 0.04);
  --ui-shadow-lg: 0 16px 40px rgba(13, 42, 32, 0.14), 0 2px 6px rgba(13, 42, 32, 0.06);
}

/* ---------- Type ---------- */
.page-title, .page-header h4,
.stat-value, .app-brand-name, .fresh-display {
  font-family: var(--fr-display);
}
.page-header h4, .page-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.card-header h5, .card-header .card-title { font-family: var(--fr-display); font-size: 1.05rem; font-weight: 700; }

/* ---------- Sidebar: deep green ---------- */
.bg-menu-theme { background-color: var(--fr-night) !important; color: rgba(255, 255, 255, 0.7); }
.layout-menu { border-right: 0; }
.app-brand.demo { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.app-brand-link, .app-brand-name { color: #fff !important; }
.app-brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.app-brand-mark { background: var(--fr-mint); color: var(--fr-night); border-radius: 10px; width: 32px; height: 32px; }
.layout-menu-toggle.menu-link { color: rgba(255, 255, 255, 0.7); }

.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner .menu-item .menu-link {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.bg-menu-theme .menu-link .menu-icon { color: rgba(255, 255, 255, 0.5); }
.bg-menu-theme .menu-inner > .menu-item > .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #fff;
}
.bg-menu-theme .menu-inner > .menu-item > .menu-link:hover .menu-icon { color: #fff; }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
  background-color: var(--fr-mint) !important;
  color: var(--fr-night);
  font-weight: 700;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon { color: var(--fr-night); }
.bg-menu-theme .menu-header { color: rgba(255, 255, 255, 0.4); }

/* ---------- Top bar ---------- */
#layout-navbar.navbar { background: rgba(246, 247, 242, 0.85) !important; }
#layout-navbar .navbar-page-title { font-family: var(--fr-display); font-weight: 700; font-size: 1.05rem; }

/* ---------- Buttons: pills ---------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-sm { border-radius: 999px; padding: 0.3rem 0.8rem; }
.btn-fresh-light {
  background: #fff !important;
  color: var(--fr-night) !important;
  border: 0 !important;
}
.btn-fresh-light:hover { background: var(--fr-leaf) !important; }
.btn-fresh-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
}
.btn-fresh-ghost:hover { background: rgba(255, 255, 255, 0.12) !important; }

/* ---------- Forms ---------- */
.form-control, .form-select, .input-group-text { border-radius: var(--ui-radius-sm); }
.input-group-merge > :first-child { border-top-left-radius: var(--ui-radius-sm) !important; border-bottom-left-radius: var(--ui-radius-sm) !important; }
.input-group-merge > :last-child { border-top-right-radius: var(--ui-radius-sm) !important; border-bottom-right-radius: var(--ui-radius-sm) !important; }
.form-control:focus, .form-select:focus { border-color: var(--fr-green) !important; }

/* ---------- Starburst badge ---------- */
.fresh-burst {
  --size: 92px;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--fr-orange);
  font-family: var(--fr-display);
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(50% 0%, 61% 11%, 75% 6%, 79% 21%, 94% 25%, 89% 39%, 100% 50%, 89% 61%, 94% 75%, 79% 79%, 75% 94%, 61% 89%, 50% 100%, 39% 89%, 25% 94%, 21% 79%, 6% 75%, 11% 61%, 0% 50%, 11% 39%, 6% 25%, 21% 21%, 25% 6%, 39% 11%);
  transform: rotate(-8deg);
}
.fresh-burst strong { font-size: 1.75rem; letter-spacing: -0.03em; }
.fresh-burst small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; margin-top: 0.15rem; }

/* ---------- Dashboard hero ---------- */
.fresh-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 240px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(100deg, rgba(13, 42, 32, 0.94) 0%, rgba(12, 87, 62, 0.78) 45%, rgba(12, 87, 62, 0.15) 100%),
    url("../img/fresh/restaurant-spread.jpg") center / cover no-repeat;
}
.fresh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fresh-hero h1 {
  font-family: var(--fr-display);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}
.fresh-hero p { color: rgba(255, 255, 255, 0.82); margin: 0 0 1.25rem; max-width: 32rem; font-size: 0.95rem; }
.fresh-hero .fresh-burst { position: absolute; top: 1.5rem; right: 2rem; --size: 104px; }
@media (max-width: 575.98px) {
  .fresh-hero { padding: 1.5rem; min-height: 260px; }
  .fresh-hero .fresh-burst { --size: 80px; top: 1rem; right: 1rem; }
  .fresh-hero .fresh-burst strong { font-size: 1.35rem; }
}

/* ---------- Stat tiles ---------- */
.stat-card { border-radius: 20px; }
.stat-card .card-body { padding: 1.25rem 1.35rem; }
.stat-value { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; margin-top: 0.75rem; }
.stat-icon { border-radius: 12px; width: 38px; height: 38px; font-size: 1.2rem; border: 0; background: var(--fr-leaf-soft); color: var(--fr-green); }
.stat-card.stat-featured { background: var(--fr-leaf) !important; border-color: transparent !important; }
.stat-card.stat-featured .stat-label { color: var(--fr-night); }
.stat-card.stat-featured .stat-value { color: var(--fr-night); }
.stat-card.stat-featured .stat-icon { background: var(--fr-night); color: var(--fr-mint); }

/* ---------- Badges ---------- */
.bg-label-success { background: var(--fr-leaf-soft) !important; color: var(--fr-green) !important; box-shadow: inset 0 0 0 1px var(--fr-leaf); }

/* Sneat's active-item rule is more specific; match it so the mint pill keeps dark text. */
.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active > .menu-link,
.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon {
  color: var(--fr-night) !important;
}

/* ---------- Mobile ---------- */
.table td.font-monospace, .table td[style*="tabular-nums"] { white-space: nowrap; }
@media (max-width: 575.98px) {
  .fresh-hero { padding: 1.25rem; min-height: 0; border-radius: 20px; }
  .fresh-hero h1 { font-size: 2.1rem; padding-right: 4.5rem; }
  .fresh-hero p { font-size: 0.875rem; margin-bottom: 1rem; }
  .fresh-hero .btn { padding: 0.45rem 0.95rem; }
  .fresh-hero .fresh-burst { --size: 70px; top: 0.9rem; right: 0.9rem; }
  .fresh-hero .fresh-burst strong { font-size: 1.15rem; }
  .fresh-hero .fresh-burst small { font-size: 0.55rem; }
  .stat-card .card-body { padding: 1rem; }
  .stat-value { font-size: 1.85rem; }
  .stat-label { font-size: 0.75rem; }
  .card-header { flex-wrap: wrap; gap: 0.25rem; }
}
