/* ==========================================================================
   Bitwarden web vault — custom dark theme (anthracite + mint)
   Served via bitwarden-nginx sub_filter → /custom/theme.css
   Target: web vault 2026.4.x, applies only when theme = dark (.theme_dark)
   ========================================================================== */

.theme_dark {
  /* ---- Primitive scales (new design tokens derive from these) ---------- */

  /* Neutral anthracite instead of Bitwarden's blue-ish slate */
  --color-gray-050: #f2f3f5;
  --color-gray-100: #e4e6ea;
  --color-gray-200: #c9ccd3;
  --color-gray-300: #a9aeb8;
  --color-gray-400: #8a909c;
  --color-gray-500: #6b717d;
  --color-gray-600: #4d525c;
  --color-gray-700: #2e323a;   /* raised surfaces, base borders */
  --color-gray-800: #23262d;   /* cards / nav */
  --color-gray-900: #1b1d22;   /* main background */
  --color-gray-950: #131418;   /* deepest background */
  --color-gray-400-rgb: 138, 144, 156;
  --color-gray-700-rgb: 46, 50, 58;
  --color-gray-800-rgb: 35, 38, 45;
  --color-gray-950-rgb: 19, 20, 24;

  /* Mint accent replaces Bitwarden blue */
  --color-brand-050: #ecfdf5;
  --color-brand-100: #d1fae5;
  --color-brand-200: #a7f3d0;
  --color-brand-300: #6ee7b7;
  --color-brand-400: #3ee69a;  /* main accent: buttons, links, focus */
  --color-brand-500: #22c983;
  --color-brand-600: #16a56b;
  --color-brand-700: #128556;
  --color-brand-800: #0f6a46;
  --color-brand-900: #0c4a33;
  --color-brand-950: #072a1e;
  --color-brand-700-rgb: 18, 133, 86;
  --color-brand-800-rgb: 15, 106, 70;
  --color-brand-950-rgb: 7, 42, 30;

  /* ---- Legacy tokens (RGB triplets, still used by older components) ---- */
  --color-background: 27 29 34;
  --color-background-alt: 19 20 24;
  --color-background-alt2: 35 38 45;
  --color-background-alt3: 46 50 58;
  --color-background-alt4: 19 20 24;

  --color-primary-100: 12 74 51;
  --color-primary-300: 18 133 86;
  --color-primary-600: 62 230 154;
  --color-primary-700: 167 243 208;

  --color-secondary-100: 46 50 58;
  --color-secondary-300: 58 63 73;
  --color-secondary-500: 107 113 125;
  --color-secondary-600: 138 144 156;
  --color-secondary-700: 169 174 184;

  --color-success-600: 62 230 154;
  --color-info-600: 110 231 183;

  --color-text-main: 236 238 242;
  --color-text-muted: 138 144 156;
  --color-text-contrast: 19 20 24;

  --color-hover-default: rgb(62 230 154 / 0.08);
  --color-transparent-hover: rgb(255 255 255 / 0.03);
  --tw-ring-offset-color: #1b1d22;

  /* Softer borders, closer to the mockup */
  --color-border-muted: var(--color-gray-800);
  --color-border-light: var(--color-gray-800);
  --color-border-base: var(--color-gray-700);
}

/* ---- Shape & typography ------------------------------------------------ */

.theme_dark body {
  -webkit-font-smoothing: antialiased;
}

/* Rounder cards / sections / dialogs */
.theme_dark bit-card,
.theme_dark bit-section > *,
.theme_dark bit-dialog section,
.theme_dark .tw-rounded-xl,
.theme_dark .tw-rounded-lg {
  border-radius: 16px !important;
}

/* Buttons: pill-ish, uppercase, tracked — like "COPY KEY" */
.theme_dark [bitbutton] {
  border-radius: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Inputs */
.theme_dark bit-form-field input,
.theme_dark bit-form-field textarea,
.theme_dark bit-form-field select,
.theme_dark .tw-rounded {
  border-radius: 10px !important;
}

/* Small section labels: uppercase + tracking, like "PARAMETERS" */
.theme_dark bit-label,
.theme_dark .tw-text-xs.tw-uppercase,
.theme_dark h2.tw-uppercase {
  letter-spacing: 0.1em;
}

/* Passwords / generated values in mono with spacing */
.theme_dark .tw-font-mono {
  letter-spacing: 0.08em;
}
