/* ==========================================================================
   PRIAN CRM - VIBRANT & ULTRA-MODERN WORKSPACE STYLESHEET
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    
    --brand-blue: #3b82f6;
    --brand-orange: #ff8a0a;
    --brand-teal: #06b6d4;
    --brand-emerald: #10b981;
    --brand-purple: #8b5cf6;
    
    --bg-main: #f5f7fc;
    --bg-sidebar: #0f172a;
    --border-color: #e2e8f0;
    --sidebar-width: 256px;
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --border-radius-lg: 18px;
    
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.09), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Base Adjustments */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 9999;
    background: #ffffff;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

.muted {
    color: var(--text-secondary);
    font-size: 13px;
}

.eyebrow {
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SIDEBAR (RICH COLORFUL THEME)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(175deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 16px 14px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sidebar-brand img {
    width: 100%;
    max-height: 42px;
    object-fit: contain;
    display: block;
}

.workspace-switch {
    margin: 0 16px 18px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #f1f5f9;
}

.workspace-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
}

.workspace-switch strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.workspace-switch small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
}

.nav-caption {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0 22px;
    margin-bottom: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu-item a svg {
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Individual Sidebar Colorful Icons */
.sidebar-menu-item a.nav-dashboard svg { color: #60a5fa; }
.sidebar-menu-item a.nav-leads svg { color: #fb923c; }
.sidebar-menu-item a.nav-internships svg { color: #34d399; }
.sidebar-menu-item a.nav-payments svg { color: #c084fc; }
.sidebar-menu-item a.nav-followups svg { color: #fbbf24; }
.sidebar-menu-item a.nav-import svg { color: #22d3ee; }
.sidebar-menu-item a.nav-users svg { color: #f472b6; }
.sidebar-menu-item a.nav-logout svg { color: #f87171; }

.sidebar-menu-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.sidebar-menu-item a:hover svg {
    transform: scale(1.18);
    filter: drop-shadow(0 0 6px currentColor);
}

.sidebar-menu-item.active a {
    color: #ffffff;
    background: linear-gradient(110deg, #4f46e5 0%, #3b82f6 100%);
    border-left: 3px solid #ff9b2c;
    padding-left: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.sidebar-menu-item.active a svg {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-footer .status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.sidebar-footer small {
    margin-left: auto;
    color: #64748b;
    font-size: 10px;
}

/* ==========================================================================
   TOP HEADER BAR & ENHANCED GLOBAL CONTROLS
   ========================================================================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 18px;
    position: relative;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.page-title {
    display: flex;
    flex-direction: column;
}

.header-breadcrumb {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-breadcrumb span {
    color: #94a3b8;
}

.header-status-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    background: #ecfdf5;
    color: #059669 !important;
    border-radius: 10px;
    font-size: 9.5px !important;
    font-weight: 700;
    border: 1px solid #a7f3d0;
    margin-left: 4px;
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.page-title h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0;
}

/* Center: Universal Global Search Bar */
.header-center {
    flex: 1;
    max-width: 460px;
    margin: 0 8px;
}

.global-search-container {
    position: relative;
    width: 100%;
}

.global-search-input {
    width: 100%;
    height: 38px;
    padding: 8px 68px 8px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
    box-sizing: border-box;
}

.global-search-input:focus {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15);
}

.global-search-input::placeholder {
    color: #94a3b8;
    font-size: 12px;
}

.global-search-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    pointer-events: none;
    font-family: inherit;
}

.clear-search-btn {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

.clear-search-btn:hover {
    color: #0f172a;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}

.search-group-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    padding: 8px 10px 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.search-item-link:hover, .search-item-link.active {
    background: #f1f5f9;
}

.search-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.search-item-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.search-empty-state {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 12.5px;
}

/* Right: Quick Actions, Notifications & Profile */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Quick Create Button & Menu */
.quick-create-wrapper {
    position: relative;
}

.quick-create-trigger {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    border-radius: 20px;
    padding: 7px 14px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-create-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.38);
}

.quick-create-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    z-index: 1000;
    padding: 8px;
}

.quick-create-menu.show {
    display: block;
}

.quick-menu-header {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #94a3b8;
    padding: 6px 10px 4px;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.quick-menu-item:hover {
    background: #f8fafc;
}

.quick-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.quick-item-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.quick-item-desc {
    font-size: 10.5px;
    color: #64748b;
}

/* Notification Button */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #64748b;
    text-decoration: none;
    position: relative;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-xs);
}

.header-icon-btn:hover {
    background: #f8fafc;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 1.5px solid #ffffff;
}

.header-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 12px 3px 3px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.user-profile:hover {
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.user-info {
    line-height: 1.2;
}

.user-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-role {
    font-size: 9.5px;
    font-weight: 700;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu {
    display: none;
}

/* Lead Cockpit Grid Responsive */
.lead-cockpit-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .lead-cockpit-grid {
        grid-template-columns: 1fr !important;
    }
    .header-center {
        display: none;
    }
}

/* ==========================================================================
   DASHBOARD HERO & VIBRANT WIDGETS
   ========================================================================== */
.dashboard-welcome {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 48%, #fff7ed 100%);
    border: 1px solid #e0e7ff;
    border-radius: var(--border-radius-lg);
    padding: 30px 34px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -80px;
    right: 140px;
    pointer-events: none;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -40px;
    right: 40px;
    pointer-events: none;
}

.dashboard-welcome h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin: 6px 0 8px;
}

.dashboard-welcome h2 > span {
    color: #ff8a0a;
}

.dashboard-welcome .eyebrow {
    color: #4f46e5;
}

.dashboard-welcome p {
    font-size: 13.5px;
    color: #556481;
}

.dashboard-welcome .btn {
    padding: 12px 22px;
    font-size: 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Priority Action Cards (Vibrant Compact Trio) */
.priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.priority-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}

.priority-link:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}

.priority-link:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    border-color: #fed7aa;
}

.priority-link:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

.priority-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.priority-link:nth-child(1):hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}
.priority-link:nth-child(2):hover {
    border-color: #fb923c;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.12);
}
.priority-link:nth-child(3):hover {
    border-color: #34d399;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.12);
}

.priority-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.priority-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}
.priority-icon.amber {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
    border: 1px solid #fdba74;
}
.priority-icon.mint {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border: 1px solid #6ee7b7;
}

.priority-link:nth-child(1) strong { color: #1d4ed8; }
.priority-link:nth-child(2) strong { color: #c2410c; }
.priority-link:nth-child(3) strong { color: #047857; }

.priority-link div span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-link strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 1px 0 2px;
    font-family: var(--font-heading);
}

.priority-link small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.link-arrow {
    margin-left: auto;
    font-size: 17px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    font-weight: 700;
}

.priority-link:hover .link-arrow {
    transform: translate(3px, -3px);
}

.priority-link:nth-child(1):hover .link-arrow { color: #2563eb; }
.priority-link:nth-child(2):hover .link-arrow { color: #ea580c; }
.priority-link:nth-child(3):hover .link-arrow { color: #059669; }

/* Section Headings & Segmented Switcher */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}

.section-heading h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.segmented-control {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: #eef2f6;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    gap: 4px;
}

.segmented-control a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-control a:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.segmented-control a.selected {
    background: #ffffff;
    color: #4f46e5;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Overview & Metrics KPI Grid (Compact & Sleek Multi-Gradient Accent Cards) */
.overview-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.overview-grid .metric-card,
.metrics-grid .metric-card {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    min-height: 108px;
}

.overview-grid .metric-card:nth-child(1),
.metrics-grid .metric-card:nth-child(1) {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-top: 3.5px solid #4f46e5;
    border-color: #bfdbfe;
}

.overview-grid .metric-card:nth-child(2),
.metrics-grid .metric-card:nth-child(2) {
    background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
    border-top: 3.5px solid #f59e0b;
    border-color: #fde68a;
}

.overview-grid .metric-card:nth-child(3),
.metrics-grid .metric-card:nth-child(3) {
    background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%);
    border-top: 3.5px solid #10b981;
    border-color: #a7f3d0;
}

.overview-grid .metric-card:nth-child(4),
.metrics-grid .metric-card:nth-child(4) {
    background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
    border-top: 3.5px solid #8b5cf6;
    border-color: #ddd6fe;
}

.overview-grid .metric-card:hover,
.metrics-grid .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.metric-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-symbol {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.overview-grid .metric-card:nth-child(1) .metric-symbol { background: #e0e7ff; color: #4338ca; }
.overview-grid .metric-card:nth-child(2) .metric-symbol { background: #fef3c7; color: #b45309; }
.overview-grid .metric-card:nth-child(3) .metric-symbol { background: #d1fae5; color: #047857; }

.metric-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin: 6px 0 4px;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.metric-value small {
    font-size: 14px;
    font-weight: 700;
}

.metric-footer {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

/* Colorful Midnight Collection Card */
.collection-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
    border-color: #4338ca !important;
    color: #ffffff !important;
    text-decoration: none;
    border-top: 3.5px solid #a5b4fc !important;
    box-shadow: 0 3px 12px rgba(49, 46, 129, 0.2) !important;
}

.collection-card:hover {
    box-shadow: 0 8px 20px rgba(49, 46, 129, 0.3) !important;
}

.collection-card .metric-label {
    color: #c7d2fe;
}

.collection-card .metric-value {
    color: #ffffff;
}

.collection-card .metric-footer {
    color: #a5b4fc;
}

.collection-card .metric-symbol {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Dashboard Columns */
.dashboard-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.pipeline-card {
    border-top: 3.5px solid #6366f1;
}

.agenda-card {
    border-top: 3.5px solid #f59e0b;
}

.pipeline-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0 18px;
}

.pipeline-total strong {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
}

.pipeline-total span {
    font-size: 12px;
    color: var(--text-muted);
}

.pipeline-row {
    display: grid;
    grid-template-columns: 90px 1fr 30px;
    gap: 14px;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid #f1f5f9;
}

.pipeline-row:last-child {
    border-bottom: none;
}

.pipeline-row strong {
    text-align: right;
    color: var(--text-primary);
    font-weight: 700;
}

.bar-track {
    height: 14px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
    transition: width 0.4s ease;
}

.stage-new { background: linear-gradient(90deg, #818cf8, #6366f1); }
.stage-contacted { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.stage-proposal { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.stage-negotiating { background: linear-gradient(90deg, #fb923c, #ea580c); }
.stage-won, .stage-enrolled, .stage-completed { background: linear-gradient(90deg, #34d399, #10b981); }
.stage-lost, .stage-rejected { background: linear-gradient(90deg, #f87171, #ef4444); }
.stage-shortlisted { background: linear-gradient(90deg, #f472b6, #db2777); }

/* Agenda List Widget */
.agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 8px;
    text-align: center;
    padding: 6px 10px;
    min-width: 44px;
    flex-shrink: 0;
}

.agenda-date strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.agenda-date span {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: #d97706;
}

.agenda-item div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.agenda-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.agenda-item p {
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 1px;
}

.agenda-item small {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Activity Feed */
.activity-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.activity-row a {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.activity-row p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 3px 0;
    line-height: 1.45;
}

.activity-row small {
    font-size: 10.5px;
    color: var(--text-muted);
}

.source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.source-row:last-child {
    border-bottom: none;
}

.source-row:nth-child(3n) .status-dot { background: #f59e0b; }
.source-row:nth-child(3n+1) .status-dot { background: #4f46e5; }
.source-row:nth-child(3n+2) .status-dot { background: #06b6d4; }

.source-row strong {
    margin-left: auto;
    font-weight: 700;
    color: var(--text-primary);
}

.source-row .muted {
    font-size: 11px;
    min-width: 32px;
    text-align: right;
}

.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

/* ==========================================================================
   TOOLBAR & FILTER BAR
   ========================================================================== */
.toolbar {
    background: #ffffff;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-left: 3.5px solid #4f46e5;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-chip {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.filter-details summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 12.5px;
    padding: 6px 0;
}

/* ==========================================================================
   REGISTER LEAD BUTTON & ULTRA-MODERN WIZARD MODAL
   ========================================================================== */
.btn-register-lead {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-register-lead:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

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

.btn-register-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

#addLeadModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#addLeadModal .modal-content,
.modern-lead-modal {
    max-width: 740px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #ffffff;
    overflow: hidden;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    color: #ffffff;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header-hero .modal-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.modal-header-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(165, 180, 252, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-header-hero p {
    color: #cbd5e1;
    font-size: 12px;
    margin: 4px 0 0 50px;
}

.modal-header-hero .modal-close {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-header-hero .modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

/* Wizard Step Tracker */
.lead-wizard-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8faff;
    border-bottom: 1.5px solid #e2e8f0;
}

.wizard-step-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.wizard-step-btn:hover {
    background: #eef2ff;
}

.wizard-step-btn .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wizard-step-btn .step-text strong {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.25;
    transition: color 0.2s ease;
}

.wizard-step-btn .step-text small {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
}

.wizard-step-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.wizard-step-btn.active .step-num {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.45);
}

.wizard-step-btn.active .step-text strong {
    color: #4f46e5;
    font-weight: 800;
}

.wizard-step-btn.completed .step-num {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.wizard-step-divider {
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Wizard Step Banner Cards */
.wizard-banner {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-banner.step1-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.wizard-banner.step2-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.wizard-banner.step3-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.wizard-banner-title {
    font-size: 12.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-banner-desc {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 1px;
}

/* Wizard Panes */
.wizard-pane {
    display: none;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-pane.active {
    display: block;
}

/* Visual Pill Radio Selectors */
.pill-selector-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pill-option {
    position: relative;
    cursor: pointer;
}

.pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-option .pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    transition: all 0.18s ease;
    user-select: none;
}

.pill-option .pill-label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
}

.pill-option input[type="radio"]:checked + .pill-label {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4338ca;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.pill-option.stage-new input[type="radio"]:checked + .pill-label { border-color: #6366f1; background: #eef2ff; color: #4338ca; box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2); }
.pill-option.stage-contacted input[type="radio"]:checked + .pill-label { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2); }
.pill-option.stage-proposal input[type="radio"]:checked + .pill-label { border-color: #f59e0b; background: #fffbeb; color: #b45309; box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2); }
.pill-option.stage-negotiating input[type="radio"]:checked + .pill-label { border-color: #ea580c; background: #fff7ed; color: #c2410c; box-shadow: 0 3px 10px rgba(234, 88, 12, 0.2); }
.pill-option.stage-won input[type="radio"]:checked + .pill-label { border-color: #10b981; background: #ecfdf5; color: #047857; box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25); }
.pill-option.stage-lost input[type="radio"]:checked + .pill-label { border-color: #ef4444; background: #fef2f2; color: #b91c1c; box-shadow: 0 3px 10px rgba(239, 68, 68, 0.2); }

.pill-option.prio-high input[type="radio"]:checked + .pill-label { border-color: #ef4444; background: #fef2f2; color: #b91c1c; box-shadow: 0 3px 10px rgba(239, 68, 68, 0.2); }
.pill-option.prio-medium input[type="radio"]:checked + .pill-label { border-color: #f59e0b; background: #fffbeb; color: #b45309; box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2); }
.pill-option.prio-low input[type="radio"]:checked + .pill-label { border-color: #10b981; background: #ecfdf5; color: #047857; box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25); }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.input-with-addon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-addon {
    position: absolute;
    left: 12px;
    color: #059669;
    font-weight: 800;
    font-size: 15px;
    pointer-events: none;
}

.input-with-addon .form-control {
    padding-left: 32px;
}

/* ==========================================================================
   KANBAN BOARD (ULTRA-COLORFUL DISTINCT STAGES)
   ========================================================================== */
.kanban-view {
    display: grid;
    grid-template-columns: repeat(6, minmax(265px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 24px;
    align-items: start;
}

.kanban-column {
    border-radius: var(--border-radius);
    padding: 14px;
    min-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e2e8f0;
    border-top: 4px solid #cbd5e1;
    transition: all 0.2s ease;
}

.kanban-column[data-status="new"] {
    border-top-color: #6366f1;
    background: linear-gradient(180deg, #eef2ff 0%, #f8faff 25%, #f1f5f9 100%);
    border-color: #c7d2fe;
}

.kanban-column[data-status="contacted"] {
    border-top-color: #3b82f6;
    background: linear-gradient(180deg, #eff6ff 0%, #f8faff 25%, #f1f5f9 100%);
    border-color: #bfdbfe;
}

.kanban-column[data-status="proposal"] {
    border-top-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fffdf5 25%, #f1f5f9 100%);
    border-color: #fde68a;
}

.kanban-column[data-status="negotiating"] {
    border-top-color: #ea580c;
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 25%, #f1f5f9 100%);
    border-color: #fed7aa;
}

.kanban-column[data-status="won"] {
    border-top-color: #10b981;
    background: linear-gradient(180deg, #ecfdf5 0%, #f4fdf8 25%, #f1f5f9 100%);
    border-color: #a7f3d0;
}

.kanban-column[data-status="lost"],
.kanban-column[data-status="rejected"] {
    border-top-color: #ef4444;
    background: linear-gradient(180deg, #fef2f2 0%, #fff7f7 25%, #f1f5f9 100%);
    border-color: #fecaca;
}

.kanban-column[data-status="shortlisted"] {
    border-top-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fffdf5 25%, #f1f5f9 100%);
    border-color: #fde68a;
}

.kanban-column[data-status="enrolled"] {
    border-top-color: #0284c7;
    background: linear-gradient(180deg, #f0f9ff 0%, #f7fbff 25%, #f1f5f9 100%);
    border-color: #bae6fd;
}

.kanban-column[data-status="completed"] {
    border-top-color: #10b981;
    background: linear-gradient(180deg, #ecfdf5 0%, #f4fdf8 25%, #f1f5f9 100%);
    border-color: #a7f3d0;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kanban-column-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.kanban-card-count {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.kanban-card {
    background: #ffffff;
    border-radius: 11px;
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid #6366f1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kanban-column[data-status="new"] .kanban-card { border-left-color: #6366f1; }
.kanban-column[data-status="contacted"] .kanban-card { border-left-color: #3b82f6; }
.kanban-column[data-status="proposal"] .kanban-card { border-left-color: #f59e0b; }
.kanban-column[data-status="negotiating"] .kanban-card { border-left-color: #ea580c; }
.kanban-column[data-status="won"] .kanban-card { border-left-color: #10b981; }
.kanban-column[data-status="lost"] .kanban-card { border-left-color: #ef4444; }
.kanban-column[data-status="shortlisted"] .kanban-card { border-left-color: #f59e0b; }
.kanban-column[data-status="enrolled"] .kanban-card { border-left-color: #0284c7; }
.kanban-column[data-status="completed"] .kanban-card { border-left-color: #10b981; }
.kanban-column[data-status="rejected"] .kanban-card { border-left-color: #ef4444; }

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card-title a {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.kanban-card-title a:hover {
    color: var(--primary);
}

.kanban-card-company {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 10px;
    font-weight: 500;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.kanban-card-value {
    font-weight: 800;
    color: #4338ca;
    font-size: 13px;
    font-family: var(--font-heading);
}

/* ==========================================================================
   RECORD SUMMARY HERO & DETAIL PAGES
   ========================================================================== */
.record-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 50%, #fff7ed 100%);
    border: 1px solid #e0e7ff;
    border-top: 3.5px solid #4f46e5;
    border-radius: var(--border-radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.record-summary h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin: 2px 0 3px;
}

.record-summary p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.account-totals {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    margin: 14px -28px -24px;
    padding: 16px 24px;
    background: #f8faff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.account-totals > div {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.account-totals > div:nth-child(1) { border-left: 3.5px solid #6366f1; background: linear-gradient(145deg, #ffffff 0%, #f5f6ff 100%); }
.account-totals > div:nth-child(2) { border-left: 3.5px solid #10b981; background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%); }
.account-totals > div:nth-child(3) { border-left: 3.5px solid #f59e0b; background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%); }
.account-totals > div:nth-child(4) { border-left: 3.5px solid #8b5cf6; background: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%); }

.account-totals span {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-totals strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-top: 3px;
    font-family: var(--font-heading);
}

.account-totals div:nth-child(2) strong { color: #047857; }
.account-totals div:nth-child(3) strong { color: #b45309; }

/* Detail Tabs - Ultra Modern & Colourful */
.detail-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.detail-tabs button {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border-radius: 9px 9px 0 0;
}

.detail-tabs button:hover {
    color: var(--primary);
    background: #eef2ff;
    border-color: #c7d2fe;
}

.detail-tabs button[aria-selected="true"] {
    color: #4338ca;
    border-color: #c7d2fe;
    border-bottom: 3px solid #4f46e5;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 -2px 8px rgba(79, 70, 229, 0.08);
}

.detail-layout.enhanced {
    display: block !important;
}

.profile-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #dbeafe;
    border-left: 4px solid #4f46e5;
    border-radius: 12px;
    padding: 22px;
    margin: 16px 0 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-snapshot dt {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6366f1;
}

.profile-snapshot dd {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   FOLLOW-UPS & TASKS (VIBRANT THEMES)
   ========================================================================== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4.5px solid #4f46e5;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.task-item.overdue {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fff5f5 0%, #fff7ed 100%);
    border-color: #fecaca;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.08);
}

.task-item a strong {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 800;
}

.task-item a:hover strong {
    color: var(--primary);
}

.task-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.task-item time {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   ACTIVITY TIMELINE & NOTES
   ========================================================================== */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 8px;
    margin-top: 14px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 17px;
    width: 2px;
    background: linear-gradient(180deg, #818cf8 0%, #c7d2fe 50%, #e2e8f0 100%);
}

.timeline-item {
    position: relative;
    padding-left: 38px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
    border: 3px solid #e0e7ff;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
    z-index: 2;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.timeline-user {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.timeline-content {
    background: #f8faff;
    border: 1px solid #e0e7ff;
    border-left: 3px solid #6366f1;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   IMPORT LEADS STEPS & HIGHLIGHTS
   ========================================================================== */
.import-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    gap: 8px;
    flex-wrap: wrap;
}

.import-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.import-steps span:nth-child(1) { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
.import-steps span:nth-child(2) { color: #0891b2; background: #ecfeff; border-color: #a5f3fc; }
.import-steps span:nth-child(3) { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.import-steps span:nth-child(4) { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

/* ==========================================================================
   PAGINATION & NOTICES (COLOURFUL TOASTS)
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.notice {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-left: 4.5px solid #4f46e5;
    color: #3730a3;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 22px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}

/* ==========================================================================
   LOGIN SCREEN (SPLIT SAAS DESIGN)
   ========================================================================== */
.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: linear-gradient(140deg, #f7f8ff 0%, #fff7ed 100%);
    padding: 0;
}

.login-intro {
    min-height: 100vh;
    background: linear-gradient(150deg, #19254c 0%, #1c2468 48%, #2e35a6 100%);
    color: #ffffff;
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-intro::before {
    content: '';
    width: 400px;
    height: 400px;
    border: 80px solid rgba(255, 173, 71, 0.08);
    border-radius: 50%;
    position: absolute;
    right: -180px;
    top: -100px;
    pointer-events: none;
}

.login-intro .eyebrow {
    color: #ffbe6e;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.login-intro h1 {
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.login-intro h1 span {
    color: #ffad45;
}

.login-intro p {
    font-size: 14px;
    line-height: 1.8;
    color: #c7d2fe;
    max-width: 400px;
    margin: 20px 0 36px;
}

.login-feature {
    font-size: 13px;
    color: #e0e7ff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-feature span {
    color: #ffb453;
    font-weight: 700;
    font-size: 11px;
}

.login-intro > small {
    margin-top: 48px;
    color: #9faada;
    font-size: 11px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    align-self: center;
    justify-self: center;
    padding: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.login-logo {
    margin-bottom: 30px;
}

.login-brand-image {
    max-width: 220px;
    height: auto;
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .account-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 18px 16px 36px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .mobile-menu {
        display: inline-flex;
    }
    
    .top-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .header-date {
        display: none;
    }
    
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    
    .dashboard-welcome h2 {
        font-size: 24px;
    }
    
    .priority-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-row-2, .form-row-3, .quick-fields {
        grid-template-columns: 1fr !important;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .profile-snapshot {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-intro {
        display: none;
    }
    
    .login-card {
        padding: 24px;
        max-width: 100%;
    }
}

/* ==========================================================================
   EMAIL APP CHOOSER MODAL (STATE OF THE ART)
   ========================================================================== */
.email-chooser-dialog {
    max-width: 490px !important;
    width: 92% !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    border: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.email-chooser-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-chooser-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.email-chooser-close {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.email-chooser-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

.email-option-card {
    display: grid !important;
    grid-template-columns: 44px 1fr 20px !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    text-align: left !important;
    width: 100% !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.email-option-card:hover {
    border-color: #6366f1 !important;
    background: #f8faff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12) !important;
}

.email-option-card:hover .email-option-arrow {
    stroke: #4f46e5 !important;
    transform: translateX(3px) !important;
}

.email-option-card.primary-choice {
    border-color: #c7d2fe !important;
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08) !important;
}

.email-option-card.primary-choice:hover {
    border-color: #4f46e5 !important;
    background: #eef2ff !important;
}

.email-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-option-info {
    min-width: 0;
}

.email-option-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.email-option-title {
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
    line-height: 1.2;
}

.email-option-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.2;
}

.email-option-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-option-arrow {
    stroke: #94a3b8;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* ==========================================================================
   DIRECT IN-APP EMAIL COMPOSER MODAL & TEMPLATE CHIPS
   ========================================================================== */
.direct-email-dialog {
    max-width: 980px !important;
    width: 94% !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 65px -10px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    border: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.email-template-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.email-template-chip {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.email-template-chip:hover {
    background: #e0e7ff;
    color: #4338ca;
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.email-template-chip.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.last-sent-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -0.1px;
}
