/* Base — Linear/Vercel-style minimal design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --fg: #0a0a0a;
  --fg-muted: #71717a;
  --fg-subtle: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { font-feature-settings: "cv11", "ss01"; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: -0.011em;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px; font-size: 13px; font-weight: 500; line-height: 1.4; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: all 0.12s ease; user-select: none; white-space: nowrap; }
.btn-primary { background: #0a0a0a; color: #fff; }
.btn-primary:hover { background: #262626; }
.btn-secondary { background: #fff; color: #0a0a0a; border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--fg); }
.btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-lg { padding: 8px 18px; font-size: 14px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Inputs */
.input { width: 100%; padding: 7px 12px; font-size: 13px; line-height: 1.4; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--fg); transition: border-color 0.12s, box-shadow 0.12s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.input::placeholder { color: var(--fg-subtle); }
.label { display: block; font-size: 12px; font-weight: 500; color: var(--fg-muted); margin-bottom: 6px; letter-spacing: 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.card-pad { padding: 20px; }

/* Tables */
.table { width: 100%; font-size: 13px; }
.table thead th { text-align: left; padding: 10px 16px; font-weight: 500; font-size: 12px; color: var(--fg-muted); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tbody tr:hover { background: var(--bg-subtle); }
.table tbody tr:last-child td { border-bottom: 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 11px; font-weight: 500; line-height: 1.4; border-radius: 999px; border: 1px solid transparent; }
.badge-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-neutral { background: var(--bg-muted); color: var(--fg-muted); border-color: var(--border); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; transition: color 0.12s, border-color 0.12s; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--fg); }

/* Aspect helper */
.aspect-square { aspect-ratio: 1 / 1; }

/* Sidebar nav */
.nav-link { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 13px; color: var(--fg-muted); border-radius: 6px; cursor: pointer; transition: all 0.12s; }
.nav-link:hover { background: var(--bg-muted); color: var(--fg); }
.nav-link.active { background: var(--bg-muted); color: var(--fg); font-weight: 500; }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Generated image placeholder gradients */
.img-ph-1 { background: linear-gradient(135deg, #fce7f3 0%, #ddd6fe 50%, #c7d2fe 100%); }
.img-ph-2 { background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fecaca 100%); }
.img-ph-3 { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%); }
.img-ph-4 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%); }
.img-ph-5 { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 50%, #c4b5fd 100%); }
.img-ph-6 { background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 50%, #fda4af 100%); }
.img-ph-7 { background: linear-gradient(180deg, #1e293b 0%, #475569 100%); }
.img-ph-8 { background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%); }

/* Container */
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Hero gradient text */
.gradient-text { background: linear-gradient(90deg, #0a0a0a 0%, #6366f1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Subtle dotted bg */
.bg-dotted { background-image: radial-gradient(circle, #e4e4e7 1px, transparent 1px); background-size: 16px 16px; }

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
