/* ============================================================
   BlessingLight 管理后台 - 主题变量（唯一来源）
   所有后台页面（含 Layout=null 的登录页）都必须先加载本文件；
   页面与组件样式一律引用这里的变量，禁止再各自定义色板。
   ============================================================ */
:root {
  /* 侧边栏 */
  --sidebar-width: 240px;
  --sidebar-bg: #ffffff;
  --sidebar-hover: #f1f5f9;
  --sidebar-active: #eff6ff;
  --sidebar-text: #64748b;
  --sidebar-text-active: #1e293b;
  --sidebar-border: #e2e8f0;

  /* 顶栏 */
  --topbar-height: 56px;
  --topbar-bg: #ffffff;
  --topbar-border: #e2e8f0;

  /* 内容区 */
  --content-bg: #f1f5f9;
  --surface: #f8fafc;           /* 表头/浅灰面 */
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-radius: 8px;

  /* 文字 */
  --text: #1e293b;
  --text-muted: #64748b;
  --text-secondary: #94a3b8;
  --text-on-primary: #ffffff;   /* 主色/深色底上的文字 */

  /* 表格与交互态 */
  --row-border: #f1f5f9;        /* 表格行分隔线（比 --border 更浅） */
  --hover-bg: #f8fafc;          /* 行/按钮悬停底色 */

  /* 主题色 */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --primary-soft-hover: #dbeafe;

  /* 边框与输入 */
  --border: #e2e8f0;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus-ring: rgba(59, 130, 246, 0.15);

  /* 功能色（语义色唯一来源） */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --success-text: #166534;
  --success-border: #bbf7d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --warning-border: #fde68a;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
  --info: #0ea5e9;
  --purple: #9333ea;
  --cyan: #06b6d4;
}
