/* ==========================================================================
   Nuline Connect — Color tokens
   Derived from the Connect app icon: deep brand blue gradient + clinical neutrals.
   Two layers: (1) raw palette ramps, (2) semantic aliases used by components.
   ========================================================================== */

:root {
  /* ----- Brand blue (from logo gradient #1A4F91 -> #1465A9) ----- */
  --brand-50:  #eef4fb;
  --brand-100: #d8e6f5;
  --brand-200: #b0caea;
  --brand-300: #7ea7d8;
  --brand-400: #3f7cc0;
  --brand-500: #1f63ab;   /* mid brand */
  --brand-600: #1a4f91;   /* PRIMARY — logo deep blue */
  --brand-700: #163f74;
  --brand-800: #122f57;
  --brand-900: #0d2240;

  /* Signature gradient (header bars, splash, app icon) */
  --brand-gradient: linear-gradient(135deg, #1a4f91 0%, #1465a9 100%); /* @kind color */
  --brand-gradient-soft: linear-gradient(135deg, #1f63ab 0%, #2f86c4 100%); /* @kind color */

  /* ----- Cool neutral ramp (clinical slate) ----- */
  --slate-0:   #ffffff;
  --slate-25:  #f8fafc;
  --slate-50:  #f1f5f9;
  --slate-100: #e6ecf3;
  --slate-200: #d3dde8;
  --slate-300: #b3c1d1;
  --slate-400: #8497ad;
  --slate-500: #5e7186;
  --slate-600: #45566a;
  --slate-700: #324154;
  --slate-800: #1f2c3d;
  --slate-900: #131e2c;
  --slate-950: #0b131e;

  /* ----- Status ramps (monitoring is alarm-driven) ----- */
  /* In-range / OK — green */
  --ok-50:  #e8f6ee;
  --ok-100: #c6e9d4;
  --ok-300: #5cbd84;
  --ok-500: #1f9457;
  --ok-600: #197a48;
  --ok-700: #136039;

  /* Warning / drifting — amber */
  --warn-50:  #fdf3e3;
  --warn-100: #f9e1b8;
  --warn-300: #eeb04a;
  --warn-500: #c77a00;
  --warn-600: #a96400;
  --warn-700: #874f00;

  /* Alarm / breach — red */
  --alarm-50:  #fdeaea;
  --alarm-100: #f8cdcd;
  --alarm-300: #e98080;
  --alarm-500: #cf3030;
  --alarm-600: #b02323;
  --alarm-700: #8c1c1c;

  /* Frozen / sub-zero accent — cyan (for freezer units) */
  --frozen-50:  #e6f4f9;
  --frozen-100: #c2e5f0;
  --frozen-500: #1390b8;
  --frozen-600: #0f7596;

  /* Offline / muted — slate-based, defined via aliases below */

  /* ========================================================================
     SEMANTIC ALIASES — reference these in components, not the raw ramps.
     ======================================================================== */

  /* Surfaces */
  --surface-app:        var(--slate-50);    /* page background */
  --surface-card:       var(--slate-0);     /* default card */
  --surface-sunken:     var(--slate-100);   /* inset wells, list backgrounds */
  --surface-raised:     var(--slate-0);
  --surface-inverse:    var(--slate-900);   /* dark panels */
  --surface-brand:      var(--brand-600);
  --surface-brand-soft: var(--brand-50);

  /* Text */
  --text-strong:   var(--slate-900);  /* headings */
  --text-body:     var(--slate-700);  /* default copy */
  --text-muted:    var(--slate-500);  /* secondary, captions */
  --text-faint:    var(--slate-400);  /* placeholder, disabled label */
  --text-on-brand: var(--slate-0);
  --text-link:     var(--brand-600);

  /* Borders & dividers */
  --border-subtle: var(--slate-200);
  --border-default: var(--slate-300);
  --border-strong: var(--slate-400);
  --border-brand:  var(--brand-600);
  --focus-ring:    var(--brand-400);

  /* Interactive (primary action) */
  --action-bg:        var(--brand-600);
  --action-bg-hover:  var(--brand-700);
  --action-bg-active: var(--brand-800);
  --action-fg:        var(--slate-0);

  /* Status — semantic */
  --status-ok-fg:    var(--ok-700);
  --status-ok-bg:    var(--ok-50);
  --status-ok-solid: var(--ok-500);
  --status-warn-fg:    var(--warn-700);
  --status-warn-bg:    var(--warn-50);
  --status-warn-solid: var(--warn-500);
  --status-alarm-fg:    var(--alarm-700);
  --status-alarm-bg:    var(--alarm-50);
  --status-alarm-solid: var(--alarm-500);
  --status-frozen-fg:    var(--frozen-600);
  --status-frozen-bg:    var(--frozen-50);
  --status-frozen-solid: var(--frozen-500);
  --status-offline-fg:    var(--slate-600);
  --status-offline-bg:    var(--slate-100);
  --status-offline-solid: var(--slate-400);
}
