SoftTraderFrontend/app/globals.css
2026-03-20 11:10:13 -04:00

189 lines
4.8 KiB
CSS

@import 'tailwindcss';
@import 'tw-animate-css';
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;500;600;700&display=swap');
@custom-variant dark (&:is(.dark *));
:root {
/* Light mode - Windows 8/10 soft grays */
--background: #f5f5f5;
--foreground: #1a1a1a;
--card: #ffffff;
--card-foreground: #1a1a1a;
--popover: #ffffff;
--popover-foreground: #1a1a1a;
--primary: #0078d4;
--primary-foreground: #ffffff;
--secondary: #e5e5e5;
--secondary-foreground: #1a1a1a;
--muted: #d0d0d0;
--muted-foreground: #606060;
--accent: #0078d4;
--accent-foreground: #ffffff;
--destructive: #e81123;
--destructive-foreground: #ffffff;
--border: #d0d0d0;
--input: #ffffff;
--ring: #0078d4;
--chart-1: #0078d4;
--chart-2: #107c10;
--chart-3: #ffd700;
--chart-4: #ff8c00;
--chart-5: #e74856;
--radius: 0;
--sidebar: #f5f5f5;
--sidebar-foreground: #1a1a1a;
--sidebar-primary: #0078d4;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #0078d4;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #d0d0d0;
--sidebar-ring: #0078d4;
--positive: #107c10;
--negative: #e81123;
}
.dark {
/* Dark mode - Windows 10 dark theme */
--background: #1e1e1e;
--foreground: #ffffff;
--card: #2d2d2d;
--card-foreground: #ffffff;
--popover: #2d2d2d;
--popover-foreground: #ffffff;
--primary: #0078d4;
--primary-foreground: #ffffff;
--secondary: #3a3a3a;
--secondary-foreground: #ffffff;
--muted: #404040;
--muted-foreground: #b0b0b0;
--accent: #0078d4;
--accent-foreground: #ffffff;
--destructive: #ff4444;
--destructive-foreground: #ffffff;
--border: #3a3a3a;
--input: #2d2d2d;
--ring: #0078d4;
--chart-1: #0078d4;
--chart-2: #107c10;
--chart-3: #ffd700;
--chart-4: #ff8c00;
--chart-5: #ff6b6b;
--sidebar: #1e1e1e;
--sidebar-foreground: #ffffff;
--sidebar-primary: #0078d4;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #0078d4;
--sidebar-accent-foreground: #ffffff;
--sidebar-border: #3a3a3a;
--sidebar-ring: #0078d4;
--positive: #107c10;
--negative: #ff4444;
}
@theme inline {
--font-sans: 'Segoe UI', 'Segoe UI Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: 'Consolas', 'Monaco', monospace;
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: 0;
--radius-md: 0;
--radius-lg: 0;
--radius-xl: 0;
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--color-positive: var(--positive);
--color-negative: var(--negative);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
}
/* Carousel slide animations */
@keyframes slide-out-left {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(-20px);
}
}
@keyframes slide-in-right {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.animate-slide-out-left {
animation: slide-out-left 300ms ease-in-out forwards;
}
.animate-slide-in-right {
animation: slide-in-right 300ms ease-in-out forwards;
}
/* Skeleton shimmer animation */
@keyframes shimmer {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.skeleton {
background: linear-gradient(
90deg,
var(--secondary) 25%,
var(--muted) 50%,
var(--secondary) 75%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}