/* ScanRaise utility classes
 * Replaces inline style="..." attributes across all pages.
 * Follows UIKit patterns from ~/StanHattie/Claude/UIKit/.
 */

/* --- Icon sizing (Lucide icons) --- */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 18px; height: 18px; }
.icon { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }
.icon-2xl { width: 32px; height: 32px; }
.icon-3xl { width: 36px; height: 36px; }
.icon-4xl { width: 48px; height: 48px; }
.icon-5xl { width: 56px; height: 56px; }

/* --- Display --- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* --- Flexbox --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* --- Gap --- */
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* --- Margin --- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.ml-4 { margin-left: 4px; }
.ml-8 { margin-left: 8px; }
.mr-4 { margin-right: 4px; }
.mr-8 { margin-right: 8px; }

/* --- Padding --- */
.p-8 { padding: 8px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-14 { padding: 14px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }

/* --- Typography --- */
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent, #2563eb); }
.lh-tight { line-height: 1.3; }
.lh-relaxed { line-height: 1.6; }
.ws-nowrap { white-space: nowrap; }

/* --- Width --- */
.w-full { width: 100%; }

/* --- Border --- */
.border-accent { border-color: var(--accent); }
.rounded-8 { border-radius: 8px; }
.rounded-10 { border-radius: 10px; }
.rounded-12 { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* === Refactored from inline styles (April 2026 sweep) === */

/* Most common: italic note (×26) */
.field-note { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 8px; }

/* Hidden / visibility */
.is-hidden { display: none !important; }

/* Centered blocks */
.center-680 { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.center-mt8 { text-align: center; margin-top: 8px; }
.center-mt18-muted { text-align: center; margin-top: 18px; font-size: 0.88rem; color: #6b7280; }

/* Inline pill buttons (used as link CTAs) */
.btn-pill-primary { display: inline-block; padding: 12px 26px; background: #2563eb; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-pill-outline { display: inline-block; margin-left: 12px; padding: 12px 26px; border: 1px solid #d1d5db; color: #374151; border-radius: 10px; text-decoration: none; font-weight: 600; }

/* Backgrounds */
.bg-accent { background: var(--accent); }
.bg-blue-gradient { background: linear-gradient(135deg, #eff6ff 0%, #fff 100%); }

/* Progress bar starting state (driven by JS via inline width or var) */
.progress-w0 { width: 0%; }

/* === ScanRaise JS-rendered HTML helpers === */

/* Color */
.txt-muted { color: var(--text-muted); }
.txt-muted-13 { color: var(--text-muted); font-size: 13px; }
.txt-muted-12 { font-size: 12px; color: var(--text-muted); }
.txt-muted-11-mt4 { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.txt-muted-13-m0 { font-size: 13px; color: var(--text-muted); margin: 0; }
.mt8-muted { margin-top: 8px; color: var(--text-muted); }
.txt-gray-600 { color: #4b5563; }
.txt-gray-600-link { color: #4b5563; text-decoration: underline; }
.txt-accent { color: var(--accent); }
.txt-accent-bold { color: var(--accent); font-weight: 600; }
.txt-emerald { color: #10b981; }

/* Spacing */
.mt-20 { margin-top: 20px; }
.mt-16 { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin: 0; }
.mb-6 { margin: 0 0 6px; }
.list-indent { margin: 8px 0 0 16px; }
.tight-margin { margin: 4px 0 0; }

/* Layout */
.text-center-mt16 { text-align: center; margin-top: 16px; }
.text-center-overlap-16 { text-align: center; margin: -8px 0 16px; }
.text-center-12-muted { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.justify-center { justify-content: center; }
.cursor-pointer { cursor: pointer; }
.flex-row-gap8-mb16 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.flex-gap8-mb8 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

/* Pills + small buttons */
.btn-soft-pill { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1.5px solid var(--border); border-radius: 8px; background: white; font-size: 13px; cursor: pointer; }
.btn-tiny-tag { padding: 3px 6px; font-size: 10px; margin-right: 2px; }

/* Cards */
.card-success-pad { padding: 12px; background: #ecfdf5; border-radius: 8px; font-size: 13px; }

/* Sizes */
.sq-40-grey { width: 40px; height: 40px; background: #e5e7eb; border-radius: 6px; }
.icon-18-accent { width: 18px; height: 18px; color: var(--accent); }
.headline-20-mb4 { font-size: 20px; margin-bottom: 4px; }
.fw-600-14 { font-weight: 600; font-size: 14px; }
