/* ==========================================================================
   Theme "Полночь": deep night blue with a lavender accent and soft neon colours.
   Only the values that differ from themes/default.css; everything else comes from there.
   ========================================================================== */

:root[data-theme="midnight"] {
  /* Browser scheme: dark or light (scrollbars, date fields, checkboxes) */
  --theme-scheme: dark;
  color-scheme: dark;

  /* Accent colours */
  --blue: #8b7cff;
  --blue-hover: #a194ff;
  --green: #3ddc97;
  --orange: #ffb35c;
  --red: #ff6b81;
  --cyan: #5ad1e6;
  --purple: #c77dff;
  --pink: #ff7eb6;
  --yellow: #ffd166;
  --indigo: #6c7cff;
  --gray: #8a8fb0;
  --on-accent: #ffffff;

  /* Soft fills behind badges and hovered buttons */
  --blue-soft: #2a2552;
  --red-soft: #3b2033;
  --orange-soft: #3a2c25;

  /* Text */
  --text-primary: #ecebff;
  --text-secondary: #9a98c4;
  --text-muted: #6b6994;
  --text-placeholder: #6b6994;

  /* Surfaces */
  --bg-canvas: #0b0b1a;
  --bg-surface: #14142a;
  --bg-sheet: #1a1a34;
  --bg-popover: #252549;
  --bg-subtle: #1d1d3a;
  --bg-hover: #20203f;
  --bg-selected: #2b2b54;
  --bg-field: #21213f;
  --bg-control: #28284d;
  --bg-control-hover: #31315e;
  --event-block: #28284d;
  --event-block-hover: #31315e;

  /* Lines and states */
  --line: #30305a;
  --line-soft: #1f1f40;
  --scrollbar: #34345e;
  --scrollbar-active: #6b6aa8;
  --focus: #4b3fb0;
  --selection: #3a2f80;

  /* Shadows and the dimming behind windows */
  --shadow: #000000;
  --shadow-strength: 60%;
  --scrim-strength: 50%;

  /* Calendar month: how strongly a day is coloured when it has 1, 2, 3, 4+ tasks */
  --heat-1: 0.18;
  --heat-2: 0.28;
  --heat-3: 0.4;
  --heat-4: 0.52;
}
