/*
 * utaklabs.com theme for Casdoor.
 *
 * Colors are taken from the utaklabs.com site's tokens
 * (/opt/utaklabs.com/assets/css/main.css) and mapped onto Casdoor's shadcn
 * CSS variables. Dark and light variants follow Casdoor's own `dark` class on
 * <html>, so the IDP mirrors the site whichever mode is active.
 *
 * Injected by the host nginx into every Casdoor HTML page from /custom/.
 */

/* ---------- utaklabs dark theme ---------- */
html.dark {
  --background: 210 38% 3%;          /* #05080b */
  --foreground: 210 44% 94%;         /* #e8eff6 */

  --card: 210 38% 6%;                /* #0a1016 */
  --card-foreground: 210 44% 94%;

  --popover: 210 42% 5%;             /* #070c11 */
  --popover-foreground: 210 44% 94%;

  --primary: 161 77% 57%;            /* #3ee6b0 accent */
  --primary-foreground: 161 67% 5%;  /* #04140f accent ink */

  --secondary: 210 38% 8%;           /* #0d151d surface-2 */
  --secondary-foreground: 210 44% 94%;

  --muted: 210 38% 8%;
  --muted-foreground: 210 18% 64%;   /* #94a4b4 */

  --accent: 161 55% 14%;             /* accent tint */
  --accent-foreground: 161 60% 85%;

  --destructive: 0 100% 75%;         /* #ff8080 */
  --destructive-foreground: 0 0% 10%;

  --success: 161 77% 57%;
  --success-foreground: 161 67% 5%;

  --warning: 39 87% 69%;             /* #f5c56b */
  --warning-foreground: 39 90% 10%;

  --border: 209 21% 11%;             /* line over background */
  --input: 208 19% 18%;              /* line-strong over background */
  --ring: 161 77% 57%;

  --radius: 0.625rem;                /* utaklabs radius-sm (10px) */

  --sidebar-background: 210 42% 5%;
  --sidebar-foreground: 210 18% 64%;
  --sidebar-primary: 161 77% 57%;
  --sidebar-primary-foreground: 161 67% 5%;
  --sidebar-accent: 210 38% 8%;
  --sidebar-accent-foreground: 210 44% 94%;
  --sidebar-border: 209 21% 11%;
  --sidebar-ring: 161 77% 57%;
}

/* ---------- utaklabs light theme ---------- */
html:not(.dark) {
  --background: 204 29% 97%;         /* #f4f7f9 */
  --foreground: 209 49% 8%;          /* #0b1620 */

  --card: 0 0% 100%;                 /* #ffffff */
  --card-foreground: 209 49% 8%;

  --popover: 0 0% 100%;
  --popover-foreground: 209 49% 8%;

  --primary: 165 86% 32%;            /* #0b9674 light accent */
  --primary-foreground: 0 0% 100%;

  --secondary: 204 38% 97%;          /* #f6f9fb surface-2 */
  --secondary-foreground: 209 49% 8%;

  --muted: 204 38% 97%;
  --muted-foreground: 213 20% 40%;   /* #52647a */

  --accent: 165 60% 92%;
  --accent-foreground: 165 86% 20%;

  --destructive: 0 100% 75%;
  --destructive-foreground: 0 0% 10%;

  --success: 165 86% 32%;
  --success-foreground: 0 0% 100%;

  --warning: 39 87% 69%;
  --warning-foreground: 39 90% 10%;

  --border: 206 10% 86%;             /* line over background */
  --input: 206 7% 77%;               /* line-strong over background */
  --ring: 165 86% 32%;

  --radius: 0.625rem;

  --sidebar-background: 0 0% 100%;
  --sidebar-foreground: 213 20% 40%;
  --sidebar-primary: 165 86% 32%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 204 38% 97%;
  --sidebar-accent-foreground: 209 49% 8%;
  --sidebar-border: 206 10% 86%;
  --sidebar-ring: 165 86% 32%;
}

/* Example: replace the login-page logo with your own asset.
   Drop logo.svg into custom/ and uncomment: */
/*
.login-logo-box img {
  content: url("/custom/logo.svg");
}
*/
