/* ===================================================================
   HELIX Design System — Utility Classes
   Replaces inline style="..." attributes across templates
   =================================================================== */

/* -- Spacing: Margin ----------------------------------------------- */
.mt-xs  { margin-top: 4px; }
.mt-sm  { margin-top: 8px; }
.mt-md  { margin-top: 16px; }
.mt-lg  { margin-top: 24px; }
.mt-xl  { margin-top: 32px; }

.mb-xs  { margin-bottom: 4px; }
.mb-sm  { margin-bottom: 8px; }
.mb-md  { margin-bottom: 16px; }
.mb-lg  { margin-bottom: 24px; }

.ml-sm  { margin-left: 8px; }
.ml-md  { margin-left: 16px; }
.mr-sm  { margin-right: 8px; }
.mr-md  { margin-right: 16px; }

/* -- Spacing: Padding ---------------------------------------------- */
.p-xs   { padding: 4px; }
.p-sm   { padding: 8px; }
.p-md   { padding: 16px; }
.p-lg   { padding: 24px; }
.p-xl   { padding: 32px; }

.px-sm  { padding-left: 8px; padding-right: 8px; }
.px-md  { padding-left: 16px; padding-right: 16px; }
.px-lg  { padding-left: 24px; padding-right: 24px; }

.py-sm  { padding-top: 8px; padding-bottom: 8px; }
.py-md  { padding-top: 16px; padding-bottom: 16px; }

/* -- Spacing: Gap -------------------------------------------------- */
.gap-xs  { gap: 4px; }
.gap-sm  { gap: 8px; }
.gap-md  { gap: 16px; }
.gap-lg  { gap: 24px; }

/* -- Typography ---------------------------------------------------- */
.text-xs    { font-size: 0.75rem; }
.text-sm    { font-size: 0.85rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.25rem; }
.text-xl    { font-size: 1.5rem; }
.text-2xl   { font-size: 2rem; }

.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-teal  { color: var(--teal); }
.text-rose  { color: var(--rose); }
.text-green { color: var(--green); }
.text-orange{ color: var(--orange); }

.font-mono  { font-family: var(--mono); }
.font-bold  { font-weight: 600; }
.font-light { font-weight: 300; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -- Display ------------------------------------------------------- */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }
.flex-shrink-0{ flex-shrink: 0; }

.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-end      { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }

.grid          { display: grid; }

.hidden        { display: none; }
.block         { display: block; }
.inline-flex   { display: inline-flex; }

/* -- Sizing -------------------------------------------------------- */
.w-full  { width: 100%; }
.h-full  { height: 100%; }

/* -- Overflow ------------------------------------------------------ */
.overflow-auto    { overflow: auto; }
.overflow-hidden  { overflow: hidden; }
.overflow-y-auto  { overflow-y: auto; }

/* -- Position ------------------------------------------------------ */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; top: 0; z-index: 10; }

/* -- Border -------------------------------------------------------- */
.border        { border: 1px solid var(--border); }
.border-b      { border-bottom: 1px solid var(--border); }
.border-t      { border-top: 1px solid var(--border); }
.rounded       { border-radius: var(--radius); }
.rounded-sm    { border-radius: var(--radius-sm); }
.rounded-lg    { border-radius: var(--radius-lg); }
.rounded-full  { border-radius: 9999px; }

/* -- Background ---------------------------------------------------- */
.bg-surface    { background: var(--surface); }
.bg-surface-2  { background: var(--surface-2); }
.bg-glass      { background: var(--glass-bg); backdrop-filter: blur(16px); }

/* -- Cursor -------------------------------------------------------- */
.cursor-pointer { cursor: pointer; }

/* -- Opacity ------------------------------------------------------- */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* -- Animation ----------------------------------------------------- */
.animate-fade-in    { animation: fadeIn 0.3s ease; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease; }
.animate-spin       { animation: spin 0.8s linear infinite; }
.animate-pulse      { animation: pulse 2s ease-in-out infinite; }
