/* Minimal Tailwind-compatible utility CSS for the W4G dashboard.
 * Hand-crafted (no build step) — covers exactly the utilities used in
 * dashboard/frontend/{index,project,pr}/*.html. Air-gap-friendly: no CDN,
 * no PostCSS, no compile.
 *
 * If a developer adds new utility classes, list them at the top of the file
 * and extend the rules below. Senior-default: prefer a couple of explicit
 * styles over a 4MB minified compile.
 */

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
img, svg { max-width: 100%; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.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 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.ml-auto { margin-left: auto; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Display + flex + grid */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1280px) { .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Borders + radius */
.border { border-width: 1px; border-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-transparent { border-color: transparent; }
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds + colors */
.bg-white { background: #ffffff; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-200 { background: #e2e8f0; }
.bg-slate-300 { background: #cbd5e1; }
.bg-slate-700 { background: #334155; }
.bg-slate-800 { background: #1e293b; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-emerald-200 { background: #a7f3d0; }
.bg-emerald-500 { background: #10b981; }
.bg-emerald-600 { background: #059669; }
.bg-amber-50 { background: #fffbeb; }
.bg-amber-200 { background: #fde68a; }
.bg-amber-500 { background: #f59e0b; }
.bg-rose-50 { background: #fff1f2; }
.bg-rose-300 { background: #fda4af; }
.bg-rose-600 { background: #e11d48; }

.text-white { color: #ffffff; }
.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-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-emerald-900 { color: #064e3b; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-rose-800 { color: #9f1239; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-emerald-600 { border-color: #059669; }
.border-emerald-300 { border-color: #6ee7b7; }
.border-amber-300 { border-color: #fcd34d; }
.border-rose-300 { border-color: #fda4af; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.shadow-md { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); }
.transition { transition: all 0.15s ease-in-out; }

/* States */
.hover\:bg-slate-700:hover { background: #334155; }
.hover\:bg-emerald-500:hover { background: #10b981; }
.hover\:bg-amber-400:hover { background: #fbbf24; }
.hover\:bg-rose-500:hover { background: #f43f5e; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-800:hover { color: #1e293b; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1); }
.disabled\:opacity-50:disabled { opacity: 0.5; }

/* Sizing */
.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }

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

/* Misc */
[x-cloak] { display: none !important; }
