/* Vinoseek UI Tokens - Compact (A) as default */
:root{
  /* Typography */
  --vs-font-size: 13px;
  --vs-line-height: 1.55;
  --vs-font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans CJK SC",
    "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif;

  /* Radius & Borders */
  --vs-radius: 4px;
  --vs-border-color: #e5e7eb; /* gray-200 */

  /* Colors (kept close to Bootstrap defaults, slightly tuned) */
  --vs-primary: #3B82F6; /* blue-500 */
  --vs-success: #16A34A;
  --vs-warning: #F59E0B;
  --vs-danger:  #DC2626;
  --vs-info:    #0EA5E9;
  --vs-muted:   #6B7280; /* gray-500 */

  /* Spacing scale */
  --vs-space-1: 4px;
  --vs-space-2: 8px;
  --vs-space-3: 12px;
  --vs-space-4: 16px;
  --vs-space-6: 24px;

  /* Table density */
  --vs-table-pad-y: .45rem; /* compact */
  --vs-table-pad-x: .6rem;
}

/* Base */
html, body{
  font-size: var(--vs-font-size);
}
body{
  font-family: var(--vs-font-family);
  line-height: var(--vs-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  color: #111827; /* gray-900 */
}

/* Headings - restrained sizes, strong weight */
h1, .h1{ font-size: 1.5rem; font-weight: 600; }
h2, .h2{ font-size: 1.25rem; font-weight: 600; }
h3, .h3{ font-size: 1.125rem; font-weight: 600; }

/* Buttons - compact padding */
.btn{ border-radius: var(--vs-radius); }
.btn-sm{ padding: .25rem .5rem; font-size: .8rem; }

/* Forms */
.form-control, .form-select{ border-radius: var(--vs-radius); }
.form-control, .form-select{ padding-top: .35rem; padding-bottom: .35rem; }
.input-group-text{ padding-top: .35rem; padding-bottom: .35rem; }

/* Tables - compact rows */
.table.table-sm > :not(caption) > * > *{
  padding: var(--vs-table-pad-y) var(--vs-table-pad-x);
}
.table thead th{ white-space: nowrap; }

/* Cards */
.card{ border-radius: var(--vs-radius); }
.card-header{ background-color: #f8fafc; }

/* Utilities */
.text-muted{ color: var(--vs-muted) !important; }
.border-muted{ border-color: var(--vs-border-color) !important; }

/* Navbar adjustments */
.navbar{ box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.navbar .navbar-brand{ font-weight: 600; }

/* Sticky table header helper */
.table-sticky thead th{
  position: sticky; top: 0; z-index: 2; background: #fff;
}

