@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-size-md: 1rem;

    --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);

    --color-background: oklch(0.99 0.003 260);
    --color-foreground: oklch(0.25 0.02 260);
    --color-card: oklch(1 0 0);
    --color-card-foreground: oklch(0.25 0.02 260);
    --color-primary: oklch(0.55 0.18 145);
    --color-primary-foreground: oklch(0.99 0.003 260);
    --color-secondary: oklch(0.95 0.01 260);
    --color-secondary-foreground: oklch(0.25 0.02 260);
    --color-muted: oklch(0.95 0.01 260);
    --color-muted-foreground: oklch(0.47 0.02 260);
    --color-destructive: oklch(0.55 0.2 25);
    --color-destructive-foreground: oklch(1 0 0);
    --color-border: oklch(0.89 0.01 260);
    --color-input: oklch(0.89 0.01 260);
    --color-ring: oklch(0.55 0.18 145);
    --color-gain: oklch(0.55 0.18 145);
    --color-loss: oklch(0.55 0.2 25);

    /* Receipt (print + email-style) */
    --color-receipt: oklch(1 0 0);
    --color-receipt-border: oklch(0.85 0.03 145);
    --color-receipt-label: oklch(0.47 0.02 145);
    --color-receipt-value: oklch(0.25 0.02 145);
    --color-receipt-divider: oklch(0.9 0.02 145);

    --animate-marquee: marquee 20s linear infinite;

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

@layer theme {
    .dark {
        --color-background: oklch(0.18 0.02 260);
        --color-foreground: oklch(0.95 0 0);
        --color-card: oklch(0.22 0.02 260);
        --color-card-foreground: oklch(0.95 0 0);
        --color-primary: oklch(0.55 0.18 145);
        --color-primary-foreground: oklch(0.18 0.02 260);
        --color-secondary: oklch(0.25 0.02 260);
        --color-secondary-foreground: oklch(0.88 0 0);
        --color-muted: oklch(0.25 0.02 260);
        --color-muted-foreground: oklch(0.55 0.02 260);
        --color-destructive: oklch(0.55 0.2 25);
        --color-destructive-foreground: oklch(0.95 0 0);
        --color-border: oklch(0.28 0.02 260);
        --color-input: oklch(0.28 0.02 260);
        --color-ring: oklch(0.55 0.18 145);
        --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;
} */

/* Receipt print styles */
@media print {
    body {
        background: #2cb34a !important;
    }
    .no-print {
        display: none !important;
    }
    .receipt-container {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 2rem 1.5rem !important;
        max-width: 100% !important;
        background: #2cb34a !important;
    }
    .receipt-container .text-primary,
    .receipt-container .text-muted-foreground,
    .receipt-container .text-receipt-label,
    .receipt-container .text-receipt-value {
        color: #fff !important;
    }
    .receipt-container .bg-primary {
        background: rgba(0, 0, 0, 0.15) !important;
    }
}

/* Include Style */

@import './plugins/style.min.css';
