/* ═══════════════════════════════════════════════════════════
   Silk Road — Document type switcher (visual redesign only)
   Scoped entirely under .sr-doctabs — the underlying .tab-btn /
   .tab-btn--active classes are untouched (JS binds and toggles
   them exactly as before), this file only adds presentation.
   ═══════════════════════════════════════════════════════════ */

.sr-doctabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sr-doctabs .tab-btn.sr-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sr-doctabs .tab-btn.sr-tab:hover {
  transform: translateY(-2px);
  border-color: #6366F1;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.14);
}

.sr-doctabs .tab-btn.sr-tab:focus-visible {
  outline: 2px solid #6366F1;
  outline-offset: 2px;
}

.sr-doctabs .tab-btn.sr-tab.tab-btn--active {
  border-color: #6366F1;
  background: rgba(99, 102, 241, 0.07);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.14);
}

.sr-doctabs .tab-btn.sr-tab.tab-btn--active:hover {
  transform: translateY(-1px);
}

.sr-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sr-tab-bg, rgba(99, 102, 241, .1));
  color: var(--sr-tab-color, #6366F1);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.sr-doctabs .tab-btn.sr-tab.tab-btn--active .sr-tab__icon {
  transform: scale(1.08);
}

.sr-tab__label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: font-weight 180ms ease, color 180ms ease;
}

.sr-doctabs .tab-btn.sr-tab.tab-btn--active .sr-tab__label {
  font-weight: 600;
  color: #1F2937;
}

.sr-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  margin-left: 2px;
  border-radius: 999px;
  background: #6366F1;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sr-doctabs .tab-btn.sr-tab,
  .sr-tab__icon,
  .sr-tab__label {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .sr-doctabs { gap: 8px; }
  .sr-doctabs .tab-btn.sr-tab { height: 52px; padding: 0 14px; }
  .sr-tab__label { font-size: 13px; }
}
