/* ═══════════════════════════════════════
   Bid-Assistant Design System — Teal
   ═══════════════════════════════════════ */
:root {
  --bg: #f4f5f7;
  --bg-alt: #edeff2;
  --bg-card: #ffffff;
  --bg-input: #f4f5f7;
  --surface: #ffffff;
  --surface-hover: #f8f9fc;
  --border: #e2e6ee;
  --border-light: #eef0f4;
  --text: #10131c;
  --text-secondary: #5b6578;
  --text-tertiary: #8f99ab;
  --text-muted: #5b6578;
  --text-placeholder: #b0bac6;
  --teal: #0d9488;
  --accent: #0d9488;
  --teal-gradient: linear-gradient(135deg, #0d9488, #14b8a6);
  --teal-soft: rgba(13,148,136,0.08);
  --teal-dark: #0b7d72;
  --success: #059669;
  --green: #059669;
  --success-soft: rgba(5,150,105,0.08);
  --warning: #d97706;
  --orange: #d97706;
  --warning-soft: rgba(217,119,6,0.08);
  --danger: #dc2626;
  --red: #dc2626;
  --danger-soft: rgba(220,38,38,0.08);
  --violet: #7c3aed;
  --violet-soft: rgba(124,58,237,0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.04);
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --nav-height: 56px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── Typography ── */
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .12s; border: none;
  font-family: var(--font); text-decoration: none;
}
.btn-primary { background: var(--teal-gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,.25); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Inputs ── */
.input-group { margin-bottom: 14px; }
.input-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.input {
  width: 100%; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font);
  color: var(--text); background: var(--surface);
  outline: none; transition: all .15s;
}
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.input::placeholder { color: var(--text-placeholder); }
textarea.input { min-height: 80px; resize: vertical; }
select.input { cursor: pointer; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500;
}
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }

/* ── Tags ── */
.tag {
  font-size: 11px; padding: 3px 10px; border-radius: 100px; font-weight: 500;
  background: var(--bg-alt); color: var(--text-secondary);
}

/* ── Progress Bar ── */
.progress-bar { height: 4px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--teal-gradient); transition: width .4s ease; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 9px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--bg-alt); }
th {
  padding: 10px 14px; text-align: left; font-weight: 600;
  font-size: 11px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-hover); }

/* ── Loading / Empty / Error ── */
.loading { text-align: center; padding: 40px; color: var(--text-tertiary); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 36px; margin-bottom: 12px; opacity: .25; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.error-msg {
  color: var(--danger); font-size: 13px; padding: 10px 14px;
  background: var(--danger-soft); border: 1px solid rgba(220,38,38,.15);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}

/* ── Page Layout ── */
.page { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; }
.page-narrow { max-width: 720px; margin: 0 auto; padding: 24px 20px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin-bottom: 6px; }

/* ── Grid Systems ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ── Stats ── */
.stat-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.stat-card .value { font-size: 22px; font-weight: 700; color: var(--teal); }
.stat-card .label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.3); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Toast ── */
.toast {
  position: fixed; top: 72px; right: 20px; z-index: 1000;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Section Title ── */
.section-title {
  font-size: 15px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Divider ── */
.divider { border-top: 1px solid var(--border-light); margin: 16px 0; }

/* ── Flex helpers ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stat-group { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .stat-group { grid-template-columns: 1fr; }
  .page { padding: 16px 12px; }
}

#app {
  min-height: 100vh;
}

.toast-container[data-v-50cf6930] { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 2000;
}
.toast[data-v-50cf6930] { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.toast.success[data-v-50cf6930] { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0;
}
.toast.error[data-v-50cf6930] { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
}
.toast.info[data-v-50cf6930] { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(13,148,136,.2);
}
.toast-close[data-v-50cf6930] { border: none; background: transparent; font-size: 18px; cursor: pointer; padding: 0; line-height: 1; color: inherit; opacity: 0.6;
}
.toast-close[data-v-50cf6930]:hover { opacity: 1;
}

.app-shell[data-v-4c308f70] { display: flex; height: 100vh; overflow: hidden; background: var(--bg);
}

/* ── Sidebar ── */
.sidebar[data-v-4c308f70] {
  width: 220px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width .2s;
}
.sidebar.collapsed[data-v-4c308f70] { width: 60px;
}
.sidebar-header[data-v-4c308f70] {
  padding: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.logo-mark[data-v-4c308f70] {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--teal-gradient); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 700;
}
.logo-text[data-v-4c308f70] { font-size: 14px; font-weight: 700; white-space: nowrap;
}
.sidebar-beta[data-v-4c308f70] {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: var(--teal-soft); color: var(--teal); font-weight: 600;
  white-space: nowrap;
}
.sidebar-toggle[data-v-4c308f70] {
  margin-left: auto; background: none; border: none;
  font-size: 14px; cursor: pointer; color: var(--text-tertiary);
  padding: 2px; line-height: 1;
}
.sidebar-nav[data-v-4c308f70] { flex: 1; padding: 8px; overflow-y: auto;
}
.sidebar-section[data-v-4c308f70] {
  font-size: 10px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: .6px;
  padding: 12px 8px 4px;
}
.sidebar-item[data-v-4c308f70] {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; cursor: pointer;
  transition: all .1s; margin-bottom: 1px;
}
.sidebar-item[data-v-4c308f70]:hover { background: var(--surface-hover); color: var(--text);
}
.sidebar-item.active[data-v-4c308f70] { background: var(--teal-soft); color: var(--teal); font-weight: 600;
}
.sidebar-footer[data-v-4c308f70] {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar[data-v-4c308f70] {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: var(--teal-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.sidebar-user[data-v-4c308f70] { font-size: 13px; font-weight: 500; white-space: nowrap;
}
.sidebar-plan[data-v-4c308f70] { font-size: 10px; color: var(--text-tertiary); white-space: nowrap;
}

/* ── Main Area ── */
.main-area[data-v-4c308f70] { flex: 1; display: flex; flex-direction: column; overflow: hidden;
}

/* ── Topbar ── */
.topbar[data-v-4c308f70] {
  height: 48px; flex-shrink: 0;
  display: flex; align-items: center; padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  gap: 16px;
}
.topbar-breadcrumb[data-v-4c308f70] { font-size: 13px; color: var(--text-secondary); font-weight: 500;
}
.topbar-actions[data-v-4c308f70] { margin-left: auto; display: flex; gap: 6px; align-items: center;
}

/* ── Content ── */
.content[data-v-4c308f70] { flex: 1; overflow-y: auto; padding: 20px;
}
@media (max-width: 640px) {
.sidebar[data-v-4c308f70] { width: 60px;
}
.sidebar .logo-text[data-v-4c308f70],
  .sidebar .sidebar-beta[data-v-4c308f70],
  .sidebar .sidebar-section[data-v-4c308f70],
  .sidebar .sidebar-item span[data-v-4c308f70]:last-child,
  .sidebar .sidebar-footer[data-v-4c308f70] { display: none;
}
}
