/* Agrolánc color scheme — green #40B454, red #D92C39, dark #14212B */
/* :root:root doubles specificity to always override index.css defaults */

:root:root {
  --primary: 130 48% 48%;
  --primary-foreground: 0 0% 100%;
  --ring: 130 48% 48%;
  --accent: 130 40% 95%;
  --accent-foreground: 130 48% 32%;
  --sidebar-foreground: 206 37% 25%;
  --sidebar-primary: 130 48% 48%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 130 30% 92%;
  --sidebar-accent-foreground: 206 37% 12%;
  --sidebar-ring: 130 48% 48%;
  --chart-1: 130 48% 48%;
  --chart-2: 355 70% 51%;
  --chart-3: 206 37% 25%;
  --chart-4: 130 40% 62%;
  --chart-5: 355 50% 65%;
}

/* Sidebar nav: dark text, green for active/hover */
aside nav a {
  color: hsl(206 37% 35%) !important;
}
aside nav a[aria-current="page"] {
  color: hsl(130 48% 42%) !important;
}
aside nav a:hover {
  color: hsl(130 48% 42%) !important;
}

/* Override hardcoded violet/purple colors to Agrolánc green/dark */
.text-violet-500 {
  color: hsl(130 48% 42%) !important;
}
.bg-violet-500 {
  background-color: hsl(130 48% 48%) !important;
}
.shadow-violet-500\/30 {
  --tw-shadow-color: hsl(130 48% 48% / 0.3) !important;
}
.text-purple-500 {
  color: hsl(206 37% 25%) !important;
}

/* Destructive actions — Agrolánc red */
:root:root {
  --destructive: 355 70% 51%;
  --destructive-foreground: 0 0% 100%;
}

/* Help button — red instead of green */
.relative > button.rounded-full.bg-primary {
  background-color: hsl(355 70% 51%) !important;
  color: hsl(0 0% 100%) !important;
}

/* Space tree: dark for active/selected items and section headers */
[role="treeitem"][aria-selected="true"] {
  color: hsl(130 48% 42%) !important;
}
[role="tree"] .text-primary {
  color: hsl(130 48% 42%) !important;
}

:root.dark {
  --primary: 130 48% 55%;
  --primary-foreground: 130 50% 8%;
  --ring: 130 48% 55%;
  --destructive: 355 70% 58%;
  --destructive-foreground: 0 0% 100%;
  --accent: 130 30% 18%;
  --accent-foreground: 130 48% 70%;
  --sidebar-foreground: 206 20% 75%;
  --sidebar-primary: 130 48% 55%;
  --sidebar-primary-foreground: 130 50% 8%;
  --sidebar-accent: 206 30% 20%;
  --sidebar-accent-foreground: 0 0% 90%;
  --sidebar-ring: 130 48% 55%;
  --chart-1: 130 48% 55%;
  --chart-2: 355 70% 58%;
  --chart-3: 206 30% 55%;
  --chart-4: 130 40% 68%;
  --chart-5: 355 50% 70%;
}
