/* utilities.css - Utilities layer */

.hidden { display: none !important; }
.spin   { animation: spin .8s linear infinite; display: inline-block; }
.job-icon-spin { color: var(--accent); animation: spin .9s linear infinite; display: inline-block; }

.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.w-80 { width: 80px; }
.w-90 { width: 90px; }
.w-100 { width: 100px; }
.w-140 { width: 140px; }
.max-w-240 { max-width: 240px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-0 { margin: 0; }
.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; }
.mb-6 { margin-bottom: 6px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.ml-6 { margin-left: 6px; }
.ml-8 { margin-left: 8px; }
.mr-auto { margin-right: auto; }
.pt-4 { padding-top: 4px; }
.pt-6 { padding-top: 6px; }
.pt-8 { padding-top: 8px; }
.pt-12 { padding-top: 12px; }
.text-hint { font-weight: 400; color: var(--text-faint); font-size: 11px; }
.text-hint-sm { font-weight: 400; color: var(--text-faint); }
.text-muted-xs { font-size: 12px; color: var(--text-muted); }
.label-sm { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.text-red { color: var(--red); }
.font-mono { font-family: ui-monospace, "SFMono-Regular", monospace; }
.cursor-default { cursor: default; }
.cursor-text { cursor: text; }
.no-underline { text-decoration: none; }
.nowrap { white-space: nowrap; }
.resize-v { resize: vertical; }

/* ══════════════════════════════════════════════════
   Reusable Utility Classes (Round 3)
   ══════════════════════════════════════════════════ */

/* ── Flex & Layout ── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.justify-end { justify-content: flex-end; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-none { flex: none !important; }
.w-max { width: max-content; }
.text-center { text-align: center; }

/* ── Text ── */
.text-11 { font-size: 11px; }
.text-12 { font-size: 12px; }
.text-13 { font-size: 13px; }
.text-14 { font-size: 14px; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-error { color: var(--red) !important; }
.text-faint { color: var(--text-faint) !important; }
.text-primary { color: var(--text) !important; }
.text-normal { font-weight: 400; text-transform: none; letter-spacing: 0; }
.p-12 { padding: 12px; }
.p-20 { padding: 20px; }
.text-muted { color: var(--text-muted); }

.cursor-pointer { cursor: pointer; }

/* ── Size ── */
.min-h-80 { min-height: 80px; }
.min-h-120 { min-height: 120px; }
.min-h-160 { min-height: 160px; }
.min-h-200 { min-height: 200px; }
.min-h-320 { min-height: 320px; }
.h-full { height: 100%; }

/* ── Empty states ── */
.empty-state { padding: 16px; color: var(--text-faint); font-size: 12px; }
.empty-state-lg { padding: 20px 16px; color: var(--text-faint); font-size: 12px; }
.empty-state-block { padding: 10px 12px; color: var(--text-faint); font-size: 12px; display: block; }


/* ── Code / var badge ── */
.var-code { background: var(--accent-light); color: var(--accent); padding: 1px 6px; border-radius: 4px; font-size: 11px; }

/* ── Prompt preview block ── */
.code-preview { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.7; overflow-y: auto; margin: 0; background: var(--bg); padding: 12px; border-radius: 6px; flex: 1; min-width: 0; }

/* ── Missing utilities for index.php inline styles ── */
.p-0 { padding: 0; }
.pr-0 { padding-right: 0; }
.ml-auto { margin-left: auto; }
.border-t-0 { border-top: none; }
.border-none { border: none; }
.block { display: block; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.select-all     { user-select: all; }
.opacity-0      { opacity: 0; }
.border-t       { border-top: 1px solid var(--border); }
.mb-3           { margin-bottom: 3px; }
.mb-14          { margin-bottom: 14px; }
.grid           { display: grid; }
.min-h-full { min-height: 100%; }
.h-520 { height: 520px; }
.shadow-none { box-shadow: none; }

/* ── Batch 2 inline-CSS replacement utilities ── */

.text-9 { font-size: 9px; }
.text-10 { font-size: 10px; }
.text-15 { font-size: 14px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-3 { margin-top: 3px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mr-4 { margin-right: 4px; }
.py-3 { padding-top: 3px; padding-bottom: 3px; }
.py-4 { padding-top: 4px; padding-bottom: 4px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.gap-4 { gap: 4px; }
.gap-3 { gap: 3px; }
.border-b { border-bottom: 1px solid var(--border); }
.uppercase { text-transform: uppercase; }
.text-accent  { color: var(--accent); }
.text-yellow  { color: var(--yellow); }
.bg-white { background: var(--white); }
.border { border: 1px solid var(--border); }
.rounded-6 { border-radius: 6px; }

/* ── Batch 3 utilities ── */

.my-8 { margin-top: 8px; margin-bottom: 8px; }

/* ── Batch 4: final inline-CSS cleanup utilities ── */
.opacity-60 { opacity: 0.6; }
.flex-2 { flex: 2; }
.contents { display: contents; }
.self-end { align-self: flex-end; }
.p-3 { padding: 3px; }
.py-8  { padding-top: 8px;  padding-bottom: 8px;  }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.max-h-160 { max-height: 160px; }
.max-h-300 { max-height: 300px; }
.w-120 { width: 120px; }
.w-180 { width: 180px; }
.text-green { color: var(--green-text); }
.text-orange-text { color: var(--orange-text); }
.text-danger { color: var(--red-hover); }
.bg-orange { background: var(--orange); }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.text-left { text-align: left; }

/* ── Batch 5: final cleanup utilities ── */

.p-16 { padding: 16px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.rounded-0 { border-radius: 0; }
.border-l-0 { border-left: none; }
.border-r-0 { border-right: none; }
.max-w-300 { max-width: 300px; }
.break-all { word-break: break-all; }
.form-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  outline: none;
}
/* ── Batch 7: last fix utilities ── */

.min-w-0 { min-width: 0; }
.pb-12 { padding-bottom: 12px; }
.w-70 { width: 70px; }
.max-w-200 { max-width: 200px; }
.ml-12 { margin-left: 12px; }
.tracking-wide { letter-spacing: .5px; }
.rounded-8 { border-radius: 8px; }
.p-10 { padding: 10px; }
.valign-top { vertical-align: top; }

/* ── Batch 8: inline-style cleanup utilities ── */
.justify-center { justify-content: center; }
.w-auto { width: auto; }
.max-w-80 { max-width: 80px; }
.max-w-110 { max-width: 110px; }
.max-w-130 { max-width: 130px; }
.max-w-160 { max-width: 160px; }
.w-320 { width: 320px; }
.mb-0 { margin-bottom: 0; }
.pt-14 { padding-top: 14px; }
.border-t-light { border-top: 1px solid var(--border-light); }
.self-center { align-self: center; }
.min-w-110 { min-width: 110px; }
.min-w-150 { min-width: 150px; }
.leading-1_5 { line-height: 1.5; }
.h-60 { height: 60px; }
.h-80 { height: 80px; }
.text-16 { font-size: 16px; }
.text-20 { font-size: 20px; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; }
.grid-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-cols-auto { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.pt-16 { padding-top: 16px; }
.stat-box { background: var(--bg); border-radius: 6px; padding: 12px 14px; }
.invisible { visibility: hidden; }
.px-6 { padding: 0 6px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.empty-state-32 { padding: 32px 0; text-align: center; color: var(--text-faint); font-size: 13px; }
.kv-badge { background: var(--gray-bg); padding: 1px 5px; border-radius: 3px; }
.tracking-005em { letter-spacing: .05em; }
.self-start { align-self: flex-start; }
.flex-min80 { flex: 1; min-width: 80px; }
.max-h-200 { max-height: 200px; }
.bg-gray { background: var(--gray-bg); }
.opacity-25 { opacity: .25; }
.leading-1_6 { line-height: 1.6; }
.py-14 { padding-top: 14px; padding-bottom: 14px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.text-right { text-align: right; }
.text-09em { font-size: .9em; }
.mt-1 { margin-top: 1px; }
.mt-2 { margin-top: 2px; }
.mt-auto { margin-top: auto; }
.ml-10 { margin-left: 10px; }
.var-readonly { background: var(--bg-hover); cursor: default; }
.max-h-320 { max-height: 320px; }
.overflow-auto { overflow: auto; }
.list-row-border { padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.font-medium { font-weight: 500; }
.tracking-003em { letter-spacing: .03em; }
