/* ============================================================
   GOURISEN SMARTOFFICE - MODERN WIDGET DESIGN SYSTEM
   ============================================================ */

:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --accent-1: #10B981; /* Emerald 500 */
    --accent-2: #34D399; /* Emerald 400 */
    
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -4px rgba(0, 0, 0, 0.12);
    
    --border-subtle: 1px solid rgba(0, 0, 0, 0.04);
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* GLOBAL CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8; 
}

/* NAVBAR */
.navbar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
    border: var(--border-subtle); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; z-index: 100;
    box-shadow: var(--shadow-soft);
}
.nav-logo-img { height: 32px; width: auto; object-fit: contain; }
.brand-text { font-size: 18px; letter-spacing: -0.02em; }

.logo-box {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white; width: 32px; height: 32px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.nav-links { display: flex; gap: 8px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--text-muted); padding: 8px 16px; border-radius: 100px; transition: all 0.2s ease; }
.nav-links a:hover { color: var(--text-main); background-color: rgba(0,0,0,0.04); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-secondary { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-main); padding: 8px 16px; border-radius: 100px; transition: background 0.2s; }
.btn-secondary:hover { background: #F3F4F6; }
.mobile-menu-btn { display: none; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 80px; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text; color: transparent;
}
.badge {
    display: inline-block; padding: 6px 14px; border-radius: 100px;
    background: #F3F4F6; color: var(--text-muted); font-size: 12px; font-weight: 600;
    letter-spacing: 0.05em; margin-bottom: 24px;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--text-main); color: white;
    padding: 14px 28px; border-radius: 100px;
    font-weight: 600; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* HERO */
.hero { position: relative; padding: 180px 0 100px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.hero-bg-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero .subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* WIDGET CLUSTER */
.widget-cluster {
    position: relative; width: 100%; max-width: 900px; height: 400px; margin-top: 60px;
}
.widget {
    position: absolute; background: var(--card-bg); border-radius: 20px;
    box-shadow: var(--shadow-hover); border: var(--border-subtle);
    padding: 20px; transition: transform 0.1s ease-out; text-align: left;
}
.widget-header { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.widget-crm { top: 20px; left: 10%; width: 260px; z-index: 2; }
.widget-task { top: 120px; right: 10%; width: 240px; z-index: 3; }
.widget-wallet { top: 200px; left: 30%; width: 280px; z-index: 1; }

/* Widget Internals */
.pipeline-bar { height: 8px; background: #F3F4F6; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.pipeline-bar .fill { height: 100%; background: var(--accent-1); border-radius: 4px; }
.pipeline-stats { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.positive { color: #10B981; }

.task-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.interactive-task:hover { background: #F9FAFB; cursor: pointer; }
.interactive-task:hover .checkbox { border-color: var(--accent-1); }
.interactive-task:active .checkbox { transform: scale(0.9); }
.checkbox { width: 20px; height: 20px; border: 2px solid #E5E7EB; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: 10px; color: white; transition: all 0.2s; }
.checkbox.checked { background: #10B981; border-color: #10B981; }
.task-line { height: 8px; width: 100px; background: #E5E7EB; border-radius: 4px; }
.task-line.short { width: 60px; }

.wallet-balance { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.wallet-graph { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.bar { width: 100%; background: #E5E7EB; border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(0.16, 1, 0.3, 1); }
.bar.h-1 { height: 30%; } .bar.h-2 { height: 50%; } .bar.h-3 { height: 70%; }
.bar.h-4 { height: 100%; background: var(--accent-2); }

/* MOBILE NAV OVERLAY */
.mobile-nav-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
    z-index: 1000; display: flex; flex-direction: column; 
    padding: 30px 24px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.active { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-header button { background: #F8FAFC; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--text-main); cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background 0.2s; }
.mobile-nav-header button:active { background: #E2E8F0; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-links a.nav-link { 
    font-size: 24px; font-weight: 600; text-decoration: none; color: var(--text-main); 
    padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.06); background: transparent; 
    display: flex; align-items: center; justify-content: space-between;
    transition: opacity 0.2s;
}
.mobile-nav-links a.nav-link:active { opacity: 0.6; }
.mobile-nav-links a.nav-link i { font-size: 18px; color: var(--text-main); opacity: 0.2; transition: transform 0.2s, opacity 0.2s; }
.mobile-nav-links a.nav-link:active i { transform: translateX(6px); opacity: 0.6; }
body.no-scroll { overflow: hidden; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 100px; }
.col-span-2 { grid-column: span 2; }
.col-span-1 { grid-column: span 1; }

.bento-card {
    background: var(--card-bg); border-radius: var(--radius-xl); border: var(--border-subtle);
    padding: 40px; box-shadow: var(--shadow-soft); overflow: hidden; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bento-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-hover);
}
.bento-icon {
    width: 48px; height: 48px; background: #F3F4F6; border-radius: 12px;
    display: flex; justify-content: center; align-items: center; font-size: 20px;
    color: var(--text-main); margin-bottom: 20px; transition: background 0.3s, color 0.3s;
}
.bento-card:hover .bento-icon { background: var(--accent-1); color: white; }
.bento-content h3 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.02em; }
.bento-content p { color: var(--text-muted); font-size: 15px; max-width: 280px; }

/* Bento Visuals */
.bento-visual { position: absolute; bottom: 0; right: 0; width: 60%; height: 60%; display: flex; justify-content: flex-end; align-items: flex-end; padding: 20px; pointer-events: none; }
.kanban-board { display: flex; gap: 12px; transform: rotate(-5deg) translateY(20px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card:hover .kanban-board { transform: rotate(0) translateY(0); }
.kanban-col { background: #F3F4F6; padding: 12px; border-radius: 12px; width: 100px; display: flex; flex-direction: column; gap: 8px; }
.k-card { height: 40px; background: white; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.shadow-card { opacity: 0.5; border: 2px dashed #CBD5E1; box-shadow: none; background: transparent; }

.scanner { width: 120px; height: 120px; background: #F3F4F6; border-radius: 20px; display: flex; justify-content: center; align-items: center; font-size: 40px; color: #CBD5E1; position: relative; overflow: hidden; transform: translateX(20px); transition: transform 0.5s; }
.bento-card:hover .scanner { transform: translateX(0); }
.scan-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: scan 2s infinite ease-in-out; opacity: 0; }
.bento-card:hover .scan-line { opacity: 1; }
@keyframes scan { 0% { top: 10%; } 50% { top: 90%; } 100% { top: 10%; } }

.ticket { width: 140px; height: 80px; background: #F3F4F6; border-radius: 12px; position: relative; padding: 16px; transform: translateY(30px); transition: transform 0.5s; }
.bento-card:hover .ticket { transform: translateY(0) rotate(-5deg); }
.t-hole { position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; left: -8px; }
.t-hole.top { top: 16px; } .t-hole.bot { bottom: 16px; }
.t-line { height: 6px; width: 80%; background: #E5E7EB; border-radius: 4px; margin-bottom: 8px; }
.t-line.short { width: 50%; }

.avatars { display: flex; transform: translateX(20px); transition: transform 0.5s; }
.bento-card:hover .avatars { transform: translateX(0); }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 4px solid white; margin-left: -16px; background-size: cover; background-position: center; }
.avatar.a1 { background-color: #FCA5A5; z-index: 3; }
.avatar.a2 { background-color: #FCD34D; z-index: 2; }
.avatar.a3 { background-color: #6EE7B7; z-index: 1; }
.avatar.a-join { background-color: #F3F4F6; display: flex; justify-content: center; align-items: center; color: var(--text-muted); font-weight: 800; z-index: 0; }

/* CTA BANNER */
.cta-banner {
    position: relative; background: var(--text-main); color: white;
    border-radius: var(--radius-xl); padding: 80px 40px; text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner h2 { font-size: 40px; margin-bottom: 16px; position: relative; z-index: 1; letter-spacing: -0.04em; font-weight: 800; }
.cta-banner p { color: #9CA3AF; margin-bottom: 32px; font-size: 18px; position: relative; z-index: 1; }
.cta-banner .btn-primary { background: white; color: var(--text-main); position: relative; z-index: 1; transition: transform 0.2s; }
.cta-banner .btn-primary:hover { transform: translateY(-3px) scale(1.02); }

/* FOOTER */
.footer { padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.05); color: var(--text-muted); font-size: 14px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-1) !important; }

/* LOGIN PAGE & HAMBURGER MENU */
.login-menu-container { position: absolute; top: 24px; right: 24px; z-index: 1000; }
.hamburger-btn { background: white; border: 1px solid rgba(0,0,0,0.1); width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: all 0.2s; }
.hamburger-btn:hover { background: #F8FAFC; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.login-dropdown-menu { position: absolute; top: 60px; right: 0; background: white; width: 260px; border-radius: 16px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.06); padding: 12px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.login-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.login-dropdown-menu .menu-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 16px 12px; font-weight: 700; color: var(--text-main); border-bottom: 1px solid #F1F5F9; margin-bottom: 8px; font-size: 16px; }
.login-dropdown-menu .menu-header button { background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 16px; }
.login-dropdown-menu .menu-header button:hover { color: var(--text-main); }
.login-dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; border-radius: 10px; transition: all 0.2s; }
.login-dropdown-menu a i { width: 16px; text-align: center; color: #94A3B8; font-size: 14px; }
.login-dropdown-menu a:hover { background: #F8FAFC; color: var(--accent-1); }
.login-dropdown-menu a:hover i { color: var(--accent-1); }
.login-dropdown-menu a.danger-link:hover { background: #FEF2F2; color: #EF4444; }
.login-dropdown-menu a.danger-link:hover i { color: #EF4444; }

/* LOGIN PAGE CORE */
.login-page { min-height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; padding: 24px; }
.login-glow { position: fixed; top: 50%; transform: translate(-50%, -50%); opacity: 0.6; width: 800px; height: 800px; z-index: -1; }
.login-container { width: 100%; max-width: 460px; position: relative; z-index: 10; }
.login-card { background: var(--card-bg); padding: 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-hover); border: var(--border-subtle); }
.login-card.p-premium { padding: 48px 40px 48px 40px; position: relative; overflow: hidden; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0,0,0,0.06); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .icon-left { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9CA3AF; transition: color 0.3s; display: flex; align-items: center; justify-content: center; width: 20px; }
.form-input { width: 100%; padding: 14px 16px; border: 2px solid #E5E7EB; border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; outline: none; background: #F9FAFB; color: var(--text-main); box-sizing: border-box; }
.form-input.with-icon { padding-left: 44px; }
.form-input.pr-icon { padding-right: 44px; }
.password-toggle { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9CA3AF; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: color 0.2s; padding: 4px; outline: none; }
.password-toggle:hover { color: var(--text-main); }
.form-input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); background: white; }
textarea.form-input { resize: none !important; overflow-y: auto !important; }
.input-icon-wrapper:focus-within .icon-left { color: var(--accent-1); }
.btn-gradient { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: white; padding: 16px; border-radius: 12px; font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; width: 100%; text-decoration: none; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); }
.forgot-link { font-size: 13px; color: var(--accent-1); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.forgot-link:hover { color: var(--accent-2); }
.login-footer { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-muted); padding-top: 24px; border-top: 1px solid #F3F4F6; }
.login-footer a { color: var(--text-main); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.login-footer a:hover { color: var(--accent-1); }

/* CUSTOM BRAND LOGO */
.custom-brand-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 36px; }
.brand-icon-img { height: 76px; width: auto; object-fit: contain; }
.brand-divider { width: 2px; height: 68px; background-color: #94A3B8; border-radius: 2px; }
.brand-text-container { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.brand-title { font-size: 30px; font-weight: 900; color: #0f172a; line-height: 1; letter-spacing: -0.03em; }
.brand-subtitle { font-size: 30px; font-weight: 900; color: var(--accent-1); line-height: 1; letter-spacing: -0.03em; margin-top: 2px; }
.brand-tagline { display: flex; align-items: center; gap: 8px; margin-top: 6px; width: 100%; }
.brand-tagline .tag-line { height: 2px; width: 24px; background-color: var(--accent-1); border-radius: 2px; }
.brand-tagline .tag-text { font-size: 9.5px; font-weight: 800; color: #64748B; letter-spacing: 0.12em; white-space: nowrap; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .navbar { width: 95%; padding: 10px 16px; }
    .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .col-span-2 { grid-column: span 1; }
    
    .hero { padding: 130px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; padding: 0 10px; }
    
    .widget-cluster { height: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
    .widget { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; max-width: 320px; transform: none !important; }
    
    .bento-card { padding: 30px 24px; min-height: 280px; }
    .bento-content p { max-width: 100%; position: relative; z-index: 2; }
    .bento-visual { width: 100%; opacity: 1; z-index: 1; padding: 20px 24px; }
    
    .cta-banner { padding: 50px 20px; }
    .cta-banner h2 { font-size: 28px; }
    
    .nav-links { display: none; }
    .btn-secondary { display: none; }
    .mobile-menu-btn { display: block; background: none; border: none; font-size: 24px; color: var(--text-main); cursor: pointer; }
}

/* ============================================================
   PREMIUM SIDEBAR APP SHELL LAYOUT
   ============================================================ */
.app-container { display: flex; min-height: 100vh; background-color: var(--bg-color); }
.sidebar {
    width: 280px; background: white; border-right: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column; position: fixed; height: 100vh;
    z-index: 50; transition: transform 0.3s ease;
}
.sidebar-header { padding: 32px 24px 24px; display: flex; align-items: center; gap: 12px; }
.sidebar-logo { height: 32px; width: auto; }
.sidebar-brand { 
    font-size: 20px; font-weight: 800; letter-spacing: -0.02em; 
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.sidebar-nav { padding: 8px 16px; flex: 1; overflow-y: auto; overflow-x: hidden; }

.nav-category { margin-bottom: 8px; }
.category-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; cursor: pointer; border-radius: 12px;
    font-size: 12px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: 0.08em;
    transition: all 0.2s ease;
}
.category-header .menu-icon {
    width: 28px; color: #94A3B8; text-align: left; font-size: 16px; transition: color 0.2s;
}
.category-header .chevron {
    font-size: 12px; color: #CBD5E1; transition: transform 0.3s ease, color 0.2s;
}
.category-header:hover { background: rgba(79, 70, 229, 0.03); color: var(--text-main); }
.category-header:hover .menu-icon { color: var(--accent-1); }
.category-header:hover .chevron { color: #94A3B8; }
.category-header.open { color: var(--accent-1); }
.category-header.open .menu-icon { color: var(--accent-1); }
.category-header.open .chevron { transform: rotate(180deg); color: var(--accent-1); }

.category-links {
    max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0;
    display: flex; flex-direction: column; gap: 4px; 
    margin-left: 28px; padding-left: 16px; border-left: 1px solid #E2E8F0;
}
.nav-category.open .category-links { max-height: 600px; opacity: 1; margin-top: 8px; margin-bottom: 12px; }

.sidebar-link {
    padding: 10px 14px; font-size: 14px; font-weight: 500; border-radius: 10px;
    color: #475569; text-decoration: none; display: block;
    transition: all 0.2s ease; position: relative;
}
.sidebar-link:hover { 
    color: var(--text-main); background: #F1F5F9; transform: translateX(4px);
}
.sidebar-link.active { 
    color: var(--accent-1); background: rgba(79, 70, 229, 0.08); font-weight: 600;
}
.sidebar-link.active::before {
    content: ''; position: absolute; left: -17px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; background: var(--accent-1); border-radius: 4px;
}

.sidebar-footer { padding: 24px; border-top: 1px solid rgba(0,0,0,0.04); }
.logout-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
    color: #EF4444; font-weight: 600; text-decoration: none; font-size: 14px; transition: all 0.2s;
}
.logout-link:hover { background: #FEF2F2; transform: translateY(-2px); }

/* Main Content Area */
.main-content { flex: 1; margin-left: 280px; display: flex; flex-direction: column; min-height: 100vh; }
.top-header {
    height: 80px; background: white; border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex; justify-content: flex-end; align-items: center; padding: 0 40px; position: sticky; top: 0; z-index: 40;
}
.header-profile { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.header-profile .name { display: block; font-weight: 600; font-size: 14px; color: var(--text-main); }
.header-profile .pic { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: white; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 16px; }

/* --- PREMIUM WELCOME HERO --- */
@keyframes floatUp { 0% { transform: translateY(15px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes floatGentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.smart-welcome-hero {
    background: #ffffff;
    border-radius: 26px;
    padding: 32px 40px;
    margin: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: none;
    animation: floatUp 0.6s ease-out forwards;
}

/* Background Decorative Shapes */
.smart-welcome-hero::before {
    content: ''; position: absolute; top: -60px; right: 10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.smart-welcome-hero::after {
    content: ''; position: absolute; bottom: -100px; left: 20%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}

/* Left: Avatar + Text */
.smart-welcome-content {
    display: flex; align-items: center; gap: 24px; z-index: 1; position: relative;
}
.smart-welcome-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white; font-size: 24px; font-weight: 700;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.smart-welcome-avatar:hover { transform: scale(1.08); }
.smart-welcome-text h1 {
    font-size: 32px; font-weight: 800; color: #0f172a;
    margin-bottom: 6px; letter-spacing: -0.01em;
}
.smart-welcome-text p {
    font-size: 15px; color: #64748b; line-height: 1.5; font-weight: 500;
}

/* Right Group (Date + Visual) */
.smart-welcome-right {
    display: flex; align-items: center; gap: 40px; z-index: 1; position: relative;
}

/* Middle: Date */
.smart-welcome-date {
    display: flex; align-items: center; gap: 16px;
    background: #ffffff;
    padding: 16px 24px; border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}
.date-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(79, 70, 229, 0.08); color: var(--accent-1);
    display: flex; justify-content: center; align-items: center; font-size: 18px;
}
.date-info { display: flex; flex-direction: column; }
.date-day { font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.date-full { font-size: 16px; font-weight: 800; color: #0f172a; }

/* Right: Visual Illustration */
.smart-welcome-visual {
    animation: floatGentle 4s ease-in-out infinite;
}
.floating-analytics-card {
    background: white; border-radius: 16px; padding: 16px;
    width: 130px; height: 95px;
    box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.15);
    position: relative; border: 1px solid rgba(0,0,0,0.03);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.chart-line { position: absolute; top: 12px; left: 16px; right: 16px; height: 30px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 32px; gap: 6px; }
.chart-bars span { width: 100%; background: var(--accent-1); border-radius: 4px 4px 0 0; opacity: 0.9; }
.chart-bars span:nth-child(2) { background: var(--accent-2); }
.chart-bars span:nth-child(4) { background: #38bdf8; }
.success-badge {
    position: absolute; top: -10px; right: -10px; width: 26px; height: 26px;
    background: var(--accent-2); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 11px;
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3); border: 2px solid white;
}

.dashboard-body { padding: 0 40px 40px 40px; flex: 1; position: relative; z-index: 10; }

/* Desktop Defaults (Hidden on Desktop) */
.mobile-header-logo { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-sidebar-btn { display: none; background: none; border: none; font-size: 20px; color: var(--text-main); cursor: pointer; }
.mobile-sidebar-close { display: none; }

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); padding-bottom: 64px; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .top-header { justify-content: space-between; padding: 0 24px; }
    .header-profile .name { display: none; }
    
    .mobile-sidebar-close {
        display: flex; align-items: center; justify-content: center;
        background: #F1F5F9; border: none; width: 36px; height: 36px;
        border-radius: 50%; font-size: 16px; color: #64748B; cursor: pointer;
        margin-left: auto; transition: all 0.2s;
    }
    .mobile-sidebar-close:active { background: #E2E8F0; }
    
    /* Tablet Hero */
    .smart-welcome-hero { margin: 16px 0; padding: 20px; gap: 16px; }
    .smart-welcome-right { gap: 20px; }
    .floating-analytics-card { transform: scale(0.85); transform-origin: right center; }
    
    .dashboard-body { padding: 0 16px 24px 16px; }
    
    /* Mobile Bottom Nav Spacing */
    .main-content { padding-bottom: 90px; }
    
    /* Mobile Top Header Logo */
    .mobile-header-logo { display: flex !important; align-items: center; gap: 8px; text-decoration: none; }
    .mobile-header-logo img { height: 26px; }
    .mobile-header-logo span { font-size: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: white; border-top: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
        padding: 8px 16px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
        justify-content: space-between; align-items: center; z-index: 1000;
    }
    .mobile-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; color: #94A3B8; font-size: 10px; font-weight: 700; gap: 6px;
        width: 60px; transition: color 0.2s; border: none; background: transparent; cursor: pointer;
    }
    .mobile-nav-item i { font-size: 20px; }
    .mobile-nav-item.active { color: var(--accent-1); }
    
    .mobile-nav-item.add-lead-btn { position: relative; top: -16px; }
    .mobile-nav-item.add-lead-btn .add-icon-wrapper {
        width: 52px; height: 52px;
        background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
        border-radius: 16px; display: flex; align-items: center; justify-content: center;
        color: white; font-size: 24px; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
        border: 4px solid var(--bg-color); transition: transform 0.2s;
    }
    .mobile-nav-item.add-lead-btn:active .add-icon-wrapper { transform: scale(0.95); }
}
@media (max-width: 850px) {
    .smart-welcome-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
    .smart-welcome-right { width: 100%; justify-content: space-between; gap: 16px; }
    .smart-welcome-content { gap: 16px; }
    .smart-welcome-avatar { width: 56px; height: 56px; font-size: 20px; }
    .smart-welcome-text h1 { font-size: 24px; }
    .smart-welcome-date { width: 100%; justify-content: flex-start; }
    .floating-analytics-card { transform: scale(1); transform-origin: left center; }
}