@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;
}

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

/* TipTap засварлагч болон мэдээний body-г харуулах ерөнхий загвар */
.content-html {
    @apply leading-relaxed;
}
.content-html p {
    @apply my-3;
}
.content-html h1 {
    @apply mb-3 mt-5 text-2xl font-bold;
}
.content-html h2 {
    @apply mb-3 mt-5 text-xl font-bold;
}
.content-html h3 {
    @apply mb-2 mt-4 text-lg font-semibold;
}
.content-html ul {
    @apply my-3 list-disc space-y-1 ps-6;
}
.content-html ol {
    @apply my-3 list-decimal space-y-1 ps-6;
}
.content-html a {
    @apply text-accent underline underline-offset-2;
}
.content-html blockquote {
    @apply my-4 border-s-4 border-zinc-300 ps-4 italic text-zinc-600 dark:border-zinc-600 dark:text-zinc-400;
}
.content-html img {
    @apply my-4 rounded-lg;
}
.content-html strong {
    @apply font-semibold;
}

/* Placeholder (хоосон үед) */
.content-html p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    @apply pointer-events-none float-left h-0 text-zinc-400;
}
