/* Custom styles — Tailwind handles 95% of layout. */

.nav-item.active {
  background-color: rgb(15 23 42); /* slate-900 */
  color: rgb(34 211 238); /* cyan-400 */
}

.nav-item.active span:first-child {
  color: rgb(34 211 238);
}

/* Animations */
.view {
  animation: fade-in 180ms ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pretty scrollbar in dark theme */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgb(15 23 42);
}
::-webkit-scrollbar-thumb {
  background: rgb(51 65 85);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(71 85 105);
}

/* JSON preview */
.json-pre {
  background: rgb(2 6 23);
  color: rgb(148 163 184);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgb(30 41 59);
  overflow: auto;
  white-space: pre-wrap;
}
