/*
 * hm-filament-core panel-side stylesheet
 *
 * Hand-written subset of Tailwind v3-style utility classes used by package
 * Blade views. Filament v5's compiled panel.css does NOT include generic
 * Tailwind utilities — only its own `fi-*` component classes — so a
 * package view that says `class="flex gap-3"` would render unstyled
 * without this file.
 *
 * Selectors here mirror what Tailwind would generate, so if the consumer
 * happens to already produce them via their own panel theme, the
 * definitions match and there's no conflict. If they don't, ours apply.
 *
 * Edit policy: keep this file in sync with the utilities the package's
 * Blade views actually use. Don't grow it speculatively — every utility
 * here should map to a class name in `resources/views/`.
 */

/* layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* spacing */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.p-3 { padding: 0.75rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }

/* sizing */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* borders */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; border-style: solid; }

/* typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

/*
 * Colors. Filament v5 uses Tailwind v4-style oklch() values exposed as
 * --primary-{N}, --warning-{N}, --gray-{N} CSS variables on :root. Use
 * var() directly — wrapping it in `rgb(var(...) / 1)` would be a parse
 * error since the underlying value is `oklch(...)`, not space-separated
 * channel triples.
 */

/* colors — gray (Filament-defined custom properties) */
.text-white { color: rgb(255 255 255); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.bg-gray-50 { background-color: var(--gray-50, rgb(249 250 251)); }
.bg-gray-100 { background-color: var(--gray-100); }
.border-gray-300 { border-color: var(--gray-300); }

/* colors — warning */
.text-warning-500 { color: var(--warning-500); }
.text-warning-600 { color: var(--warning-600); }
.text-warning-800 { color: var(--warning-800); }
.text-warning-900 { color: var(--warning-900); }
.bg-warning-50 { background-color: var(--warning-50); }
.border-warning-300 { border-color: var(--warning-300); }

/* colors — primary */
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-500 { background-color: var(--primary-500); }
.hover\:bg-primary-500:hover { background-color: var(--primary-500); }

/* focus ring */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary-500); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-500); }
.focus\:ring-primary-500:focus { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-500); }
.dark .focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px var(--gray-900), 0 0 0 4px var(--primary-500); }

/* dark mode (Filament toggles `.dark` on <html>) */
.dark .dark\:bg-gray-800 { background-color: var(--gray-800); }
.dark .dark\:bg-gray-900 { background-color: var(--gray-900); }
.dark .dark\:border-gray-700 { border-color: var(--gray-700); }
.dark .dark\:text-gray-100 { color: var(--gray-100); }
.dark .dark\:text-gray-200 { color: var(--gray-200); }
.dark .dark\:text-gray-300 { color: var(--gray-300); }
.dark .dark\:text-gray-400 { color: var(--gray-400); }
.dark .dark\:bg-warning-950 { background-color: var(--warning-950); }
.dark .dark\:border-warning-700 { border-color: var(--warning-700); }
.dark .dark\:text-warning-200 { color: var(--warning-200); }
.dark .dark\:text-warning-300 { color: var(--warning-300); }
.dark .dark\:text-warning-500 { color: var(--warning-500); }

/* activity/changes.blade.php */
.hm-changes { display: grid; gap: 1.25rem; }
.hm-change-values { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.hm-change-values dt { opacity: 0.7; }
.hm-change-values dd { white-space: pre-line; overflow-wrap: anywhere; padding: 0.5rem 0.75rem; border: 1px solid color-mix(in oklab, currentColor 15%, transparent); border-radius: 0.375rem; }
@media (min-width: 48rem) { .hm-change-values { grid-template-columns: 1fr 1fr; } }
