/* ==========================================================================
   Design tokens — the single source of truth for the admin panel.
   Every colour, radius, shadow and spacing step used anywhere in the app
   should come from here. If you need a value that isn't in this file,
   add it here first rather than hardcoding it in a page.
   ========================================================================== */

:root {
	/* --- Brand -------------------------------------------------------- */
	--c-accent: #f2415a;
	--c-accent-hover: #dc2e47;
	--c-accent-active: #c22239;
	--c-accent-soft: #fff1f3;
	--c-accent-softer: #fff7f8;
	--c-accent-border: #fbd0d7;
	--c-accent-text: #a8182f;
	--c-accent-ring: rgba(242, 65, 90, 0.16);

	/* --- Neutrals ------------------------------------------------------
	   One ramp only (slate). Do not mix in Tailwind "gray" or ad-hoc greys. */
	--c-bg: #f6f8fb;
	--c-surface: #ffffff;
	--c-surface-sunken: #f8fafc;
	--c-surface-hover: #f1f5f9;

	--c-border: #e7ecf3;
	--c-border-strong: #d4dce7;

	--c-text: #0f172a;
	--c-text-secondary: #475569;
	--c-text-muted: #8a97a8;
	--c-text-inverse: #ffffff;

	/* --- Status -------------------------------------------------------- */
	--c-danger: #e11d48;
	--c-danger-soft: #fff1f2;
	--c-danger-border: #fbcfd6;
	--c-success: #0f9d78;
	--c-success-soft: #ecfdf5;

	/* --- Typography ----------------------------------------------------- */
	--f-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--f-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

	--t-xs: 11px;
	--t-sm: 12px;
	--t-base: 13px;
	--t-md: 14px;
	--t-lg: 16px;
	--t-xl: 20px;
	--t-2xl: 26px;
	--t-3xl: 30px;

	/* --- Radii ---------------------------------------------------------- */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 14px;
	--r-full: 999px;

	/* --- Elevation ------------------------------------------------------
	   Deliberately restrained. Structure comes from borders, not big blurs. */
	--sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
	--sh-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
	--sh-md: 0 4px 12px rgba(15, 23, 42, 0.07);
	--sh-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
	--sh-ring: 0 0 0 3px var(--c-accent-ring);

	/* --- Spacing -------------------------------------------------------- */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 20px;
	--s-6: 24px;
	--s-7: 28px;
	--s-8: 32px;
	--s-10: 40px;

	/* --- Motion --------------------------------------------------------- */
	--tr-fast: 0.12s ease;
	--tr-base: 0.18s ease;

	/* --- App shell ------------------------------------------------------ */
	--header-h: 64px;
	--rail-w: 268px;
	--content-max: 1180px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
