/*
 * Copyright (c) 2026 Hashed Analytic Co., Ltd. All rights reserved.
 *
 * This software is proprietary and confidential. Unauthorized copying,
 * distribution, or use of this file, via any medium, is strictly prohibited.
 */

:root {
  --app-logo: url("/images/hashed-analytic-logo.svg");
  --app-logo-inverse: url("/images/hashed-analytic-logo-white.png");
  --app-logo-mark: url("/images/hashed-analytic-favicon.png");
  --app-logo-mark-position: center;
  --app-logo-mark-size: contain;
  --app-logo-admin: url("/images/hashed-analytic-logo-white.png");

  --background: #ffffff;
  --foreground: #111111;
  --card: #ffffff;
  --card-foreground: #111111;
  --popover: #ffffff;
  --popover-foreground: #111111;
  --primary: #525252;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #191919;
  --muted: #f7f7f7;
  --muted-foreground: #737373;
  --accent: #f0f0f0;
  --accent-foreground: #262626;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e7e7e7;
  --input: #e7e7e7;
  --ring: #737373;
  --chart-1: #525252;
  --chart-2: #5b8cff;
  --chart-3: #15a085;
  --chart-4: #e6a23c;
  --chart-5: #8a8a8a;
  --radius: 0.375rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #171717;
  --sidebar-primary: #525252;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f0f0f0;
  --sidebar-accent-foreground: #262626;
  --sidebar-border: #e7e7e7;
  --sidebar-ring: #737373;

  --ha-color-background: var(--background);
  --ha-color-foreground: var(--foreground);
  --ha-color-surface: var(--card);
  --ha-color-surface-muted: var(--muted);
  --ha-color-border: var(--border);
  --ha-color-primary: var(--primary);
  --ha-color-primary-foreground: var(--primary-foreground);
  --ha-color-secondary: var(--secondary);
  --ha-color-accent: var(--accent);
  --ha-color-destructive: var(--destructive);
  --ha-color-success: #15803d;
  --ha-color-warning: #b45309;
  --ha-color-info: #2563eb;
  --ha-font-heading: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ha-font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ha-radius-sm: 0.25rem;
  --ha-radius-md: 0.375rem;
  --ha-radius-lg: 0.5rem;
  --ha-space-sm: 0.5rem;
  --ha-space-md: 1rem;
  --ha-space-lg: 1.5rem;
  --ha-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.035);
  --ha-shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.1);
  --shadow-sm: var(--ha-shadow-subtle);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.055);
  --shadow-lg: 0 10px 24px rgb(0 0 0 / 0.075);
  --shadow-xl: var(--ha-shadow-overlay);
}

.dark {
  --app-logo: url("/images/hashed-analytic-logo-white.png");
  --background: #111111;
  --foreground: #f7f7f7;
  --card: #171717;
  --card-foreground: #f7f7f7;
  --popover: #171717;
  --popover-foreground: #f7f7f7;
  --primary: #737373;
  --primary-foreground: #ffffff;
  --secondary: #252525;
  --secondary-foreground: #f5f5f5;
  --muted: #222222;
  --muted-foreground: #a3a3a3;
  --accent: #2a2a2a;
  --accent-foreground: #e5e5e5;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #303030;
  --input: #303030;
  --ring: #a3a3a3;
  --sidebar: #151515;
  --sidebar-foreground: #f5f5f5;
  --sidebar-primary: #737373;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #2a2a2a;
  --sidebar-accent-foreground: #e5e5e5;
  --sidebar-border: #303030;
  --sidebar-ring: #a3a3a3;
  --ha-color-success: #4ade80;
  --ha-color-warning: #fbbf24;
  --ha-color-info: #60a5fa;
  --ha-shadow-subtle: 0 1px 2px rgb(0 0 0 / 0.22);
  --ha-shadow-overlay: 0 16px 40px rgb(0 0 0 / 0.36);
}

.dark .app-brand-logo--mark {
  filter: invert(1);
}

body {
  font-family: var(--ha-font-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--ha-font-heading);
  letter-spacing: -0.028em;
}

input::placeholder,
textarea::placeholder {
  color: #858585;
}
