/* DocumenTo.MD — custom styles complementing Tailwind */

/* Smooth scroll for anchor navigation */
html { scroll-behavior: smooth; }

/* Scrollbar styling (dark theme) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Syntax highlighting helpers for code blocks */
.code-block pre { tab-size: 2; }

/* Table responsive wrapper */
.table-wrap { overflow-x: auto; }

/* Modal animation */
.modal-enter { animation: modalEnter 0.15s ease-out; }
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

/* Spinner */
.spinner {
  border: 3px solid #1e293b;
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
