/* ============================================================
   BASE.CSS — Reset · Variables (Light Theme) · Typography
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --primary:        #2563eb;
  --primary-hover:  #1d4ed8;
  --primary-light:  #3b82f6;
  --primary-dim:    rgba(37,99,235,0.08);

  /* Background — Light */
  --bg-base:        #f1f5f9;
  --bg-surface:     #ffffff;
  --bg-elevated:    #f8fafc;
  --bg-card:        #ffffff;
  --bg-input:       #ffffff;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Border */
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  /* Semantic */
  --success:        #16a34a;
  --warning:        #d97706;
  --error:          #dc2626;
  --info:           #0284c7;

  /* Status badge colours — light */
  --s0-bg: #f1f5f9; --s0-fg: #475569;
  --s1-bg: #eff6ff; --s1-fg: #2563eb;
  --s2-bg: #f5f3ff; --s2-fg: #7c3aed;
  --s3-bg: #fffbeb; --s3-fg: #d97706;
  --s4-bg: #f0fdf4; --s4-fg: #16a34a;
  --s5-bg: #fef2f2; --s5-fg: #dc2626;
  --s6-bg: #fff7ed; --s6-fg: #ea580c;

  /* Left border accent per status — 4 colors only */
  --s0-border: #374151;  /* 배차 전 — black */
  --s1-border: #374151;  /* 배차 전 — black */
  --s2-border: #374151;  /* 배차 전 — black */
  --s3-border: #2563eb;  /* 배송중  — blue  */
  --s4-border: #22c55e;  /* 배송완료 — green */
  --s5-border: #ef4444;  /* 취소    — red   */
  --s6-border: #ef4444;  /* 반품    — red   */

  /* Sizing */
  --sidebar-w:   240px;
  --chat-w:      340px;
  --header-h:    56px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --tr:          0.18s ease;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 32px rgba(0,0,0,0.12);
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Utility */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.text-muted    { color: var(--text-muted); }
.text-sm       { font-size: 0.867rem; }
.text-xs       { font-size: 0.8rem; }
.fw-600        { font-weight: 600; }
.flex          { display: flex; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full        { width: 100%; }
