/* LeadPulse CRM Design System & Premium Aesthetics */

/* Typography & Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Harmonious Premium Palette */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    /* Core Branding Colors (Deep Indigo & Energetic Teal) */
    --color-brand-50: #eef2ff;
    --color-brand-100: #e0e7ff;
    --color-brand-500: #6366f1;
    --color-brand-600: #4f46e5;
    --color-brand-700: #4338ca;
    
    --color-emerald-50: #ecfdf5;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    
    --color-teal-400: #2dd4bf;
    --color-teal-500: #14b8a6;
    
    --color-amber-500: #f59e0b;
    --color-rose-500: #f43f5e;

    /* Semantic Blends & Glows */
    --shadow-premium: 0 10px 30px -10px rgba(79, 70, 229, 0.15), 0 1px 3px rgba(0,0,0,0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
    --border-glass-dark: 1px solid rgba(255, 255, 255, 0.06);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    font-family: var(--font-primary);
    background-color: var(--color-slate-50);
    color: var(--color-slate-800);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass-dark);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.08), 0 4px 20px 0 rgba(0, 0, 0, 0.03);
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(99, 102, 241, 0.2);
    }
}

@keyframes pulseSuccess {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 16px 4px rgba(16, 185, 129, 0.2);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.glow-brand {
    animation: pulseGlow 3s infinite;
}

/* Premium Buttons & Interactive States */
.btn-premium {
    background: linear-gradient(135deg, var(--color-brand-500) 0%, var(--color-brand-600) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, var(--color-brand-600) 0%, var(--color-brand-700) 100%);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-secondary-premium {
    background: white;
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-200);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.btn-secondary-premium:hover {
    background: var(--color-slate-50);
    border-color: var(--color-slate-300);
    color: var(--color-slate-900);
}

/* Gradient Texts & Accent Elements */
.gradient-text {
    background: linear-gradient(135deg, var(--color-slate-900) 30%, var(--color-brand-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
    background: linear-gradient(135deg, var(--color-brand-500) 0%, var(--color-teal-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Table Enhancements */
.premium-table-row {
    transition: var(--transition-smooth);
}

.premium-table-row:hover {
    background-color: rgba(99, 102, 241, 0.035) !important;
}

/* Custom Status Dot Glows */
.status-glow-new {
    background-color: var(--color-brand-500);
    box-shadow: 0 0 8px var(--color-brand-500);
}
.status-glow-contacted {
    background-color: var(--color-amber-500);
    box-shadow: 0 0 8px var(--color-amber-500);
}
.status-glow-converted {
    background-color: var(--color-emerald-500);
    box-shadow: 0 0 8px var(--color-emerald-500);
}
.status-glow-disqualified {
    background-color: var(--color-rose-500);
    box-shadow: 0 0 8px var(--color-rose-500);
}

/* Premium Sidebar Hover Indicator */
.sidebar-item {
    position: relative;
    transition: var(--transition-smooth);
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background-color: var(--color-teal-400);
    border-radius: 0 4px 4px 0;
    transition: var(--transition-smooth);
    transform-origin: center left;
}

.sidebar-item.active::before,
.sidebar-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}
