/**
 * Lightweight utility compatibility for pages still using Tailwind-like class names.
 * Keeps staff/public CRUD layouts usable without the Tailwind Play CDN.
 */

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.text-white { color: #fff !important; }
.text-gray-400 { color: #94a3b8 !important; }
.text-gray-500 { color: #64748b !important; }
.text-gray-600 { color: #475569 !important; }
.text-gray-700 { color: #334155 !important; }
.text-gray-800 { color: #1e293b !important; }
.text-gray-900 { color: #0f172a !important; }
.text-indigo-600 { color: var(--color-primary) !important; }
.text-indigo-700 { color: var(--color-primary-dark) !important; }
.text-red-500, .text-red-600 { color: var(--color-danger) !important; }
.text-green-500, .text-green-600 { color: var(--color-success) !important; }
.text-blue-400, .text-blue-500 { color: var(--color-info) !important; }
.text-yellow-400, .text-yellow-500 { color: #f59e0b !important; }
.text-purple-500 { color: #7c3aed !important; }

.bg-white { background: var(--color-surface) !important; }
.bg-gray-50 { background: var(--color-surface-2) !important; }
.bg-gray-100 { background: var(--color-bg) !important; }
.bg-gray-700 { background: #334155 !important; }
.bg-gray-800 { background: #1e293b !important; }
.bg-indigo-50 { background: rgba(11, 61, 145, 0.08) !important; }
.bg-indigo-100 { background: rgba(11, 61, 145, 0.12) !important; }
.bg-indigo-600 { background: var(--color-primary) !important; }
.bg-blue-500, .bg-blue-600 { background: var(--color-info, #0284C7) !important; }
.bg-red-500, .bg-red-600 { background: var(--color-danger) !important; }
.bg-green-100 { background: rgba(5, 150, 105, 0.12) !important; }
.bg-red-100 { background: rgba(220, 38, 38, 0.12) !important; }
.bg-purple-100 { background: rgba(124, 58, 237, 0.12) !important; }
.bg-blue-100 { background: rgba(2, 132, 199, 0.12) !important; }

.border { border: 1px solid var(--color-border) !important; }
.border-t { border-top: 1px solid var(--color-border) !important; }
.border-b { border-bottom: 1px solid var(--color-border) !important; }
.border-l-4 { border-left: 4px solid var(--color-primary) !important; }
.border-blue-500 { border-color: #3b82f6 !important; }
.border-green-500 { border-color: var(--color-success) !important; }
.border-red-500 { border-color: var(--color-danger) !important; }
.border-purple-500 { border-color: #7c3aed !important; }
.border-gray-200 { border-color: var(--color-border) !important; }
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-md) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: 9999px !important; }
.shadow { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.transition { transition: all var(--transition); }
.cursor-pointer { cursor: pointer; }
.min-w-full { min-width: 100%; }
.divide-y > * + * { border-top: 1px solid var(--color-border); }

.hover\:bg-gray-50:hover { background: var(--color-surface-2) !important; }
.hover\:bg-gray-700:hover { background: #334155 !important; }
.hover\:text-white:hover { color: #fff !important; }
.hover\:text-indigo-800:hover { color: var(--color-primary-dark) !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:p-8 { padding: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-base { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:static { position: static; }
  .lg\:translate-x-0 { transform: none; }
  .lg\:ml-0 { margin-left: 0; }
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
}

/* Gradient helpers used on older pages */
.bg-gradient-to-r { background-image: linear-gradient(90deg, var(--color-primary), var(--color-accent)); }
.from-indigo-600 { --tw-gradient-from: var(--color-primary); }
.to-purple-600 { --tw-gradient-to: #5b21b6; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent !important; }
