/* ExcelZero — Design Tokens (ResellZero 동일 패밀리, 브랜드 컬러만 Blue) */
:root {
  /* ── Brand ── */
  --brand-500:      #03C75A;
  --brand-gradient: linear-gradient(135deg, #03C75A 0%, #60A5FA 100%);
  --brand-glow:     0 0 60px rgba(3,199,90,0.12);
  --brand-glow-sm:  0 0 24px rgba(3,199,90,0.08);
  --brand-bg:       rgba(3,199,90,0.08);

  /* ── Background ── */
  --bg-base:     #FFFFFF;
  --bg-surface:  #F9FAFB;
  --bg-elevated: #F3F4F6;
  --bg-overlay:  #FFFFFF;
  --bg-hover:    rgba(0,0,0,0.04);
  /* NEP 스타일: 앱 배경(연회색) + 카드(흰색) 분리 */
  --bg-app:      #F5F6FA;
  --bg-card:     #FFFFFF;

  /* ── Border ── */
  --border-subtle:  rgba(0,0,0,0.07);
  --border-default: rgba(0,0,0,0.11);
  --border-strong:  rgba(0,0,0,0.18);
  --border-brand:   rgba(3,199,90,0.30);

  /* ── Text ── */
  --text-primary:   #191F28;
  --text-secondary: #6B7684;
  --text-tertiary:  #9CA3AF;
  --text-inverse:   #FFFFFF;

  /* ── Status ── */
  --color-success:    #34d399;
  --color-success-bg: rgba(52,211,153,0.1);
  --color-warning:    #fbbf24;
  --color-warning-bg: rgba(251,191,36,0.1);
  --color-danger:     #f87171;
  --color-danger-bg:  rgba(248,113,113,0.1);
  --color-info:       #60a5fa;
  --color-info-bg:    rgba(96,165,250,0.1);

  /* ── Radius ── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* ── Spacing ── */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 20px;  --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px;--space-20: 80px; --space-24: 96px;

  /* ── Typography ── */
  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --leading-tight:  1.2;
  --leading-normal: 1.6;

  /* ── Shadow ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);

  /* ── Transition ── */
  --ease-default:    cubic-bezier(0.4,0,0.2,1);
  --duration-fast:  150ms;
  --duration-base:  200ms;
  --duration-slow:  350ms;

  /* ── Layout ── */
  --container-max: 1200px;
  --sidebar-width: 240px;
  --nav-height:    64px;
}

/* ── Shorthand Aliases (template compatibility) ── */
:root {
  --surface:    var(--bg-base);
  --bg:         var(--bg-surface);
  --border:     var(--border-default);
  --text:       var(--text-primary);
  --text-muted: var(--text-tertiary);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg-base:     #0F1117;
  --bg-surface:  #161B25;
  --bg-elevated: #1D2535;
  --bg-overlay:  #161B25;
  --bg-hover:    rgba(255,255,255,0.05);
  --bg-app:      #0B0D12;
  --bg-card:     #161B25;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);
  --border-brand:   rgba(3,199,90,0.40);

  --text-primary:   #EAEDF2;
  --text-secondary: #8895A7;
  --text-tertiary:  #4E5A6B;
  --text-inverse:   #0F1117;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.40);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.45);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.65);
}
