/* Self-contained styles for the AI Content Detector UI.
 *
 * This replaces the Tailwind Play CDN (cdn.tailwindcss.com), which is a runtime
 * JIT compiler meant for development — it requires eval(), prints a production
 * warning, and gets blocked by privacy browsers, tracker blockers, and CSP.
 * These are hand-written equivalents of exactly the utility classes the page
 * uses (static markup + the classes added by index.html's JS), so the app is
 * fully self-hosted: no external requests, works offline and behind any proxy.
 *
 * If you restyle the UI, add the matching utilities here.
 */

/* --- Reset / preflight (minimal) --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html.h-full, body.h-full { height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- Layout --- */
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.resize-y { resize: vertical; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-0 { width: 0; }
.h-full { height: 100%; }
.h-3 { height: 0.75rem; }
.h-1\.5 { height: 0.375rem; }
.h-44 { height: 11rem; }

/* --- Spacing --- */
.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* --- Colors (Tailwind slate/amber/indigo/red/green palette) --- */
.text-white { color: #fff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-amber-900 { color: #78350f; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-400 { background-color: #94a3b8; }
.bg-slate-800 { background-color: #1e293b; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-red-400 { background-color: #f87171; }
.bg-green-400 { background-color: #4ade80; }

/* --- Borders --- */
.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-300 { border-color: #fcd34d; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* --- Effects / interaction --- */
.transition { transition: all 0.15s ease; }
.cursor-pointer { cursor: pointer; }
.hover\:border-indigo-400:hover { border-color: #818cf8; }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #818cf8; }
.focus\:ring-indigo-400:focus { box-shadow: 0 0 0 2px #818cf8; }
