/* Guestlens "Joyful" theme. Hand-written (no build step); every rule is scoped to the theme attribute. */
html[data-theme="joyful"] {
  --gj-slate: #373f51;
  --gj-blush: #dfbbb1;
  --gj-paper: #fbf5f3;
  --gj-coral: #f56476;
  --gj-rose: #e43f6f;
  --gj-radius: 1rem;
  --gj-accent: linear-gradient(135deg, #f56476, #e43f6f);
}
html[data-theme="joyful"] body { background: var(--gj-paper); }
html[data-theme="joyful"] .fi-main-ctn, html[data-theme="joyful"] .fi-layout { background: var(--gj-paper); }
html[data-theme="joyful"].dark body, html[data-theme="joyful"].dark .fi-main-ctn { background: #1b1f2a; }

/* Cards */
html[data-theme="joyful"] .fi-section,
html[data-theme="joyful"] .fi-ta-ctn,
html[data-theme="joyful"] .fi-wi-stats-overview-stat,
html[data-theme="joyful"] .fi-wi-widget .fi-section {
  border-radius: var(--gj-radius);
  border-top: 3px solid var(--gj-coral);
  box-shadow: 0 1px 2px rgba(55, 63, 81, .06), 0 6px 18px rgba(55, 63, 81, .06);
}
html[data-theme="joyful"] .fi-wi-stats-overview-stat { transition: transform .15s ease, box-shadow .15s ease; }
html[data-theme="joyful"] .fi-wi-stats-overview-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(228, 63, 111, .14); }

/* Buttons and inputs */
html[data-theme="joyful"] .fi-btn { border-radius: 999px; }
html[data-theme="joyful"] .fi-btn.fi-color-primary:not(.fi-outlined) { background-image: var(--gj-accent); border: 0; color: #fff; }
html[data-theme="joyful"] .fi-input-wrp, html[data-theme="joyful"] .fi-modal-window { border-radius: .75rem; }
html[data-theme="joyful"] .fi-modal-window { border-radius: var(--gj-radius); }

/* Sidebar and topbar */
html[data-theme="joyful"] .fi-sidebar, html[data-theme="joyful"] .fi-topbar nav { background: #fff; }
html[data-theme="joyful"].dark .fi-sidebar, html[data-theme="joyful"].dark .fi-topbar nav { background: var(--gj-slate); }
html[data-theme="joyful"] .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-image: var(--gj-accent); }
html[data-theme="joyful"] .fi-sidebar-item.fi-active > .fi-sidebar-item-btn * { color: #fff; }
html[data-theme="joyful"] .fi-sidebar-group-label { letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }

/* Page headings */
html[data-theme="joyful"] .fi-header-heading { color: var(--gj-slate); font-weight: 700; }
html[data-theme="joyful"].dark .fi-header-heading { color: #fff; }

/* Tables */
html[data-theme="joyful"] .fi-ta-header-cell { background: #fff5f6; }
html[data-theme="joyful"].dark .fi-ta-header-cell { background: rgba(255, 255, 255, .04); }
