@import 'tailwindcss';
@import '../../vendor/livewire/flux/dist/flux.css';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../vendor/livewire/flux-pro/stubs/**/*.blade.php';
@source '../../vendor/livewire/flux/stubs/**/*.blade.php';

@custom-variant dark (&:where(.dark, .dark *));

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

    --color-zinc-50: #fafafa;
    --color-zinc-100: #f5f5f5;
    --color-zinc-200: #e5e5e5;
    --color-zinc-300: #d4d4d4;
    --color-zinc-400: #a3a3a3;
    --color-zinc-500: #737373;
    --color-zinc-600: #525252;
    --color-zinc-700: #404040;
    --color-zinc-800: #262626;
    --color-zinc-900: #171717;
    --color-zinc-950: #0a0a0a;

    --color-accent: var(--color-neutral-800);
    --color-accent-content: var(--color-neutral-800);
    --color-accent-foreground: var(--color-white);
}

@layer theme {
    .dark {
        --color-accent: var(--color-white);
        --color-accent-content: var(--color-white);
        --color-accent-foreground: var(--color-neutral-800);
    }
}

@layer base {

    *,
    ::after,
    ::before,
    ::backdrop,
    ::file-selector-button {
        border-color: var(--color-gray-200, currentColor);
    }
}

[data-flux-field]:not(ui-radio, ui-checkbox) {
    @apply grid gap-2;
}

[data-flux-label] {
    @apply  !mb-0 !leading-tight;
}

input:focus[data-flux-control],
textarea:focus[data-flux-control],
select:focus[data-flux-control] {
    @apply outline-hidden ring-2 ring-accent ring-offset-2 ring-offset-accent-foreground;
}

[data-quill-field] .ql-toolbar {
    @apply mt-2 rounded-t-md border-zinc-300 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900;
}

[data-quill-field] .ql-container {
    @apply rounded-b-md border-zinc-300 text-sm dark:border-zinc-700;
}

[data-quill-field] .ql-editor {
    @apply text-zinc-950 dark:text-white;
}

[data-min-h="36"] .ql-editor {
    @apply min-h-36;
}

[data-min-h="56"] .ql-editor {
    @apply min-h-56;
}

[data-quill-field] .ql-editor.ql-blank::before {
    @apply text-zinc-400 not-italic;
}

.product-rich-text {
    @apply space-y-3;
}

.product-rich-text p,
.product-rich-text h1,
.product-rich-text h2,
.product-rich-text h3,
.product-rich-text blockquote {
    @apply m-0;
}

.product-rich-text ul,
.product-rich-text ol {
    @apply my-0 list-inside space-y-1;
}

.product-rich-text ul {
    @apply list-disc;
}

.product-rich-text ol {
    @apply list-decimal;
}

.product-rich-text a {
    @apply font-medium text-emerald-700 underline underline-offset-2 dark:text-emerald-400;
}

/* \[:where(&)\]:size-4 {
    @apply size-4;
} */
