/* lib/tokens.css: the app's shared colors, shadows and corner radii (issue #186).
 *
 * Every staff and golfer page that uses the light green palette links this file before its own <style>:
 *   <link rel="stylesheet" href="lib/tokens.css">
 * A page that needs a different value redefines that one variable in its own :root, after this file.
 * swingfirst-styleguide.html shows every value here, read from this file.
 * Shared components (components/*.js) render in shadow DOM and read these variables through inheritance.
 */
:root {
  /* Text, lines and backgrounds */
  --ink:        #0d1f17;
  --ink-soft:   #3b4a42;
  --ink-muted:  #6b7a72;
  --line:       #e4e9e6;
  --paper:      #fbfaf7;
  --card:       #ffffff;

  /* Brand green */
  --green-900:  #0b3d2e;
  --green-700:  #1b6b4f;
  --green-600:  #2a8a6a;
  --green-200:  #a8d5bc;
  --green-100:  #e3f2ec;
  --green-50:   #f2f9f5;

  /* Status colors: the 700 shade is text, the 100 and 50 shades are fills */
  --amber-800:  #92400e;
  --amber-700:  #B45309;
  --amber-300:  #f5c770;
  --amber-100:  #FEF3C7;
  --amber-50:   #FFFBEB;

  --orange-700: #C2410C;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;

  --purple-700: #6D28D9;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  --rose-700:   #9A2A42;
  --rose-100:   #fbe0e6;
  --rose-50:    #fff1f4;

  --sky-700:    #175e8c;
  --sky-100:    #dbeaf5;

  --blue-700:   #1D4ED8;
  --blue-100:   #dbeafe;
  --blue-50:    #EFF6FF;

  --slate-100:  #eef1ee;
  --slate-200:  #dde3de;

  /* A booking's or player's status, the same on every staff page (issue #186): neutral for booked,
     amber (warning) for unpaid, green (success) for paid and checked in, rose (danger) for a no-show,
     an outline for cancelled. On the tee sheet (pages/tee-sheet/components/PlayerCell.js) the cell's
     fill is check-in and the small mark is payment. The golfer pages don't use these. */
  --status-checked-in-bg:     var(--green-100);
  --status-checked-in-text:   var(--green-900);
  --status-checked-in-border: var(--green-200);
  --status-checked-in-edge:   var(--green-600);
  --status-checked-in-mark:   var(--green-700);
  --status-not-checked-in-bg:     #eef1ef;
  --status-not-checked-in-text:   var(--ink-soft);
  --status-not-checked-in-border: #d5dcd8;
  --status-not-checked-in-edge:   #a3aea8;
  --status-paid-bg:           var(--green-700);
  --status-paid-text:         var(--card);
  --status-unpaid-bg:         var(--amber-100);
  --status-unpaid-text:       var(--amber-800);
  --status-unpaid-border:     var(--amber-300);
  --status-booked-bg:         var(--slate-100);
  --status-booked-text:       var(--ink-soft);
  --status-no-show-bg:        var(--rose-100);
  --status-no-show-text:      var(--rose-700);
  --status-cancelled-bg:      var(--card);
  --status-cancelled-text:    var(--ink-muted);
  --status-cancelled-border:  var(--slate-200);

  /* The staff pages' frame: the white top bar and sidebar, and what sits on them (issue #186).
     Green marks only the logo and the selected link. The golfer pages don't use these. */
  --frame-bg:          var(--card);
  --frame-mark:        var(--green-700);
  --frame-text:        var(--ink);
  --frame-text-soft:   var(--ink-soft);
  --frame-text-muted:  var(--ink-muted);
  --frame-line:        var(--line);
  --frame-hover:       var(--slate-100);
  --frame-active:      var(--green-50);
  --frame-active-text: var(--green-900);

  /* A thin ring that keeps a light colored dot visible on white (the course dots in the tee sheet and POS sidebars). */
  --dot-ring:   rgba(13,31,23,.15);

  /* Shadows and corner radii */
  --shadow-sm:  0 1px 0 rgba(13,31,23,.04), 0 1px 2px rgba(13,31,23,.04);
  --shadow-md:  0 2px 6px rgba(13,31,23,.07), 0 8px 24px rgba(13,31,23,.07);
  --shadow-lg:  0 4px 16px rgba(13,31,23,.14), 0 1px 3px rgba(13,31,23,.08);
  --radius:     12px;
  --radius-sm:  8px;
}
