ai_invest/imai-invest-manager-AI/src/index.css

207 lines
3.6 KiB
CSS

@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
min-height: 100vh;
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Dark Theme */
body.dark {
background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
color: #ffffff;
}
/* Light Theme */
body.light {
background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
color: #334155;
}
#root {
min-height: 100vh;
}
/* Glass Effect Utility */
.glass {
backdrop-filter: blur(16px);
transition: all 0.3s ease;
}
/* Dark Theme Glass */
body.dark .glass {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Light Theme Glass */
body.light .glass {
background: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
/* Advertisement Areas */
.ad-banner {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
text-align: center;
opacity: 0.8;
transition: opacity 0.3s ease;
}
.ad-banner:hover {
opacity: 1;
}
.ad-side-banner {
position: fixed;
top: 50%;
transform: translateY(-50%);
width: 120px;
height: 600px;
z-index: 40;
}
.ad-side-left {
left: 20px;
}
.ad-side-right {
right: 20px;
}
/* Responsive ad hiding */
@media (max-width: 1400px) {
.ad-side-banner {
display: none;
}
}
/* Animation Classes */
.animate-pulse-slow {
animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Theme-aware text colors */
body.dark .text-themed {
color: #ffffff;
}
body.light .text-themed {
color: #334155;
}
body.dark .text-themed-muted {
color: rgba(255, 255, 255, 0.6);
}
body.light .text-themed-muted {
color: #64748b;
}
/* Override white text in light mode */
body.light .text-white {
color: #334155 !important;
}
body.light .text-white\/60 {
color: #64748b !important;
}
body.light .text-white\/70 {
color: #475569 !important;
}
body.light .text-white\/80 {
color: #334155 !important;
}
body.light .text-white\/40 {
color: #94a3b8 !important;
}
body.light .text-white\/50 {
color: #64748b !important;
}
/* Input and form styling for light theme */
body.light input,
body.light select,
body.light button {
color: #334155;
}
body.light input::placeholder {
color: #94a3b8 !important;
}
/* Better contrast for light theme buttons */
body.light .bg-white\/5 {
background-color: rgba(0, 0, 0, 0.03) !important;
}
body.light .bg-white\/10 {
background-color: rgba(0, 0, 0, 0.06) !important;
}
body.light .hover\:bg-white\/10:hover {
background-color: rgba(0, 0, 0, 0.08) !important;
}
/* Border colors for light theme */
body.light .border-white\/10 {
border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light .border-white\/20 {
border-color: rgba(0, 0, 0, 0.15) !important;
}