Spaces:
Running

microfunnel-api / frontend /app /globals.css
axeronis
fix(mobile): draggable nova widget, modal overlap fixes, tablet summary optimizations, and safe area support
fafcde0
Raw History Blame Contribute Delete
19.6 kB
@import "tailwindcss";
/* Tailwind CSS v4 Theme Extension — Use CSS Variables as Tailwind Classes */
@theme {
/* Backgrounds */
--color-background: var(--background);
--color-surface: var(--surface);
--color-surface-elevated: var(--surface-elevated);
--color-surface-hover: var(--surface-hover);
/* Primary Colors */
--color-primary: var(--primary);
--color-primary-light: var(--primary-light);
--color-secondary: var(--secondary);
--color-accent: var(--accent);
--color-accent-cyan: var(--accent-cyan);
/* Semantic */
--color-success: var(--success);
--color-warning: var(--warning);
--color-error: var(--error);
--color-info: var(--info);
/* Text */
--color-foreground: var(--foreground);
--color-text-secondary: var(--text-secondary);
--color-text-muted: var(--text-muted);
--color-text-dim: var(--text-dim);
/* Material 3 Token Integration */
--color-md-primary: var(--md-sys-color-primary);
--color-md-on-primary: var(--md-sys-color-on-primary);
--color-md-primary-container: var(--md-sys-color-primary-container);
--color-md-on-primary-container: var(--md-sys-color-on-primary-container);
--color-md-secondary: var(--md-sys-color-secondary);
--color-md-on-secondary: var(--md-sys-color-on-secondary);
--color-md-secondary-container: var(--md-sys-color-secondary-container);
--color-md-on-secondary-container: var(--md-sys-color-on-secondary-container);
--color-md-surface: var(--md-sys-color-surface);
--color-md-on-surface: var(--md-sys-color-on-surface);
--color-md-surface-container: var(--md-sys-color-surface-container);
--color-md-surface-container-high: var(--md-sys-color-surface-container-high);
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
background-color: var(--background);
}
/*
DESIGN SYSTEM: AURORA DARK
Premium, bold design with gradients and glassmorphism
*/
:root {
/* === AURORA PALETTE === */
/* Backgrounds */
--background: #020206;
--surface: #0D0E18;
--surface-elevated: #12131F;
--surface-hover: #1A1B2E;
/* Primary Gradient (Indigo → Violet → Pink) */
--primary: #6366F1;
--primary-light: #818CF8;
--secondary: #8B5CF6;
--accent: #EC4899;
--accent-cyan: #22D3EE;
/* Semantic Colors */
--success: #10B981;
--warning: #F59E0B;
--error: #EF4444;
--info: #3B82F6;
/* Text */
--foreground: #F8FAFC;
--text-secondary: #CBD5E1;
--text-muted: #64748B;
--text-dim: #475569;
/* Borders */
--border: rgba(255, 255, 255, 0.08);
--border-hover: rgba(255, 255, 255, 0.15);
--border-active: rgba(99, 102, 241, 0.5);
/* Glow Effects */
--glow-primary: rgba(99, 102, 241, 0.4);
--glow-accent: rgba(236, 72, 153, 0.4);
--glow-success: rgba(16, 185, 129, 0.4);
/* Radius */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-xl: 24px;
/* === MATERIAL 3 DESIGN SYSTEM TOKENS (Mapped to Aurora) === */
/* https://m3.material.io/styles/color/the-color-system/tokens */
/* Primary */
--md-sys-color-primary: var(--primary);
--md-sys-color-on-primary: #FFFFFF;
--md-sys-color-primary-container: #312E81;
/* Indigo 900 */
--md-sys-color-on-primary-container: #E0E7FF;
/* Indigo 100 */
.touch-callout-none {
-webkit-touch-callout: none !important;
-webkit-user-select: none !important;
user-select: none !important;
}
--md-sys-color-secondary: var(--secondary);
--md-sys-color-on-secondary: #FFFFFF;
--md-sys-color-secondary-container: #4C1D95;
/* Violet 900 */
--md-sys-color-on-secondary-container: #EDE9FE;
/* Violet 100 */
/* Tertiary (Accent) */
--md-sys-color-tertiary: var(--accent);
--md-sys-color-on-tertiary: #FFFFFF;
--md-sys-color-tertiary-container: #831843;
/* Pink 900 */
--md-sys-color-on-tertiary-container: #FCE7F3;
/* Pink 100 */
/* Error */
--md-sys-color-error: var(--error);
--md-sys-color-on-error: #FFFFFF;
--md-sys-color-error-container: #450A0A;
--md-sys-color-on-error-container: #FEE2E2;
/* Background & Surface */
--md-sys-color-background: var(--background);
--md-sys-color-on-background: var(--foreground);
--md-sys-color-surface: var(--surface);
--md-sys-color-on-surface: var(--foreground);
--md-sys-color-surface-variant: var(--surface-elevated);
--md-sys-color-on-surface-variant: var(--text-secondary);
/* Surface Containers (M3 Elevation Levels) */
--md-sys-color-surface-container-lowest: #050510;
/* background */
--md-sys-color-surface-container-low: #0D0E18;
/* surface */
--md-sys-color-surface-container: #12131F;
/* surface-elevated */
--md-sys-color-surface-container-high: #1A1B2E;
/* surface-hover */
--md-sys-color-surface-container-highest: #232438;
/* Outline */
--md-sys-color-outline: var(--border);
--md-sys-color-outline-variant: var(--border-hover);
/* Elevation (Shadows) */
--md-sys-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3),
0px 1px 3px 1px rgba(0, 0, 0, 0.15);
--md-sys-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3),
0px 2px 6px 2px rgba(0, 0, 0, 0.15);
--md-sys-elevation-3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3),
0px 4px 8px 3px rgba(0, 0, 0, 0.15);
--md-sys-elevation-4: 0px 2px 3px 0px rgba(0, 0, 0, 0.3),
0px 6px 10px 4px rgba(0, 0, 0, 0.15);
--md-sys-elevation-5: 0px 4px 4px 0px rgba(0, 0, 0, 0.3),
0px 8px 12px 6px rgba(0, 0, 0, 0.15);
/* Mobile Layout Constants */
--header-height-mobile: calc(52px + env(safe-area-inset-top, 0px));
--footer-height-mobile: calc(70px + env(safe-area-inset-bottom, 0px));
/* Increased from 50px to ensure better spacing */
@media (min-width: 768px) {
--header-height-mobile: 0px;
--footer-height-mobile: 0px;
}
}
/* Common Layout Utilities */
.modal-mobile-bottom-buffer {
padding-bottom: var(--footer-height-mobile);
}
html {
scroll-behavior: smooth;
background-color: #050510;
height: 100%;
}
@media (max-width: 767px) {
html {
height: 100%;
}
}
body {
background-color: transparent;
color: var(--foreground);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
overflow-x: hidden;
min-height: 100dvh;
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
}
@media (max-width: 767px) {
body {
height: auto;
min-height: 100dvh;
}
}
/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 700;
letter-spacing: -0.02em;
}
/* === INPUTS & FORMS === */
input,
textarea,
select {
color: var(--foreground) !important;
background-color: var(--surface) !important;
border: 1px solid var(--border) !important;
border-radius: var(--radius-md) !important;
transition: all 0.2s ease;
font-size: 14px;
}
input::placeholder,
textarea::placeholder {
color: var(--text-muted) !important;
}
input:focus,
textarea:focus,
select:focus {
outline: none !important;
border-color: var(--primary) !important;
box-shadow: 0 0 0 3px var(--glow-primary), 0 0 20px -5px var(--glow-primary) !important;
}
/* Chrome Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
-webkit-background-clip: text;
-webkit-text-fill-color: var(--foreground) !important;
transition: background-color 5000s ease-in-out 0s;
box-shadow: inset 0 0 20px 20px var(--surface);
}
/* === SCROLLBAR === */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: var(--background);
}
::-webkit-scrollbar-thumb {
background: var(--text-dim);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* === GLASS CARDS === */
.glass-card {
background: rgba(13, 14, 24, 0.8);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
transition: all 0.3s ease;
}
.glass-card:hover {
border-color: var(--border-hover);
box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
}
/* Glass card with gradient border on hover */
.glass-card-gradient {
background: rgba(13, 14, 24, 0.8);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border-radius: var(--radius-lg);
position: relative;
transition: all 0.3s ease;
}
.glass-card-gradient::before {
content: "";
position: absolute;
inset: 0;
border-radius: var(--radius-lg);
padding: 1px;
background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, var(--accent) 60%, transparent 70%);
background-size: 300% 300%;
background-position: 0% 0%;
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: all 0.5s ease;
}
.glass-card-gradient:hover::before {
opacity: 1;
background-position: 100% 100%;
}
/* === GRADIENT TEXT === */
.text-gradient-aurora {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient-primary {
background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.text-gradient-success {
background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* === GLOW EFFECTS === */
.glow-primary {
box-shadow: 0 0 20px -5px var(--glow-primary);
}
.glow-accent {
box-shadow: 0 0 20px -5px var(--glow-accent);
}
.glow-success {
box-shadow: 0 0 20px -5px var(--glow-success);
}
/* Text glow */
.text-glow-primary {
text-shadow: 0 0 20px var(--glow-primary);
}
.text-glow-accent {
text-shadow: 0 0 20px var(--glow-accent);
}
/* === BUTTONS === */
.btn-primary {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
color: white;
font-weight: 600;
padding: 12px 24px;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px -3px var(--glow-primary);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px -5px var(--glow-primary);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-secondary {
background: var(--surface-elevated);
color: var(--foreground);
font-weight: 600;
padding: 12px 24px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
cursor: pointer;
transition: all 0.3s ease;
}
.btn-secondary:hover {
background: var(--surface-hover);
border-color: var(--border-hover);
}
/* === AURORA BACKGROUND ACCENTS === */
.aurora-bg {
position: fixed;
inset: 0;
pointer-events: none;
z-index: -1;
overflow: hidden;
}
.aurora-blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.5;
animation: aurora-float 20s ease-in-out infinite;
}
.aurora-blob-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
top: -200px;
left: -100px;
}
.aurora-blob-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
bottom: -150px;
right: -100px;
animation-delay: -10s;
}
.aurora-blob-3 {
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-delay: -5s;
}
/* === ANIMATIONS === */
@keyframes aurora-float {
0%,
100% {
transform: translate(0, 0) scale(1);
}
25% {
transform: translate(30px, -30px) scale(1.05);
}
50% {
transform: translate(-20px, 20px) scale(0.95);
}
75% {
transform: translate(-30px, -10px) scale(1.02);
}
}
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes scale-in {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes pulse-glow {
0%,
100% {
opacity: 0.5;
box-shadow: 0 0 20px -5px var(--glow-primary);
}
50% {
opacity: 1;
box-shadow: 0 0 30px -3px var(--glow-primary);
}
}
@keyframes shimmer {
from {
background-position: 200% 0;
}
to {
background-position: -200% 0;
}
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.animate-fade-in {
animation: fade-in 0.5s ease-out forwards;
}
.animate-scale-in {
animation: scale-in 0.3s ease-out forwards;
}
.animate-pulse-glow {
animation: pulse-glow 3s ease-in-out infinite;
}
.animate-shimmer {
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
background-size: 200% 100%;
animation: shimmer 2s linear infinite;
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
/* === SPOTLIGHT EFFECT === */
.spotlight-card {
position: relative;
overflow: hidden;
}
.spotlight-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 200%;
height: 100%;
background: linear-gradient(115deg,
transparent 0%,
transparent 40%,
rgba(255, 255, 255, 0.03) 45%,
rgba(255, 255, 255, 0.08) 50%,
rgba(255, 255, 255, 0.03) 55%,
transparent 60%,
transparent 100%);
transform: skewX(-20deg);
transition: left 0.6s ease;
pointer-events: none;
}
.spotlight-card:hover::before {
left: 100%;
}
/* === UTILITY CLASSES === */
.input-glow:focus-within {
box-shadow: 0 0 0 3px var(--glow-primary);
border-color: var(--primary);
}
/* Heat badges */
.badge-hot {
background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.badge-warm {
background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
color: #1F2937;
}
.badge-cold {
background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
color: white;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* Status indicators */
.status-online {
background: var(--success);
box-shadow: 0 0 8px var(--glow-success);
}
.status-offline {
background: var(--text-dim);
}
.status-busy {
background: var(--warning);
box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}
/* Gradient borders */
.border-gradient {
border: 1px solid transparent;
background: linear-gradient(var(--surface), var(--surface)) padding-box,
linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) border-box;
}
/* Loading skeleton */
.skeleton {
background: linear-gradient(90deg, var(--surface) 25%, var(--surface-elevated) 50%, var(--surface) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
border-radius: var(--radius-md);
}
/* === MARQUEE ANIMATION === */
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@keyframes marquee-infinite {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
.animate-marquee {
animation: marquee 30s linear infinite;
}
.animate-marquee-infinite {
animation: marquee-infinite 40s linear infinite;
}
.animate-marquee:hover,
.animate-marquee-infinite:hover {
animation-play-state: paused;
}
/* GPU acceleration for smooth animations */
.gpu-accelerated {
will-change: transform;
transform: translateZ(0);
backface-visibility: hidden;
}
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
.animate-marquee,
.animate-marquee-infinite {
animation: none;
}
}
/* === MOBILE SPECIFIC === */
/* Safe area for bottom navigation */
.safe-area-bottom {
padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Prevent zoom on iOS when focusing inputs */
@media screen and (max-width: 767px) {
input,
textarea,
select {
font-size: 16px !important;
/* Prevents iOS zoom */
}
/* Add bottom padding for pages with bottom nav */
.mobile-page-padding {
padding-bottom: 80px;
}
}
/* Fix for virtual keyboard pushing content */
@supports (height: 100dvh) {
.h-screen {
height: 100dvh;
}
}
/* Fix scroll lock when alternating between scrollable areas */
.overflow-y-auto,
.overflow-auto {
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
/* Ensure touch events work properly on mobile nav */
nav,
aside,
.sidebar {
touch-action: pan-y;
}
/* === MOBILE CHAT IMPROVEMENTS === */
/* Chat page fills available space from flex parent, respecting header */
.chat-container {
height: 100%;
/* On mobile, use dynamic viewport for keyboard handling */
}
@media screen and (max-width: 767px) {
.chat-container {
height: 100dvh;
height: calc(100vh - 64px - 56px);
/* Subtract mobile header and bottom nav */
}
}
/* Mobile chat list improvements */
@media screen and (max-width: 767px) {
/* Compact sidebar on mobile */
.sidebar {
width: 100% !important;
max-width: none !important;
}
/* Chat header more compact */
.chat-header {
padding: 12px 16px !important;
}
/* Leads list items - larger touch targets */
.lead-item {
min-height: 64px;
padding: 12px 16px;
}
/* Message input area - fixed at bottom */
.message-input-container {
position: sticky;
bottom: 0;
background: var(--surface);
padding-bottom: env(safe-area-inset-bottom, 12px);
border-top: 1px solid var(--border);
}
/* AI summary drawer - full width on small screens */
.ai-summary-drawer {
width: 100% !important;
max-width: 100vw !important;
border-radius: 24px 24px 0 0 !important;
}
}
/* Aurora palette improvements for better contrast */
.text-slate-400 {
color: var(--text-secondary) !important;
}
.text-slate-500 {
color: var(--text-muted) !important;
}
.text-slate-600 {
color: var(--text-dim) !important;
}
.bg-slate-800 {
background-color: var(--surface-elevated) !important;
}
.bg-slate-900 {
background-color: var(--surface) !important;
}
/* Gradient accents matching landing page */
.aurora-gradient-text {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.aurora-gradient-bg {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}
/* Custom scrollbar matching Aurora theme */
.custom-scrollbar::-webkit-scrollbar {
width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 2px;
opacity: 0.5;
}
/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
@keyframes voice-wave {
0%,
100% {
transform: scaleY(1);
}
50% {
transform: scaleY(1.5);
}
}
.animate-voice-wave {
animation: voice-wave 1s infinite ease-in-out;
}
button,
a,
.clickable {
min-height: 44px;
min-width: 44px;
}
/* Exclude Radix Switch from min-width rule - it has its own sizing */
button[role="switch"] {
min-height: auto !important;
height: 24px !important;
min-width: 44px !important;
width: 44px !important;
aspect-ratio: 44/24 !important;
flex-shrink: 0 !important;
}
}