/* Custom additions on top of TailwindCSS (loaded via CDN in index.html) */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #283248; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4a5675; }

html { scrollbar-color: #283248 transparent; }

/* Reduce motion of large tables on tab switch */
.view { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Pretty code blocks */
code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Log viewer */
.log-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
