/* Generic utilities to replace repetitive inline styles in App.tsx */

.u-text-right { text-align: right; }
.u-text-left { text-align: left; }
.u-text-center { text-align: center; }
.u-uppercase { text-transform: uppercase; }

.u-font-bold { font-weight: 600; }
.u-font-500 { font-weight: 500; }
.u-font-700 { font-weight: 700; }
.u-font-800 { font-weight: 800; }
.u-text-primary { color: var(--primary); }
.u-text-success { color: var(--success); }
.u-text-danger { color: var(--danger); }
.u-text-warning { color: var(--warning); }
.u-text-muted { color: var(--text-muted); }
.u-text-secondary { color: var(--text-secondary); }

.u-text-10 { font-size: 10px; }
.u-text-11 { font-size: 11px; }
.u-text-12 { font-size: 12px; }
.u-text-13 { font-size: 13px; }
.u-text-14 { font-size: 14px; }
.u-text-20 { font-size: 20px; }
.u-text-24 { font-size: 24px; }

.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-flex-1 { flex: 1; }
.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }
.u-items-end { align-items: flex-end; }
.u-items-baseline { align-items: baseline; }
.u-justify-end { justify-content: flex-end; }
.u-justify-between { justify-content: space-between; }
.u-justify-center { justify-content: center; }
.u-wrap { flex-wrap: wrap; }

.u-shrink-0 { flex-shrink: 0; }

.u-gap-4 { gap: 4px; }
.u-gap-6 { gap: 6px; }
.u-gap-8 { gap: 8px; }
.u-gap-10 { gap: 10px; }
.u-gap-12 { gap: 12px; }
.u-gap-14 { gap: 14px; }
.u-gap-16 { gap: 16px; }
.u-gap-20 { gap: 20px; }
.u-gap-24 { gap: 24px; }

.u-block { display: block; }

