WFDASH-WEBAPP/src/app/globals.css
SJCoetz 7a68cafe35 chore: add logos, opencode config and build assets
This commit includes the temporary Next.js build cache files, public brand
logos, and project configuration added in this change.
2026-07-27 08:21:20 +02:00

276 lines
8.1 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "../styles/themes.css";
@custom-variant dark (&:is(.dark *));
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-body);
--font-mono: var(--font-geist-mono);
--font-heading: var(--font-heading);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input-highlight: var(--input-highlight);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-success: var(--success);
--color-success-foreground: var(--success-foreground);
--color-warn: var(--warn);
--color-warn-foreground: var(--warn-foreground);
--color-info: var(--info);
--color-info-foreground: var(--info-foreground);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
html {
@apply font-sans;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
letter-spacing: -0.01em;
}
body {
font-family: var(--font-body);
}
}
/* ============================================================================
* Map labels — clean rounded pills on the supplier map. Token-driven so
* every theme picks up its sidebar/card colours automatically.
* ========================================================================= */
.supplier-map-label {
border: 0;
border-radius: 999px;
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
background: var(--card);
color: var(--foreground);
font-size: 10px;
font-weight: 700;
line-height: 1;
padding: 3px 7px;
}
.supplier-map-label::before {
display: none;
}
.dark .supplier-map-label {
background: oklch(0.20 0.01 240);
color: oklch(0.94 0.005 240);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}
.leaflet-container {
z-index: 0;
}
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
z-index: 10;
}
.dark .leaflet-control-zoom a,
.dark .leaflet-control-attribution,
.dark .leaflet-popup-content-wrapper,
.dark .leaflet-popup-tip {
background: var(--card);
color: var(--card-foreground);
}
.dark .leaflet-control-zoom a {
border-color: var(--border);
}
.dark .leaflet-control-attribution a,
.dark .leaflet-popup-content a {
color: var(--primary);
}
/* ============================================================================
* Modal shell — single source of truth for dialog/sheet padding rhythm.
* Every dialog in the app composes this so they all line up.
* ========================================================================= */
.modal-shell {
@apply flex max-h-[90vh] flex-col gap-0 overflow-hidden bg-card text-card-foreground;
border-radius: var(--radius-lg);
}
.modal-shell__header {
@apply flex flex-row items-center justify-between gap-3 border-b px-6 py-4;
}
.modal-shell__title {
@apply truncate text-base font-semibold tracking-tight;
}
.modal-shell__body {
@apply flex-1 overflow-y-auto px-6 py-5;
}
.modal-shell__footer {
@apply flex flex-row flex-wrap items-center justify-end gap-2 border-t px-6 pt-3 pb-5;
}
.modal-shell__footer--split {
@apply justify-between;
}
/* ============================================================================
* Shimmer + dashboard polish — keyframes used by the dashboard skeleton
* and card-mount fade-in. Hardware-accelerated (transform/opacity only).
* ========================================================================= */
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
@keyframes dashboard-fade-in {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.dashboard-row {
animation: dashboard-fade-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* ============================================================================
* KPI delta flash — one-shot when a metric's value changes (Customer count,
* Orders count). Tracked by useRef in KpiCard so the first render doesn't
* fire it; only subsequent changes do. The chip is keyed on the change
* counter so React remounts the element and retriggers the animation.
* ========================================================================= */
@keyframes kpi-delta-flash-up {
0% {
background: transparent;
transform: scale(1);
}
20% {
background: color-mix(in oklch, oklch(0.62 0.16 155) 22%, transparent);
transform: scale(1.06);
}
100% {
background: transparent;
transform: scale(1);
}
}
@keyframes kpi-delta-flash-down {
0% {
background: transparent;
transform: scale(1);
}
20% {
background: color-mix(in oklch, oklch(0.62 0.21 25) 22%, transparent);
transform: scale(1.06);
}
100% {
background: transparent;
transform: scale(1);
}
}
.kpi-delta-up {
animation: kpi-delta-flash-up 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kpi-delta-down {
animation: kpi-delta-flash-down 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* ============================================================================
* Activity pulse halo — the literal "pulse" the chart name promises.
* A stroked circle that breathes outward from each series' endpoint dot.
* Staggered per series via inline `animationDelay` so the three lines
* pulse on their own beat instead of in unison. Infinite loop.
* `r` is animated directly on the SVG circle (Chrome 77+, FF 70+).
* ========================================================================= */
@keyframes activity-pulse-halo {
0% {
r: 5;
opacity: 0.85;
stroke-width: 2;
}
100% {
r: 20;
opacity: 0;
stroke-width: 0.5;
}
}
.activity-pulse-halo {
animation: activity-pulse-halo 2.2s cubic-bezier(0, 0.55, 0.45, 1) infinite;
}
/* Honor user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
.dashboard-row,
[style*="shimmer"],
.kpi-delta-up,
.kpi-delta-down,
.activity-pulse-halo {
animation: none !important;
}
}
/* ============================================================================
* WFDASH brand-stripe utility
*
* Reusable tri-color accent for the WFDASH brand (blue → orange → red).
* Used by the sidebar signature, the page-top banner, and the login card.
* Resolves to the `var(--brand-*)` tokens defined per-theme, so it
* degrades gracefully to a single primary on non-WFDASH themes (where
* the tokens fall back to the nearest semantic analogue).
* ========================================================================= */
.wfdash-brand-stripe {
background: linear-gradient(
90deg,
var(--brand-blue, var(--primary)) 0%,
var(--brand-blue, var(--primary)) 28%,
var(--brand-orange, var(--warn)) 50%,
var(--brand-red, var(--destructive)) 72%,
var(--brand-red, var(--destructive)) 100%
);
}