@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --accent: #22d3ee;
    --background: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-light: rgba(51, 65, 85, 0.5);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius: 12px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('marketing_agency_crm_bg_1778747597424.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 10px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--surface-light);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
p { color: var(--text-muted); line-height: 1.6; }

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 5rem; /* Space for mobile nav */
}

/* Mobile Nav */
.bottom-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    height: 4rem;
    border-radius: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-lead { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.badge-hot { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.badge-client { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-primary { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 2000;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    background: var(--background);
    border-top: 1px solid var(--glass-border);
    border-radius: 2rem 2rem 0 0;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.desktop-only { display: none; }

@media (min-width: 1024px) {
    .desktop-only { display: block; }
    .container {
        padding-left: 280px;
        padding-bottom: 2rem;
    }
    .bottom-nav {
        flex-direction: column;
        height: 100vh;
        width: 260px;
        left: 0;
        bottom: 0;
        top: 0;
        border-radius: 0 2rem 2rem 0;
        justify-content: flex-start;
        padding-top: 5rem;
        gap: 1rem;
        transform: none;
    }
    .nav-item {
        width: 100%;
        padding: 1.5rem;
        flex-direction: row;
        gap: 1rem;
        font-size: 1rem;
        border-radius: 0 1rem 1rem 0;
    }
    .nav-item i { margin-bottom: 0; }
    .nav-item.active {
        background: var(--surface-light);
        border-left: 4px solid var(--primary);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.5s ease forwards;
}

/* Lead Timeline */
.timeline {
    margin-top: 1.5rem;
}

.timeline-item {
    border-left: 2px solid var(--glass-border);
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
