/* CRMBeautyGo — theme variables (AGENTS_57)
   Light default; dark via [data-theme="dark"] or html.dark / body.dark
   Accent: teal #2F6F68
*/

:root {
  --slot-h: 40px;             /* 30 мин */
  --master-col-min: 160px;
  --now-line: #ef4444;

  --primary: #2F6F68;
  --primary-hover: #245852;
  --accent: #2F6F68;
  --accent-2: #C48B7A;
  --accent-soft: #E7F2F0;

  --bg: #FFF9F5;
  --bg-primary: #FFF9F5;
  --bg-secondary: #FFFFFF;
  --bg-soft: #F5F5F5;
  --bg-panel: #F8FAFC;
  --bg-card: #FFFFFF;
  --surface: #FFFFFF;
  --surface-hover: #F9FAFB;
  --surface-elevated: #FFFFFF;

  --text: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #888888;
  --text-soft: #4B5563;
  --text-inverse: #FFFFFF;
  --muted: #666666;

  --border: rgba(0, 0, 0, 0.06);
  --border-color: #E0E0E0;
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-input: rgba(0, 0, 0, 0.1);
  --line: #E0E0E0;

  --sidebar-bg: #1A2422;
  --sidebar-text: #FFFFFF;
  --sidebar-text-muted: rgba(255, 255, 255, 0.55);
  --sidebar-active: #2F6F68;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-width: 260px;

  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --accent-warn: #F59E0B;
  --accent-danger: #EF4444;
  --accent-ok: #10B981;
  --accent-info: #38BDF8;
  --accent-strong: #245852;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16);

  --input-bg: #FFFFFF;
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus-border: #2F6F68;
  --input-focus-shadow: 0 0 0 3px rgba(47, 111, 104, 0.15);
  --input-placeholder: #9CA3AF;

  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.06);
  --table-header-bg: rgba(47, 111, 104, 0.06);
  --table-row-hover: rgba(0, 0, 0, 0.02);
  --table-border: rgba(0, 0, 0, 0.06);

  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-gray: #666666;
  --color-gray-light: #F5F5F5;
  --color-gray-border: #E0E0E0;
  --color-red: #2F6F68;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', 'Manrope', sans-serif;
  --font-family: 'Inter', system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 60px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

[data-theme="dark"],
html.dark,
body.dark {
  --primary: #3D8F86;
  --primary-hover: #2F6F68;
  --accent: #3D8F86;
  --accent-2: #D4A090;
  --accent-soft: rgba(61, 143, 134, 0.18);

  /* Light-black surfaces (not pure black / not white) */
  --bg: #141414;
  --bg-primary: #141414;
  --bg-secondary: #1E1E1E;
  --bg-soft: #1A1A1A;
  --bg-panel: #1E1E1E;
  --bg-card: #1E1E1E;
  --surface: #1E1E1E;
  --surface-hover: #262626;
  --surface-elevated: #2A2A2A;

  --text: #B4B8B7;
  --text-primary: #B4B8B7;
  --text-secondary: #7A807F;
  --text-muted: #5F6463;
  --text-soft: #7A807F;
  --text-inverse: #141414;
  --muted: #5F6463;

  --border: #252525;
  --border-color: #252525;
  --border-strong: rgba(47, 111, 104, 0.22);
  --border-input: rgba(47, 111, 104, 0.2);
  --line: #252525;
  --bg-hover: rgba(255,255,255,.03);
  /* Soft teal dividers (как «Визиты по месяцам») */
  --divider-soft: rgba(47, 111, 104, 0.14);

  --sidebar-bg: #0E0E0E;
  --sidebar-text: #C8CBCA;
  --sidebar-text-muted: rgba(200, 203, 202, 0.45);
  --sidebar-active: #3D8F86;
  --sidebar-hover: rgba(255, 255, 255, 0.05);
  --sidebar-border: rgba(255, 255, 255, 0.06);

  --success: #34D399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.12);
  --accent-warn: #FBBF24;
  --accent-danger: #F87171;
  --accent-ok: #34D399;
  --accent-info: #60A5FA;
  --accent-strong: #2F6F68;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.55);

  --input-bg: #222222;
  --input-border: rgba(47, 111, 104, 0.22);
  --input-focus-border: #3D8F86;
  --input-focus-shadow: 0 0 0 3px rgba(61, 143, 134, 0.2);
  --input-placeholder: #5F6463;

  --card-bg: #1E1E1E;
  --card-border: rgba(47, 111, 104, 0.16);
  --table-header-bg: rgba(61, 143, 134, 0.12);
  --table-row-hover: rgba(61, 143, 134, 0.08);
  --table-border: rgba(47, 111, 104, 0.14);

  --color-white: #1E1E1E;
  --color-black: #C8CBCA;
  --color-gray: #8B9190;
  --color-gray-light: #1A1A1A;
  --color-gray-border: #252525;
  --color-red: #3D8F86;

  color-scheme: dark;
}

html {
  background: var(--bg-primary);
  color-scheme: light;
}

[data-theme="dark"],
html.dark {
  color-scheme: dark;
}
