html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.tool-card textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tool-card textarea::-webkit-scrollbar-track {
  background: #111a22;
}

.tool-card textarea::-webkit-scrollbar-thumb {
  background: #324d67;
  border-radius: 4px;
}

.tool-card textarea::-webkit-scrollbar-thumb:hover {
  background: #4b6a88;
}

.btn-primary,
.btn-secondary,
.btn-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}

.btn-primary {
  background-color: #137fec;
  color: #fff;
}

.btn-primary:hover {
  background-color: rgba(19, 127, 236, 0.85);
}

.btn-secondary {
  background-color: #233648;
  color: #fff;
}

.btn-secondary:hover {
  background-color: rgba(19, 127, 236, 0.7);
}

.btn-muted {
  background-color: transparent;
  color: #92adc9;
  border: 1px solid #233648;
}

.btn-muted:hover {
  border-color: #137fec;
  color: #fff;
}

#search-wrapper {
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

#search-wrapper.active {
  box-shadow: 0 0 0 2px rgba(19, 127, 236, 0.45);
  border-color: rgba(19, 127, 236, 0.7);
}

.category-content[hidden] {
  display: none;
}

.category-toggle-icon {
  transition: transform 200ms ease;
}

.category-toggle[aria-expanded="false"] .category-toggle-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  transition: opacity 250ms ease, transform 250ms ease;
}

.collapsible-content.hidden-state {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.collapsible-content.visible-state {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.collapsible-content[hidden] {
  display: none !important;
}

@supports (scrollbar-color: auto) {
  pre,
  .scrollbar-dark {
    scrollbar-width: thin;
    scrollbar-color: #233648 transparent;
  }
}

pre::-webkit-scrollbar,
.scrollbar-dark::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

pre::-webkit-scrollbar-track,
.scrollbar-dark::-webkit-scrollbar-track {
  background: transparent;
}

pre::-webkit-scrollbar-thumb,
.scrollbar-dark::-webkit-scrollbar-thumb {
  background: #233648;
  border-radius: 9999px;
}

pre::-webkit-scrollbar-thumb:hover,
.scrollbar-dark::-webkit-scrollbar-thumb:hover {
  background: #1b2838;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.badge-warning {
  background-color: rgba(19, 127, 236, 0.15);
  border-color: rgba(19, 127, 236, 0.45);
  color: #8fc7ff;
}

.badge-muted {
  background-color: rgba(252, 165, 165, 0.1);
  border-color: rgba(252, 165, 165, 0.4);
  color: #fca5a5;
}

.batch-memory-table {
  width: 100%;
  border-collapse: collapse;
}

.batch-memory-table th,
.batch-memory-table td {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #1c2734;
}

.batch-memory-table th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #6d86a5;
}

.batch-panel[hidden] {
  display: none;
}

input[type="number"] {
  color-scheme: dark;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  background: #1a2632;
  border: none;
  color: #8da2c0;
  opacity: 0.7;
}
