/* Groc 2.8.2 — Aurora Glass · Dashboard V1
   Based on the user's tested Groc 2.8.2 six-tab build.
   Paint/micro-interactions only: no structural, routing, data, or layout changes.
   Styling is light-theme only; dark mode remains untouched.
*/
:root:not([data-theme="dark"]) {
  --aurora-v1-ink: #23465e;
  --aurora-v1-muted: #607b90;
  --aurora-v1-edge: rgba(255,255,255,.88);
  --aurora-v1-shadow: 0 9px 24px rgba(64,104,145,.10), inset 0 1px 0 rgba(255,255,255,.94);
}

/* Local page tint, not app-shell tint: 2.8.2 keeps all six screens mounted. */
:root:not([data-theme="dark"]) .dashboard-page {
  background:
    radial-gradient(ellipse 85% 330px at 0% 2%, rgba(171,236,226,.27), transparent 82%),
    radial-gradient(ellipse 95% 470px at 100% 33%, rgba(201,198,251,.20), transparent 79%),
    linear-gradient(180deg,#f3f9fa 0%,#f8fafc 56%,#f7fbf9 100%) !important;
}

/* The existing header, avatar, search placement and typography sizing stay intact. */
:root:not([data-theme="dark"]) .dashboard-page > .dashboard-hero {
  --header-text:#23465e;
  --header-muted:#58748b;
  color:var(--aurora-v1-ink) !important;
  background:
    radial-gradient(ellipse at 80% 0%,rgba(153,237,220,.70),transparent 52%),
    radial-gradient(ellipse at 6% 18%,rgba(164,208,255,.64),transparent 51%),
    radial-gradient(ellipse at 91% 94%,rgba(211,187,255,.51),transparent 62%),
    linear-gradient(136deg,#ecfaf8 0%,#e7f3ff 55%,#f1edff 100%) !important;
  box-shadow:0 12px 28px rgba(88,127,170,.13),inset 0 1px rgba(255,255,255,.83) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-greeting > span {
  color: #4d6b84 !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-greeting h1 {
  color:#23445d !important;
  text-shadow:0 1px 0 rgba(255,255,255,.30);
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-avatar {
  color:#285b73 !important;
  background:linear-gradient(140deg,rgba(255,255,255,.87),rgba(217,239,251,.63)) !important;
  border-color:rgba(255,255,255,.95) !important;
  box-shadow:0 8px 19px rgba(76,125,167,.13),inset 0 1px rgba(255,255,255,.93) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-search {
  color:#4a7d93 !important;
  background:linear-gradient(135deg,rgba(255,255,255,.85),rgba(241,249,255,.73)) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  -webkit-backdrop-filter:blur(12px) saturate(125%);
  backdrop-filter:blur(12px) saturate(125%);
  box-shadow:0 7px 22px rgba(66,118,159,.11),inset 0 1px 0 rgba(255,255,255,.94) !important;
  transition:border-color .18s ease,box-shadow .18s ease !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-search input {
  color:#274c67 !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-search input::placeholder {
  color:#668195 !important;
  opacity:1;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-search:focus-within {
  border-color:rgba(123,188,222,.87) !important;
  box-shadow:0 7px 22px rgba(66,118,159,.11),0 0 0 3px rgba(152,205,242,.19) !important;
}

/* Three existing Groc 2.7 collapsible dashboard panels, same dimensions. */
:root:not([data-theme="dark"]) .dashboard-page .dashboard-content-section.groc27-tobuy-panel,
:root:not([data-theme="dark"]) .dashboard-page .dashboard-content-section.groc27-quick-panel,
:root:not([data-theme="dark"]) .dashboard-page .dashboard-content-section.groc27-recipe-panel {
  background:linear-gradient(134deg,rgba(255,255,255,.88),rgba(235,249,255,.79) 57%,rgba(248,242,255,.78)) !important;
  border-color:rgba(231,239,251,.96) !important;
  box-shadow:var(--aurora-v1-shadow) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel > .dashboard-section-heading,
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel > .dashboard-shortcut-heading,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel > .dashboard-shortcut-heading {
  background:
    radial-gradient(ellipse at 9% 0%,rgba(183,242,232,.51),transparent 64%),
    linear-gradient(120deg,rgba(245,254,252,.92),rgba(234,243,255,.91) 66%,rgba(243,238,255,.91)) !important;
  border-color:rgba(255,255,255,.99) !important;
  box-shadow:inset 0 1px rgba(255,255,255,1),0 2px 10px rgba(88,128,177,.08) !important;
}
/* Preserve dashboard category / quick-add / recipe icons from the original build. */
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel > .dashboard-section-heading::before,
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel > .dashboard-shortcut-heading::before,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel > .dashboard-shortcut-heading::before {
  background-color:rgba(255,255,255,.86) !important;
  border-color:rgba(231,242,254,.98) !important;
  box-shadow:0 5px 16px rgba(77,119,156,.10),inset 0 1px rgba(255,255,255,.98) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel .groc-to-buy-toggle,
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .groc23-banner-copy strong,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel .groc23-banner-copy strong {
  color:var(--aurora-v1-ink) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel .groc-to-buy-count.groc26-count-inline,
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .groc23-banner-copy small,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel .groc23-banner-copy small {
  color:var(--aurora-v1-muted) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-card-chevron,
:root:not([data-theme="dark"]) .dashboard-page .groc27-tobuy-panel .groc21-overflow-toggle {
  color:#35657b !important;
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(235,244,255,.84)) !important;
  border-color:rgba(214,232,248,.98) !important;
  box-shadow:0 3px 10px rgba(76,122,161,.10),inset 0 1px rgba(255,255,255,.98) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .dashboard-quick-add-content,
:root:not([data-theme="dark"]) .dashboard-page .groc27-recipe-panel .dashboard-recipe-content {
  background:linear-gradient(138deg,rgba(250,254,254,.94),rgba(244,248,255,.9)) !important;
}

/* Existing compact product cards retain exact 2-column/grid sizing. */
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-card-v3 {
  background:linear-gradient(145deg,#fff 0%,#f6fbff 74%,#f9f5ff 100%) !important;
  border-color:#e0ecf5 !important;
  box-shadow:0 4px 14px rgba(66,105,145,.10),inset 0 1px rgba(255,255,255,.97) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-card-v3.selected {
  background:linear-gradient(137deg,#e6faf4 0%,#ebf7ff 58%,#f4efff 100%) !important;
  border-color:#88d2d0 !important;
  box-shadow:0 0 0 2px rgba(103,212,203,.14),0 5px 17px rgba(54,137,162,.13) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-image-v3 {
  background:linear-gradient(125deg,#f4fbf9,#f1f7ff) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-list-card {
  background:rgba(255,255,255,.57) !important;
  border-color:rgba(218,234,248,.92) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-list-item {
  border-color:rgba(210,227,238,.68) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-empty-card {
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(243,250,255,.84)) !important;
  border-color:rgba(218,233,247,.95) !important;
}

/* Keep categories' user-assigned icon colors; only grade selected background/glow. */
:root:not([data-theme="dark"]) .dashboard-page .dashboard-category-shortcut.active .dashboard-category-icon {
  border-color:rgba(127,203,207,.8) !important;
  box-shadow:0 0 0 3px rgba(164,215,240,.22),0 6px 17px rgba(83,140,171,.10) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-category-shortcut.active small {
  color:#236277 !important;
}

/* Recipe URL and review, with dialog positioning delegated to original CSS. */
:root:not([data-theme="dark"]) .dashboard-page .dashboard-recipe-url .dashboard-recipe-input-wrap input {
  color:#2c5067 !important;
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(235,245,255,.83)) !important;
  border-color:#d7e7f4 !important;
  box-shadow:inset 0 1px rgba(255,255,255,.96),0 2px 9px rgba(80,133,161,.07) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-recipe-url .dashboard-recipe-input-wrap input:focus {
  border-color:#92c6e1 !important;
  box-shadow:0 0 0 3px rgba(140,207,231,.20) !important;
}
:root:not([data-theme="dark"]) .recipe-review-dialog {
  background:linear-gradient(155deg,rgba(255,255,255,.99),rgba(240,249,255,.98) 68%,rgba(246,242,255,.98)) !important;
  border-color:rgba(238,247,255,.96) !important;
  box-shadow:0 23px 55px rgba(32,64,99,.20) !important;
}
:root:not([data-theme="dark"]) .recipe-review-dialog::backdrop {
  background:rgba(34,53,77,.34) !important;
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
/* Non-destructive Dashboard CTAs only. */
:root:not([data-theme="dark"]) .dashboard-page .dashboard-start-shopping-v2 {
  background:linear-gradient(115deg,#39afa2 0%,#49aec7 55%,#658ed7 100%) !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(57,146,168,.22),inset 0 1px rgba(255,255,255,.25) !important;
}
:root:not([data-theme="dark"]) .dashboard-page .dashboard-recipe-url > button[type="submit"]:not(:disabled) {
  background:linear-gradient(115deg,#3caea3,#5caacb) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.45) !important;
}

/* The same six-tab bar, fully preserved: just a gentle frosted Aurora finish. */
:root:not([data-theme="dark"]) .bottom-nav.bottom-nav-glass {
  background:linear-gradient(118deg,rgba(255,255,255,.91),rgba(235,247,254,.88) 59%,rgba(246,239,255,.87)) !important;
  border-color:rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter:blur(16px) saturate(137%) !important;
  backdrop-filter:blur(16px) saturate(137%) !important;
  box-shadow:0 9px 28px rgba(54,87,129,.16),inset 0 1px rgba(255,255,255,.95) !important;
}
:root:not([data-theme="dark"]) .bottom-nav.bottom-nav-glass .bottom-nav-item {
  color:#688096 !important;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .12s ease !important;
}
:root:not([data-theme="dark"]) .bottom-nav.bottom-nav-glass .bottom-nav-item.active {
  color:#1e6780 !important;
  background:linear-gradient(130deg,rgba(172,239,222,.69),rgba(187,219,255,.68) 60%,rgba(222,210,255,.5)) !important;
  box-shadow:0 4px 12px rgba(75,127,184,.13),inset 0 1px rgba(255,255,255,.9) !important;
}

@media (prefers-reduced-motion:no-preference) {
  :root:not([data-theme="dark"]) .dashboard-page .groc27-card-chevron,
  :root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-card-v3,
  :root:not([data-theme="dark"]) .dashboard-page .dashboard-category-shortcut .dashboard-category-icon {
    transition:transform .14s ease,box-shadow .20s ease,border-color .20s ease,background-color .20s ease !important;
  }
  :root:not([data-theme="dark"]) .dashboard-page .groc27-card-chevron:active,
  :root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-card-v3:active,
  :root:not([data-theme="dark"]) .bottom-nav.bottom-nav-glass .bottom-nav-item:active {
    transform:scale(.975);
  }
  :root:not([data-theme="dark"]) .dashboard-page .dashboard-recipe-content:not([hidden]),
  :root:not([data-theme="dark"]) .dashboard-page .dashboard-quick-add-content:not([hidden]) {
    animation:groc-aurora-content-in .19s ease-out both;
  }
  :root:not([data-theme="dark"]) .recipe-review-dialog[open] {
    /* Animate opacity only: do NOT override the modal's centering transform. */
    animation:groc-aurora-dialog-in .21s ease-out both;
  }
  @keyframes groc-aurora-content-in { from {opacity:.75} to {opacity:1} }
  @keyframes groc-aurora-dialog-in { from {opacity:.72} to {opacity:1} }
}
@media (prefers-reduced-motion:reduce) {
  :root:not([data-theme="dark"]) .dashboard-page .groc27-card-chevron,
  :root:not([data-theme="dark"]) .dashboard-page .groc27-quick-panel .quick-add-card-v3,
  :root:not([data-theme="dark"]) .bottom-nav.bottom-nav-glass .bottom-nav-item {
    transition:none !important;
    animation:none !important;
  }
}
