web / frontend /src /index.css
Chandima Prabhath
init
22b1735
raw
history blame
6.56 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 222 45% 98%;
--foreground: 222 47% 20%;
--card: 0 0% 100%;
--card-foreground: 222 47% 20%;
--popover: 0 0% 100%;
--popover-foreground: 222 47% 20%;
--primary: 252 62% 64%;
--primary-foreground: 210 40% 98%;
--secondary: 220 25% 95%;
--secondary-foreground: 222 47% 20%;
--muted: 220 25% 95%;
--muted-foreground: 222 20% 40%;
--accent: 252 62% 64%;
--accent-foreground: 0 0% 100%;
--destructive: 0 84% 60%;
--destructive-foreground: 210 40% 98%;
--border: 214 20% 90%;
--input: 214 20% 90%;
--ring: 252 62% 64%;
--radius: 0.75rem;
--sidebar-background: 260 73% 56%;
--sidebar-foreground: 0 0% 100%;
--sidebar-primary: 252 62% 64%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 224 47% 20%;
--sidebar-accent-foreground: 0 0% 100%;
--sidebar-border: 224 47% 40%;
--sidebar-ring: 252 62% 64%;
}
.dark {
--background: 225 30% 8%;
--foreground: 210 40% 98%;
--card: 225 30% 12%;
--card-foreground: 210 40% 98%;
--popover: 225 30% 12%;
--popover-foreground: 210 40% 98%;
--primary: 252 62% 64%;
--primary-foreground: 222 47% 20%;
--secondary: 225 25% 16%;
--secondary-foreground: 210 40% 98%;
--muted: 225 25% 16%;
--muted-foreground: 220 20% 70%;
--accent: 252 62% 64%;
--accent-foreground: 222 47% 20%;
--destructive: 0 80% 52%;
--destructive-foreground: 210 40% 98%;
--border: 225 25% 20%;
--input: 225 25% 20%;
--ring: 252 62% 64%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground font-sans;
background-image:
radial-gradient(at 50% 0%, rgba(var(--accent) / 0.08) 0px, transparent 75%),
radial-gradient(at 100% 0%, rgba(var(--accent) / 0.08) 0px, transparent 50%);
background-attachment: fixed;
}
h1, h2, h3, h4 {
@apply font-heading;
}
/* Glass effect styles */
.glass-effect {
@apply bg-white/70 dark:bg-card/70 backdrop-blur-md border border-white/20 dark:border-white/10;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.glass-input {
@apply bg-white/50 dark:bg-card/50 backdrop-blur-md border-white/20 dark:border-white/10;
}
/* Text gradient effect */
.text-gradient {
@apply bg-gradient-to-r from-financial-accent to-financial-light-accent bg-clip-text text-transparent;
}
}
.search-container {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
@apply backdrop-blur-md;
}
.result-card {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
transition: transform 0.2s ease, box-shadow 0.25s ease;
@apply backdrop-blur-md;
}
.result-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.source-card {
border-left: 3px solid theme('colors.financial.accent');
}
.dashboard-card {
transition: all 0.3s ease-in-out;
}
.dashboard-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.nav-item {
position: relative;
}
.nav-item::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background: linear-gradient(to right, theme('colors.financial.accent'), theme('colors.financial.light-accent'));
transition: width 0.3s ease;
border-radius: 2px;
}
.nav-item:hover::after,
.nav-item.active::after {
width: 100%;
}
.chat-container {
height: calc(100vh - 64px);
}
.message-bubble {
position: relative;
}
.message-bubble-ai {
border-top-left-radius: 4px;
}
.message-bubble-user {
border-top-right-radius: 4px;
}
.typing-indicator span {
@apply inline-block h-2 w-2 rounded-full bg-current;
animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) {
animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes typing-bounce {
0%, 80%, 100% {
transform: scale(0.6);
}
40% {
transform: scale(1.0);
}
}
/* Enhanced glass effect */
.neo-glass {
@apply bg-white/80 dark:bg-card/80 backdrop-blur-xl;
box-shadow:
0 4px 24px -6px rgba(0, 0, 0, 0.12),
0 12px 48px -4px rgba(0, 0, 0, 0.1);
}
.input-container {
@apply border border-border dark:border-border backdrop-blur-md rounded-xl;
background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.03),
0 0 0 1px rgba(255, 255, 255, 0.8);
}
.dark .input-container {
background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.5));
box-shadow:
0 2px 10px rgba(0, 0, 0, 0.2),
0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* Enhanced message styles */
.message-container {
@apply transition-all duration-300;
}
.message-bubble {
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
/* Glow effect */
.glow-accent {
box-shadow: 0 0 15px rgba(var(--accent), 0.5);
}
/* Code block styling */
pre code {
@apply p-4 rounded-lg text-sm block overflow-x-auto;
}
.code-block {
@apply relative;
}
.code-block-header {
@apply flex items-center justify-between px-3 py-1.5 bg-muted/70 border-b border-border rounded-t-lg;
}
.retry-button {
@apply transition-transform hover:scale-105 active:scale-95;
}
/* High-tech progress bars */
.progress-bar {
@apply h-1.5 bg-muted/50 rounded-full overflow-hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, theme('colors.financial.accent'), theme('colors.financial.light-accent'));
border-radius: inherit;
transition: width 0.5s ease;
}
/* Modern pulse animation */
@keyframes pulse-glow {
0% { box-shadow: 0 0 0 0 rgba(var(--accent), 0.7); }
70% { box-shadow: 0 0 0 10px rgba(var(--accent), 0); }
100% { box-shadow: 0 0 0 0 rgba(var(--accent), 0); }
}
.pulse-accent {
animation: pulse-glow 2s infinite;
}
/* High-tech button styles */
.tech-button {
@apply relative overflow-hidden;
transition: all 0.3s;
}
.tech-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transform: translateX(-100%);
}
.tech-button:hover::before {
transform: translateX(100%);
transition: transform 0.5s;
}