/* Bacopa Spa green brand override
   Uses the green sampled from the Bacopa logo instead of the old blue. */
:root{
  --bacopa-green:#74957A;
  --bacopa-green-dark:#5F7F68;
  --bacopa-green-deep:#4F6E58;
  --bacopa-green-soft:#EEF5EF;
  --bacopa-gold:#CDA873;

  --secondary:var(--bacopa-green) !important;
  --theme-public-footer:var(--bacopa-green) !important;
  --theme-public-bar:var(--bacopa-green) !important;
  --theme-admin-sidebar:var(--bacopa-green) !important;
  --theme-admin-bar:var(--bacopa-green) !important;
  --theme-admin-logo-section:var(--bacopa-green) !important;
  --theme-admin-popup-header:var(--bacopa-green) !important;
}

/* Public page: replace old blue surfaces with Bacopa green */
body.theme-public .hero,
body.theme-public .footer,
body.theme-public .public-bar,
body.theme-public .top-bar,
body.theme-public header.hero,
.hero,
.footer{
  background-color:var(--bacopa-green) !important;
}

.logo,
.cat h2,
.body h3,
.modal-body h2,
.btn.outline,
.view-title h2,
.section-title,
body.theme-public a:not(.btn){
  color:var(--bacopa-green) !important;
}

.btn.outline{
  border-color:rgba(116,149,122,.35) !important;
}

/* Keep primary call-to-action gold, but make secondary buttons green */
.btn.secondary,
button.secondary,
.hero .btn.outline,
.actions .btn.outline{
  background:#fff !important;
  color:var(--bacopa-green) !important;
  border-color:rgba(116,149,122,.45) !important;
}

/* Admin page: sidebar/header/bars/popups */
body.theme-admin .sidebar,
body.theme-admin aside.sidebar,
.sidebar,
.admin-sidebar,
.sidepanel,
body.theme-admin .admin-sidebar,
body.theme-admin .admin-bar,
body.theme-admin .top-strip,
body.theme-admin .sidebar-brand,
.sidebar-brand,
.admin-sidebar-logo,
#adminSidebarLogo,
.admin-fixed-logo,
.fixed-admin-logo,
.enhanced-modal-head,
.modal-head,
.popup-head,
.admin-popup-header,
body.theme-admin .theme-admin-bar{
  background-color:var(--bacopa-green) !important;
}

body.theme-admin .sidebar .menu button.active,
body.theme-admin .sidebar button.active,
.sidebar .menu button.active,
.sidebar button.active,
.admin-tab.active,
.theme-save,
button.theme-save{
  background:var(--bacopa-green-dark) !important;
  border-color:var(--bacopa-green-dark) !important;
  color:#fff !important;
}

body.theme-admin .card h2,
body.theme-admin h1,
body.theme-admin h2,
body.theme-admin h3,
.stat strong,
.archive-day h3,
.admin-tab,
.month-head,
.tx-main strong,
.permission-card strong,
.theme-control-panel h3,
.theme-control-group h4{
  color:var(--bacopa-green-deep) !important;
}

body.theme-admin .sidebar::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.35) !important;
}

/* Tables and chips that used blue tint */
.expense-type-chip,
.tx-type,
.badge-neutral,
.admin-chip{
  background:rgba(116,149,122,.10) !important;
  color:var(--bacopa-green-deep) !important;
}

/* Focus and form accents */
input:focus,
select:focus,
textarea:focus{
  border-color:var(--bacopa-green) !important;
  box-shadow:0 0 0 3px rgba(116,149,122,.14) !important;
}
input[type="checkbox"],
input[type="radio"]{
  accent-color:var(--bacopa-green) !important;
}

/* Public/admin glass buttons inside hero */
.hero-desktop-buttons,
.hero-floating-actions{
  border-color:rgba(116,149,122,.28) !important;
}

/* Fallback for hard-coded old blue backgrounds */
[style*="#103c68"],
[style*="rgb(16, 60, 104)"]{
  background-color:var(--bacopa-green) !important;
}
