Spaces:
Running

kheladekhboweb / src /index.css
subrato1's picture
refactor: centralize channel resolution and UI updates
fb7ed3e
Raw History Blame Contribute Delete
3.58 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import "tailwindcss";
@variant dark (&:where(.dark, .dark *));
@theme {
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
--font-display: "Space Grotesk", sans-serif;
--font-mono: "JetBrains Mono", monospace;
}
/* Custom CSS Variable System for Daylight & Stadium Themes */
:root {
--bg-app: #F8FAFC;
--bg-card: #FFFFFF;
--bg-header: rgba(255, 255, 255, 0.82);
--border-app: #E2E8F0;
--text-primary: #0F172A;
--text-secondary: #475569;
--text-tertiary: #64748B;
--accent-base: #10B981;
--accent-hover: #059669;
--accent-bg: rgba(16, 185, 129, 0.1);
--glass-bg: rgba(255, 255, 255, 0.95);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}
.dark {
--bg-app: #0B0F19;
--bg-card: #141B2D;
--bg-header: rgba(11, 15, 25, 0.85);
--border-app: rgba(255, 255, 255, 0.07);
--text-primary: #F8FAFC;
--text-secondary: #94A3B8;
--text-tertiary: #64748B;
--accent-base: #10B981;
--accent-hover: #34D399;
--accent-bg: rgba(16, 185, 129, 0.15);
--glass-bg: rgba(20, 27, 45, 0.90);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}
body {
font-family: var(--font-sans);
background-color: var(--bg-app);
color: var(--text-primary);
transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, th, .font-display {
font-family: var(--font-display);
letter-spacing: -0.015em;
}
/* Scrollbar rules for clean layout containers */
.scrollbar-none::-webkit-scrollbar {
display: none;
}
.scrollbar-none {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Unified minimal cards */
.glass-card {
background-color: var(--bg-card);
border: 1px solid var(--border-app);
box-shadow: var(--shadow-sm);
border-radius: 16px;
overflow: hidden;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
box-shadow: var(--shadow-md);
border-color: rgba(16, 185, 129, 0.25);
}
.football-gradient {
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.status-pulse {
width: 6px;
height: 6px;
background: #EF4444;
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
animation: pulse-ring 2s infinite cubic-bezier(0.25, 0, 0, 1);
}
@keyframes pulse-ring {
0% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}
70% {
box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
}
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Custom helper utilities that guarantee layout stays crisp in older browsers */
.theme-light input,
.theme-light select,
.theme-light textarea {
background-color: #FFFFFF !important;
color: #0F172A !important;
border-color: #E2E8F0 !important;
}
.theme-light input::placeholder {
color: #94A3B8 !important;
}