.u-ml-auto { margin-left: auto; }
.u-mr-auto { margin-right: auto; }
.u-ml-6 { margin-left: 6px; }
.u-ml-8 { margin-left: 8px; }
.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-m-0 { margin: 0; }
.u-m-16 { margin: 16px; }
.u-m-20 { margin: 20px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-4 { margin-bottom: 4px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-20 { margin-bottom: 20px; }
.u-mb-24 { margin-bottom: 24px; }

.u-mt-0 { margin-top: 0; }

.u-mt-2 { margin-top: 2px; }
.u-mt-4 { margin-top: 4px; }
.u-mt-6 { margin-top: 6px; }
.u-mt-8 { margin-top: 8px; }
.u-ml-4 { margin-left: 4px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-pl-20 { padding-left: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-60 { margin-top: 60px; }

.u-px-12 { padding-left: 12px; padding-right: 12px; }
.u-leading-18 { line-height: 1.8; }
.u-px-20 { padding-left: 20px; padding-right: 20px; }
.u-py-8 { padding-top: 8px; padding-bottom: 8px; }
.u-py-12 { padding-top: 12px; padding-bottom: 12px; }

.u-pt-0 { padding-top: 0 !important; }
.u-pb-0 { padding-bottom: 0; }

.u-p-8 { padding: 8px; }
.u-p-10 { padding: 10px; }
.u-p-4 { padding: 4px; }
.u-w-10p { width: 10%; }
.u-w-25p { width: 25%; }
.u-w-40p { width: 40%; }

.u-p-0 { padding: 0; }
.u-p-12 { padding: 12px; }
.u-p-16 { padding: 16px; }
.u-p-20 { padding: 20px; }
.u-p-24 { padding: 24px; }
.u-p-40 { padding: 40px; }
.u-p-60 { padding: 60px; }

.u-grid { display: grid; }
.u-inline-flex { display: inline-flex; }
.u-grid-auto-350 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.u-grid-auto-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.u-grid-auto-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Grid column spans (form grids, etc.) */
.u-col-span-all { grid-column: 1 / -1; }
.u-col-span-2 { grid-column: span 2; }

/* Common simple widths */
.u-minw-40 { min-width: 40px; }
.u-minw-60 { min-width: 60px; }
.u-minw-110 { min-width: 110px; }
.u-minw-140 { min-width: 140px; }
.u-minw-160 { min-width: 160px; }
.u-minw-120 { min-width: 120px; }
.u-minw-86 { min-width: 86px; }
.u-minw-180 { min-width: 180px; }
.u-minw-260 { min-width: 260px; }
.u-minw-500 { min-width: 500px; }
.u-minw-600 { min-width: 600px; }
.u-w-full { width: 100%; }
.u-w-200 { width: 200px; }
.u-w-50 { width: 50px; }
.u-w-60 { width: 60px; }
.u-w-90 { width: 90px; }
.u-w-100 { width: 100px; }
.u-w-110 { width: 110px; }
.u-w-120 { width: 120px; }
.u-w-140 { width: 140px; }
.u-w-12 { width: 12px; }
.u-w-20 { width: 20px; }
.u-w-24 { width: 24px; }
.u-w-64 { width: 64px; }
.u-w-40 { width: 40px; }
.u-w-46 { width: 46px; }
.u-w-18 { width: 18px; }
.u-w-48 { width: 48px; }
.u-w-32 { width: 32px; }
.u-w-28 { width: 28px; }
.u-h-48 { height: 48px; }
.u-h-40 { height: 40px; }
.u-h-2 { height: 2px; }
.u-h-12 { height: 12px; }
.u-h-20 { height: 20px; }
.u-h-46 { height: 46px; }
.u-h-64 { height: 64px; }
.u-h-18 { height: 18px; }
.u-h-32 { height: 32px; }
.u-h-28 { height: 28px; }
.u-h-110 { height: 110px; }
.u-h-820 { height: 820px; }
.u-h-full { height: 100%; }

.u-radius-3 { border-radius: 3px; }
.u-radius-6 { border-radius: 6px; }
.u-radius-8 { border-radius: 8px; }
.u-radius-12 { border-radius: 12px; }

.u-bg-tertiary { background: var(--bg-tertiary); }
.u-bg-secondary { background: var(--bg-secondary); }

.u-object-cover { object-fit: cover; }
.u-object-contain { object-fit: contain; }

.u-text-16 { font-size: 16px; }
.u-text-18 { font-size: 18px; }
.u-text-32 { font-size: 32px; }
.u-text-40 { font-size: 40px; }

/* Borders */
.u-border-t-0 { border-top: 0 !important; }

/* Common heights/overflow */
.u-minh-300 { min-height: 300px; }
.u-maxh-420 { max-height: 420px; }
.u-maxh-200 { max-height: 200px; }
.u-maxh-500 { max-height: 500px; }
.u-maxh-520 { max-height: 520px; }
.u-overflow-auto { overflow: auto; }
.u-overflow-hidden { overflow: hidden; }

.u-rotate-180 { transform: rotate(180deg); }

.u-break-all { word-break: break-all; }

/* Common typography helpers */
.u-font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.u-leading-tight { line-height: 1.2; }
.u-leading-145 { line-height: 1.45; }

/* Layout helpers */
.u-minw-0 { min-width: 0; }
.u-relative { position: relative; }
.u-absolute { position: absolute; }
.u-top-8 { top: 8px; }
.u-right-8 { right: 8px; }

/* Max widths */
.u-maxw-240 { max-width: 240px; }
.u-maxw-150 { max-width: 150px; }
.u-maxw-120 { max-width: 120px; }
.u-maxw-500 { max-width: 500px; }
.u-maxw-400 { max-width: 400px; }
.u-maxw-420 { max-width: 420px; }
.u-maxw-60p { max-width: 60%; }

/* Opacity */
.u-opacity-50 { opacity: 0.5; }
.u-opacity-55 { opacity: 0.55; }
.u-opacity-60 { opacity: 0.6; }
.u-opacity-70 { opacity: 0.7; }
.u-opacity-80 { opacity: 0.8; }

/* Borders / spacing */
.u-border-0 { border: 0; }
.u-border-color { border: 1px solid var(--border-color); }
.u-border-b { border-bottom: 1px solid var(--border); }
.u-border-t { border-top: 1px solid var(--border); }
.u-pb-12 { padding-bottom: 12px; }

/* Misc helpers */
.u-pre-wrap { white-space: pre-wrap; }

/* Common grids */
.u-grid-cols-2 { grid-template-columns: 1fr 1fr; }
.u-grid-cols-3fr-1fr { grid-template-columns: 3fr 1fr; }
.u-grid-cols-1fr-2fr-1fr { grid-template-columns: 1fr 2fr 1fr; }

/* Horizontal rule */
.u-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* Truncation */
.u-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Accessibility: screen-reader-only helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.u-btn-reset {
  background: none;
  border: none;
  padding: 0;
}

.u-cursor-pointer { cursor: pointer; }
.u-cursor-not-allowed { cursor: not-allowed; }

.u-hidden { display: none !important; }
