/* ============================================================
   MicroCredit — Application styles
   Depends on tokens.css being loaded first.
   ============================================================ */

/* Reset some Tailwind defaults for our shell */
body { background: var(--surface-page); }

/* Utility classes using tokens */
.surface-page   { background: var(--surface-page); }
.surface-card   { background: var(--surface-card); }
.surface-sidebar{ background: var(--surface-sidebar); }
.surface-topbar { background: var(--surface-topbar); }

.border-default { border-color: var(--border-default); }

.text-strong { color: var(--text-strong); }
.text-base-t { color: var(--text-base); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

/* Thin scrollbars */
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--color-slate-300); border-radius: 6px;
}
html[data-theme="dark"] .scrollbar-thin::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Hide on x-cloak pattern */
[x-cloak] { display: none !important; }

/* Prevent theme flash */
html.theme-preload * { transition: none !important; }