* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --text-main: #0f172a;
  --text-body: #1f2937;
  --text-muted: #667085;
  --text-subtle: #475467;

  --input-border: #d7deea;
  --input-border-soft: #e4e9f2;
  --input-focus: #93c5fd;

  --line-soft: #edf1f7;

  --button-secondary-bg: #eef2f7;
  --button-secondary-text: #334155;

  --button-primary-bg: #2563eb;
  --button-primary-text: #ffffff;

  --notice-bg: #fff7ed;
  --notice-border: #fdba74;
  --notice-text: #9a3412;
}

/* ===== RTL support ===== */

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .feedback-link,
[dir="rtl"] .about-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .topbar-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .vb-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .vb-search-row,
[dir="rtl"] .vb-controls-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .vb-count {
  text-align: left;
}

[dir="rtl"] .search-suggestion {
  text-align: right;
}

/* ===== Feedback link ===== */

/* ===== Secondary button ===== */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: filter 0.1s ease;
}

.btn-secondary:hover {
  filter: brightness(0.95);
}

/* ===== Feedback link ===== */

.feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.12s ease;
}

.feedback-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
