/* ============================================================================
 * ltyun.top visual language, applied to New API
 * ----------------------------------------------------------------------------
 * Source tokens (read from https://ltyun.top/console/):
 *   ltui.css          --lt-primary2 #00CED1   dark turquoise (accent)
 *                     --lt-primary  #AFEEEE   pale turquoise
 *                     --lt-primary3 #5F9EA0   cadet blue
 *                     --lt-secondary #4682B4  steel blue
 *                     --lt-secondary3 #008B8B dark cyan
 *                     --lt-success  #32CD32 / #3CB371 / #008000
 *                     --lt-info     #87CEFA / #00BFFF / #1E90FF
 *                     --lt-warning  #FFD700 / #FFA500 / #FF8C00
 *                     --lt-danger   #FA8072 / #F08080 / #FF6347
 *                     --lt-border-radius 7px
 *   index-*.css       #3a7ca5 steel blue (console primary)
 *                     #d03050 red, #f5f7fa / #f0f0f0 light surfaces
 *                     radius 4-5px, transparent menus, --global-blur 0
 *
 * New API paints with OKLCH tokens declared in web/src/styles/theme.css.
 * Overriding those tokens is the only way to restyle this React app without
 * rebuilding the image, and is why ltyun's own stylesheet cannot be pasted in
 * directly (it is a Vue 3 + Element Plus app with entirely different selectors).
 * ==========================================================================*/

/* ---- light (matches ltyun's default light console) ---------------------- */
:root {
  --radius: 0.4375rem;              /* 7px, from --lt-border-radius */

  --background: #f5f7fa;            /* console surface */
  --foreground: #24303c;

  --card: #ffffff;
  --card-foreground: #24303c;
  --popover: #ffffff;
  --popover-foreground: #24303c;

  --primary: #3a7ca5;               /* console steel blue */
  --primary-foreground: #ffffff;

  --secondary: #eaf1f6;
  --secondary-foreground: #2f6584;

  --muted: #eef2f6;
  --muted-foreground: #6b7c8c;

  --accent: #dff6f6;                /* turquoise wash from --lt-primary */
  --accent-foreground: #0d6a6d;

  --destructive: #ff6347;           /* --lt-danger3 */
  --destructive-foreground: #ffffff;

  --success: #2ea44f;
  --success-foreground: #ffffff;

  --warning: #ffa500;               /* --lt-warning2 */
  --warning-foreground: #3a2a00;

  --info: #1e90ff;                  /* --lt-info3 */
  --info-foreground: #ffffff;

  --neutral: #9aa8b6;
  --neutral-foreground: #1d2731;

  --border: #dde5ed;
  --input: #dde5ed;
  --ring: #00ced1;                  /* --lt-primary2 */

  --chart-1: #3a7ca5;
  --chart-2: #00ced1;
  --chart-3: #4682b4;
  --chart-4: #5f9ea0;
  --chart-5: #1e90ff;

  --overview-accent-1: #3a7ca5;
  --overview-accent-2: #00ced1;
  --overview-accent-3: #4682b4;

  --sidebar: #ffffff;
  --sidebar-foreground: #24303c;
  --sidebar-primary: #3a7ca5;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #dff6f6;
  --sidebar-accent-foreground: #0d6a6d;
  --sidebar-border: #dde5ed;
  --sidebar-ring: #00ced1;

  --skeleton-base: #eef2f6;
  --skeleton-highlight: #f5f7fa;

  /* ltyun's console keeps menus flat and blur-free */
  --global-blur: 0px;
}

/* ---- dark --------------------------------------------------------------- */
.dark {
  --background: #101a22;
  --foreground: #e6eef4;

  --card: #16232d;
  --card-foreground: #e6eef4;
  --popover: #16232d;
  --popover-foreground: #e6eef4;

  --primary: #4c9dc9;
  --primary-foreground: #06121a;

  --secondary: #1d2e3a;
  --secondary-foreground: #b8d4e4;

  --muted: #1a2833;
  --muted-foreground: #93a6b6;

  --accent: #123638;
  --accent-foreground: #7fe3e5;

  --destructive: #ff6347;
  --destructive-foreground: #1a0a06;

  --success: #3cb371;
  --success-foreground: #06120b;

  --warning: #ffa500;
  --warning-foreground: #1a1200;

  --info: #00bfff;
  --info-foreground: #04121a;

  --neutral: #6b7c8c;
  --neutral-foreground: #e6eef4;

  --border: #24363f;
  --input: #24363f;
  --ring: #00ced1;

  --chart-1: #4c9dc9;
  --chart-2: #00ced1;
  --chart-3: #4682b4;
  --chart-4: #5f9ea0;
  --chart-5: #1e90ff;

  --overview-accent-1: #4c9dc9;
  --overview-accent-2: #00ced1;
  --overview-accent-3: #4682b4;

  --sidebar: #14202a;
  --sidebar-foreground: #e6eef4;
  --sidebar-primary: #4c9dc9;
  --sidebar-primary-foreground: #06121a;
  --sidebar-accent: #123638;
  --sidebar-accent-foreground: #7fe3e5;
  --sidebar-border: #24363f;
  --sidebar-ring: #00ced1;

  --skeleton-base: #1a2833;
  --skeleton-highlight: #21323e;
}

/* ---- typography: ltyun's landing uses 等线 / DengXian ------------------- */
body,
body button,
body input,
body textarea,
body select {
  font-family: "DengXian", "等线", "Microsoft YaHei", "PingFang SC",
               "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
}

/* ---- touches that make it read as the same product family --------------- */
/* Softer, slightly rounder cards than stock New API */
[data-slot="card"],
.card {
  border-radius: 7px;
}

/* Turquoise selection, like ltyun's ::selection */
::selection {
  background: rgba(0, 206, 209, 0.28);
}

/* Keep the footer band in the same steel-blue family */
.custom-footer a {
  color: var(--primary);
  text-decoration: none;
}
.custom-footer a:hover {
  color: var(--ring);
  text-decoration: underline;
}