/* PersalOne Business — Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand Colors */
  --ps-green:     #285633;
  --ps-ocre:      #C9993A;
  --ps-bg:        #F8F7F4;
  --ps-navy:      #1B2A4A;
  --ps-white:     #FFFFFF;
  --ps-grey-100:  #F1F0EC;
  --ps-grey-300:  #C8C5BD;
  --ps-grey-700:  #4A4A48;

  /* Semantic States */
  --ps-success:   #2D7A3E;
  --ps-warning:   #C9993A;
  --ps-danger:    #B4302A;
  --ps-info:      #1B2A4A;

  /* Derived */
  --ps-green-05:  rgba(40, 86, 51, 0.05);
  --ps-green-08:  rgba(40, 86, 51, 0.08);
  --ps-green-12:  rgba(40, 86, 51, 0.12);
  --ps-green-light: #3a7a4a;
  --ps-success-bg:  rgba(45, 122, 62, 0.10);
  --ps-warning-bg:  rgba(201, 153, 58, 0.10);
  --ps-danger-bg:   rgba(180, 48, 42, 0.10);

  /* Typography Scale */
  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    14px;
  --text-md:      16px;
  --text-lg:      18px;
  --text-xl:      22px;
  --text-2xl:     28px;
  --text-3xl:     36px;
  --text-display: 52px;

  /* Font Weights */
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-heavy:     800;

  /* Spacing System */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Border Radius */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);

  /* Layout */
  --sidebar-w:    240px;
  --topbar-h:     64px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   200ms ease;
  --t-slow:   300ms ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  color: var(--ps-grey-700);
  background: var(--ps-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gauge-draw {
  from { stroke-dashoffset: 283; }
  to   { stroke-dashoffset: 62; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ps-grey-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ps-grey-700); }
