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

/* Theme: Modern Multi-Theme System */
:root,
[data-theme="dark"] {
    --bg-body: #0b1329;
    --bg-card: rgba(17, 28, 54, 0.8);
    --bg-card-solid: #111c36;
    --bg-card-hover: #172545;
    --bg-surface: #0e182d;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --sidebar-bg-top: #0e1a32;
    --sidebar-bg-bottom: #081020;
    
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --secondary: #60a5fa;
    --accent: #38bdf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sidebar: #cbd5e1;
    --text-sidebar-hover: #ffffff;

    /* Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-sidebar: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 10px 25px rgba(0, 0, 0, 0.45);
    --glass-backdrop: none;

    /* Dimensions */
    --sidebar-width: 280px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Status Colors (Dark Mode) */
    --status-nouveau-bg: rgba(59, 130, 246, 0.15);
    --status-nouveau-text: #93c5fd;
    --status-nouveau-border: rgba(59, 130, 246, 0.3);

    --status-en-cours-bg: rgba(245, 158, 11, 0.15);
    --status-en-cours-text: #fcd34d;
    --status-en-cours-border: rgba(245, 158, 11, 0.3);

    --status-deal-bg: rgba(16, 185, 129, 0.15);
    --status-deal-text: #6ee7b7;
    --status-deal-border: rgba(16, 185, 129, 0.3);

    --status-erreur-bg: rgba(239, 68, 68, 0.15);
    --status-erreur-text: #fca5a5;
    --status-erreur-border: rgba(239, 68, 68, 0.3);

    --status-nrp-bg: rgba(148, 163, 184, 0.15);
    --status-nrp-text: #cbd5e1;
    --status-nrp-border: rgba(148, 163, 184, 0.3);

    /* Legacy Aliases */
    --border-color: var(--border-light);
    --text-secondary: var(--text-muted);
    --text-primary: var(--text-main);
    --card-bg: var(--bg-card);
    --bg-color: var(--bg-body);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-card-solid: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #f8fafc;
    --bg-hover: #f1f5f9;
    --sidebar-bg-top: #1666D7;
    --sidebar-bg-bottom: #1258b8;
    
    --primary: #1666d7;
    --primary-hover: #1258b8;
    --primary-glow: rgba(22, 102, 215, 0.2);
    --secondary: #9ec8ff;
    --accent: #4da3ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sidebar: #d9ebff;
    --text-sidebar-hover: #ffffff;

    --border-light: rgba(203, 213, 225, 0.8);
    --border-sidebar: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 20px 30px rgba(0, 0, 0, 0.12);

    --status-nouveau-bg: #CBDDE9;
    --status-nouveau-text: #1B4E73;
    --status-nouveau-border: #9ec0d7;

    --status-en-cours-bg: #fef5e7;
    --status-en-cours-text: #9a6d10;
    --status-en-cours-border: #fdebd0;

    --status-deal-bg: #d5f5e3;
    --status-deal-text: #1e8449;
    --status-deal-border: #a9dfbf;

    --status-erreur-bg: #fadbd8;
    --status-erreur-text: #922b21;
    --status-erreur-border: #f5b7b1;

    --status-nrp-bg: #e8edf2;
    --status-nrp-text: #3a4a5a;
    --status-nrp-border: #d0dbe8;
}

[data-theme="light"] .panel,
[data-theme="light"] .glass-panel {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .panel:hover,
[data-theme="light"] .glass-panel:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .form-control {
    background: #ffffff !important;
    backdrop-filter: none !important;
    color: var(--text-main) !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .form-control:focus {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(22, 102, 215, 0.15) !important;
}

[data-theme="light"] .form-control:hover:not(:focus) {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
}

/* Color Theme Palettes Overrides (10 Couleurs) */

/* 1. Bleu Royal / Cobalt (Défaut) */
[data-color-theme="royal"],
[data-color-theme="navy"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --secondary: #60a5fa;
    --accent: #38bdf8;
    --sidebar-bg-top: #0c1a38;
    --sidebar-bg-bottom: #060e20;
}
[data-theme="light"][data-color-theme="royal"],
[data-theme="light"][data-color-theme="navy"] {
    --primary: #1666d7;
    --primary-hover: #1258b8;
    --primary-glow: rgba(22, 102, 215, 0.2);
    --secondary: #9ec8ff;
    --accent: #4da3ff;
    --sidebar-bg-top: #1666d7;
    --sidebar-bg-bottom: #1258b8;
}

/* 2. Cyan Glacier / Océan */
[data-color-theme="ocean"] {
    --primary: #06b6d4;
    --primary-hover: #22d3ee;
    --primary-glow: rgba(6, 182, 212, 0.35);
    --secondary: #67e8f9;
    --accent: #38bdf8;
    --sidebar-bg-top: #08283b;
    --sidebar-bg-bottom: #04141e;
}
[data-theme="light"][data-color-theme="ocean"] {
    --primary: #0891b2;
    --primary-hover: #0e7490;
    --primary-glow: rgba(8, 145, 178, 0.2);
    --secondary: #a5f3fc;
    --accent: #06b6d4;
    --sidebar-bg-top: #0891b2;
    --sidebar-bg-bottom: #0e7490;
}

/* 3. Vert Émeraude / Menthe */
[data-color-theme="emerald"] {
    --primary: #10b981;
    --primary-hover: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.35);
    --secondary: #6ee7b7;
    --accent: #a7f3d0;
    --sidebar-bg-top: #062b20;
    --sidebar-bg-bottom: #03140e;
}
[data-theme="light"][data-color-theme="emerald"] {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-glow: rgba(5, 150, 105, 0.2);
    --secondary: #a7f3d0;
    --accent: #10b981;
    --sidebar-bg-top: #059669;
    --sidebar-bg-bottom: #047857;
}

/* 4. Indigo / Nuit Boréale */
[data-color-theme="indigo"],
[data-color-theme="purple"] {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary: #a5b4fc;
    --accent: #c7d2fe;
    --sidebar-bg-top: #15183d;
    --sidebar-bg-bottom: #0a0c20;
}
[data-theme="light"][data-color-theme="indigo"],
[data-theme="light"][data-color-theme="purple"] {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --secondary: #c7d2fe;
    --accent: #6366f1;
    --sidebar-bg-top: #4f46e5;
    --sidebar-bg-bottom: #4338ca;
}

/* 5. Bleu Pétrole / Acier */
[data-color-theme="petrol"] {
    --primary: #0284c7;
    --primary-hover: #38bdf8;
    --primary-glow: rgba(2, 132, 199, 0.35);
    --secondary: #7dd3fc;
    --accent: #bae6fd;
    --sidebar-bg-top: #0b2238;
    --sidebar-bg-bottom: #05111c;
}
[data-theme="light"][data-color-theme="petrol"] {
    --primary: #0369a1;
    --primary-hover: #075985;
    --primary-glow: rgba(3, 105, 161, 0.2);
    --secondary: #bae6fd;
    --accent: #0284c7;
    --sidebar-bg-top: #0369a1;
    --sidebar-bg-bottom: #075985;
}

/* 6. Ambre Doré / Sunset Amber */
[data-color-theme="amber"] {
    --primary: #f59e0b;
    --primary-hover: #fbbf24;
    --primary-glow: rgba(245, 158, 11, 0.35);
    --secondary: #fcd34d;
    --accent: #fde68a;
    --sidebar-bg-top: #382405;
    --sidebar-bg-bottom: #1c1102;
}
[data-theme="light"][data-color-theme="amber"] {
    --primary: #d97706;
    --primary-hover: #b45309;
    --primary-glow: rgba(217, 119, 6, 0.2);
    --secondary: #fde68a;
    --accent: #f59e0b;
    --sidebar-bg-top: #d97706;
    --sidebar-bg-bottom: #b45309;
}

/* 7. Rose Rubis / Crimson Ruby */
[data-color-theme="ruby"],
[data-color-theme="rose"] {
    --primary: #f43f5e;
    --primary-hover: #fb7185;
    --primary-glow: rgba(244, 63, 94, 0.35);
    --secondary: #fda4af;
    --accent: #fecdd3;
    --sidebar-bg-top: #3b0816;
    --sidebar-bg-bottom: #1e040b;
}
[data-theme="light"][data-color-theme="ruby"],
[data-theme="light"][data-color-theme="rose"] {
    --primary: #e11d48;
    --primary-hover: #be123c;
    --primary-glow: rgba(225, 29, 72, 0.2);
    --secondary: #fecdd3;
    --accent: #f43f5e;
    --sidebar-bg-top: #e11d48;
    --sidebar-bg-bottom: #be123c;
}

/* 8. Violet Néon / Améthyste */
[data-color-theme="violet"] {
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.35);
    --secondary: #d8b4fe;
    --accent: #e9d5ff;
    --sidebar-bg-top: #2a0b45;
    --sidebar-bg-bottom: #150524;
}
[data-theme="light"][data-color-theme="violet"] {
    --primary: #9333ea;
    --primary-hover: #7e22ce;
    --primary-glow: rgba(147, 51, 234, 0.2);
    --secondary: #e9d5ff;
    --accent: #a855f7;
    --sidebar-bg-top: #9333ea;
    --sidebar-bg-bottom: #7e22ce;
}

/* 9. Orange Corail / Tangerine */
[data-color-theme="coral"],
[data-color-theme="orange"] {
    --primary: #f97316;
    --primary-hover: #fb923c;
    --primary-glow: rgba(249, 115, 22, 0.35);
    --secondary: #fdba74;
    --accent: #fed7aa;
    --sidebar-bg-top: #3c1606;
    --sidebar-bg-bottom: #1f0b03;
}
[data-theme="light"][data-color-theme="coral"],
[data-theme="light"][data-color-theme="orange"] {
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-glow: rgba(234, 88, 12, 0.2);
    --secondary: #fed7aa;
    --accent: #f97316;
    --sidebar-bg-top: #ea580c;
    --sidebar-bg-bottom: #c2410c;
}

/* 10. Sarcelle Turquoise / Dark Teal */
[data-color-theme="teal"] {
    --primary: #14b8a6;
    --primary-hover: #2dd4bf;
    --primary-glow: rgba(20, 184, 166, 0.35);
    --secondary: #5eead4;
    --accent: #99f6e4;
    --sidebar-bg-top: #062b27;
    --sidebar-bg-bottom: #031614;
}
[data-theme="light"][data-color-theme="teal"] {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-glow: rgba(13, 148, 136, 0.2);
    --secondary: #99f6e4;
    --accent: #14b8a6;
    --sidebar-bg-top: #0d9488;
    --sidebar-bg-bottom: #0f766e;
}

/* Theme Color Selector UI Components */
.theme-color-selector {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

[data-theme="light"] .theme-color-selector {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.color-palette-dots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    justify-items: center;
    align-items: center;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.color-dot:hover {
    transform: scale(1.25);
    z-index: 2;
}

.color-dot.active {
    border-color: #ffffff;
    box-shadow: 0 0 12px var(--primary-glow), 0 0 3px rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

[data-theme="light"] .color-dot.active {
    border-color: #0f172a;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 3px rgba(15, 23, 42, 0.4);
}

.theme-toggle-btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle-btn-icon:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-sidebar, rgba(255,255,255,0.7));
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dark-mode-toggle:active {
    transform: scale(0.98);
}

.dark-mode-toggle svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.35s ease;
}

.dark-mode-toggle:hover svg {
    opacity: 1;
    transform: rotate(20deg);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

ul, ol {
    color: inherit;
}

li {
    color: inherit;
}

ul li::marker,
ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6, .panel-title, .sidebar-brand-text {
    font-family: var(--font-heading);
}

.mono-font, td.lead-phone, td.lead-date, .sidebar-stat-value, .stat-value {
    font-family: var(--font-mono);
}

/* =========================================
   LOGIN PAGE
   ========================================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* =========================================
   APP SHELL & SIDEBAR
   ========================================= */
.app-shell {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-bottom) 100%);
    border-right: 1px solid var(--border-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Collapsed State Styles */
.app-shell.collapsed .sidebar {
    width: 80px;
}

.app-shell.collapsed .main-content {
    margin-left: 80px;
    width: calc(100vw - 80px);
}

.app-shell.collapsed .sidebar-brand-text,
.app-shell.collapsed .sidebar-logo-img,
.app-shell.collapsed .sidebar-user-info,
.app-shell.collapsed .sidebar-nav-label,
.app-shell.collapsed .sidebar-badge,
.app-shell.collapsed .sidebar-stats,
.app-shell.collapsed .sidebar-logout span:not(.logout-icon) {
    display: none;
}

.app-shell.collapsed .sidebar-logo {
    padding: 2.5rem 0.5rem 2rem;
    justify-content: center;
}

.app-shell.collapsed #sidebar-collapse-btn {
    position: static !important;
    margin: 0 auto;
}

.app-shell.collapsed #sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

.app-shell.collapsed .sidebar-profile {
    padding: 0.5rem;
    justify-content: center;
    background: transparent;
    border: none;
}

.app-shell.collapsed .sidebar-avatar {
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.app-shell.collapsed .sidebar-nav-link {
    padding: 0.85rem;
    justify-content: center;
}

.app-shell.collapsed .sidebar-nav-icon {
    margin: 0;
    font-size: 1.4rem;
}

.app-shell.collapsed .sidebar-logout {
    padding: 0.85rem;
    justify-content: center;
}

.app-shell.collapsed .sidebar-nav-link.active {
    border-left: none;
    border-bottom: 3px solid var(--primary);
    border-radius: var(--border-radius-md);
}


/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1rem 1rem;
}

.sidebar-logo-img {
    height: 52px;
    width: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.25s ease;
}

.sidebar-logo-img:hover {
    transform: scale(1.04);
}

.sidebar-brand-text {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-brand-text .text-white {
    color: #ffffff;
}

.sidebar-brand-text .text-blue {
    color: var(--primary);
}

/* Sidebar Collapse Button */
#sidebar-collapse-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

#sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

#sidebar-collapse-btn:active {
    transform: translateY(-50%) scale(0.95);
}

#sidebar-collapse-btn svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    transition: background 0.2s;
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #1B2A4A 0%, #2E86DE 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(46, 134, 222, 0.3);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.sidebar-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-subname {
    font-size: 0.8rem;
    color: var(--text-sidebar);
}

.sidebar-role {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    overflow-y: auto;
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-sidebar) !important;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.sidebar-nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(78, 199, 196, 0.22) 0%, rgba(255,255,255,0.02) 100%) !important;
    color: #ffffff !important;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    box-shadow: 0 8px 18px rgba(78, 199, 196, 0.14);
}

.sidebar-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.sidebar-nav-link.active .sidebar-nav-icon {
    color: var(--secondary);
}

/* Chat Unread Badge */
.chat-unread-badge {
    display: none;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    margin-left: 4px;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
}

.sidebar-nav-link:hover .sidebar-nav-icon {
    transform: scale(1.1);
    color: var(--text-sidebar-hover);
}

.sidebar-nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav-indicator,
.sidebar-nav-active-text {
    display: none;
}

/* Sidebar Accordion Group */
.sidebar-nav-group {
    margin-bottom: 2px;
}

.sidebar-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--border-radius-md);
    background: transparent;
    color: var(--text-sidebar);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.sidebar-nav-group-toggle:hover {
    background: linear-gradient(90deg, rgba(78, 199, 196, 0.16), rgba(255, 255, 255, 0.03));
}

.sidebar-nav-chevron {
    margin-left: auto;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.sidebar-nav-group.open .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 0.5rem;
}

.sidebar-nav-group.open .sidebar-submenu {
    max-height: 500px;
    padding: 2px 0 2px 0.5rem;
}

.sidebar-submenu .sidebar-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

.sidebar-submenu .sidebar-nav-link .sidebar-nav-icon {
    opacity: 0.7;
}

.sidebar-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* Sidebar Stats Mini */
.sidebar-stats {
    margin: 1.5rem 1rem;
    padding: 1.25rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-sidebar);
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 0.5rem;
}

.sidebar-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.sidebar-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.sidebar-stat-label {
    font-size: 0.7rem;
    color: var(--text-sidebar);
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Footer / Logout */
.sidebar-footer {
    padding: 0 1rem 1.5rem;
}

.sidebar-theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    outline: none;
}

.sidebar-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.sidebar-theme-toggle.is-active-perf {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.sidebar-theme-toggle.is-active-perf:hover {
    background: rgba(16, 185, 129, 0.32);
    border-color: #10b981;
}

.sidebar-theme-toggle i, 
.sidebar-theme-toggle svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sidebar-logout:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 4px auto;
    transition: 0.3s;
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 2rem 2.5rem;
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    box-sizing: border-box;
    overflow-x: hidden;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tab-panel {
    display: none;
    min-width: 0;
    width: 100%;
}

.tab-panel.active-panel {
    display: block;
    animation: tabSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PANELS & CARDS
   ========================================= */
.panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: fit-content;
    margin-bottom: 2rem;
    width: 100%;
    min-width: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    /* Ensure header content doesn't force width */
    gap: 1rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

/* Stats Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.75rem;
}

.stat-card.leads .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.stat-card.agents .stat-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.stat-card.next-up .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   FORMS & BUTTONS
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card-solid);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 8px 18px rgba(78, 199, 196, 0.28);
    border: 1px solid rgba(255,255,255,0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 24px rgba(78, 199, 196, 0.38);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(78, 199, 196, 0.06));
    color: var(--text-main);
    border: 1px solid rgba(78, 199, 196, 0.26);
    box-shadow: 0 6px 14px rgba(18, 54, 58, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(78, 199, 196, 0.12), rgba(255,255,255,0.08));
    border-color: rgba(78, 199, 196, 0.42);
    transform: translateY(-1px);
}

/* =========================================
   TABLES & LISTS
   ========================================= */
/* =========================================
   LEADS FILTER TOOLBAR
   ========================================= */
.leads-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card-solid, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.leads-filter-group {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.leads-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.leads-filter-item label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.leads-filter-item .form-control {
    width: auto;
    min-width: 130px;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.leads-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

/* =========================================
   LEADS TABLE
   ========================================= */
.leads-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: auto;
}

.leads-table th {
    background: rgba(15, 23, 42, 0.4);
    padding: 0.5rem 0.35rem;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

[data-theme="light"] .leads-table th {
    background: linear-gradient(180deg, rgba(30, 117, 199, 0.12), rgba(255,255,255,0.04));
    color: #0d3152;
    border-bottom: 2px solid rgba(30, 117, 199, 0.22);
}

.leads-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.leads-table th.sortable:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.leads-table th .sort-indicator {
    display: inline-block;
    margin-left: 0.2rem;
    font-size: 0.60rem;
    opacity: 0.4;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.leads-table th.sortable:hover .sort-indicator {
    opacity: 0.8;
}

.leads-table th.sorted-asc .sort-indicator,
.leads-table th.sorted-desc .sort-indicator {
    opacity: 1;
    color: var(--primary);
    font-weight: bold;
}

.leads-table tbody tr {
    transition: all 0.2s ease;
}

.leads-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .leads-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(78, 199, 196, 0.08), rgba(255,255,255,0.04));
    box-shadow: inset 0 0 0 1px rgba(30, 117, 199, 0.12);
}

.leads-table th.sorted-asc .sort-indicator::after {
    content: "▲";
}

.leads-table th.sorted-desc .sort-indicator::after {
    content: "▼";
}

.leads-table td {
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.76rem;
    vertical-align: middle;
}

[data-theme="light"] .leads-table td {
    border-bottom: 1px solid rgba(30, 117, 199, 0.14);
    color: #12363a;
}

.leads-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .leads-table tr:hover td {
    background: rgba(78, 199, 196, 0.04);
}

.status-select, .agent-select {
    padding: 0.15rem 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-card-solid);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 105px;
    max-width: 135px;
    height: 28px;
    outline: none;
}

[data-theme="light"] .status-select,
[data-theme="light"] .agent-select {
    border: 1px solid rgba(30, 117, 199, 0.2);
    background: #ffffff;
    color: #12363a;
}

.status-select:hover, .agent-select:hover {
    border-color: var(--primary);
}

.status-select:focus, .agent-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Structured Sale / Vente Details Bar */
.sale-details-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0.45rem;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.sale-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sale-metric.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 700;
}

.sale-metric.active b {
    color: #059669;
    font-weight: 800;
}

.sale-metric.inactive {
    opacity: 0.45;
}

/* Sale Info Notification Bell Trigger */
.btn-sale-info-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-sale-info-trigger:hover {
    background: #10b981;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.sale-info-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-card-solid);
    animation: salePulse 2s infinite;
}

@keyframes salePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Unread / Non consulté Lead Notification Badge */
.badge-unread-lead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    white-space: nowrap;
    line-height: 1;
}

.unread-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: unreadPulse 1.8s infinite;
}

@keyframes unreadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Phone Column Single-Line Guarantee */
.leads-table td a[href^="tel:"] {
    white-space: nowrap !important;
    display: inline-block;
}

/* Badges Pro Max */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.badge-status {
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.status-nouveau {
    background: var(--status-nouveau-bg);
    color: var(--status-nouveau-text);
    border: 1px solid var(--status-nouveau-border);
}

.status-en-cours, .status-rappel {
    background: var(--status-en-cours-bg);
    color: var(--status-en-cours-text);
    border: 1px solid var(--status-en-cours-border);
}

.status-deal, .status-paye, .status-signe, .status-gagne {
    background: var(--status-deal-bg);
    color: var(--status-deal-text);
    border: 1px solid var(--status-deal-border);
}

.status-non-conforme, .status-erreur-de-saisie, .status-faux-numero, .status-perdu {
    background: var(--status-erreur-bg);
    color: var(--status-erreur-text);
    border: 1px solid var(--status-erreur-border);
}

.status-injoignable, .status-ne-reponds-pas, .status-nrp {
    background: var(--status-nrp-bg);
    color: var(--status-nrp-text);
    border: 1px solid var(--status-nrp-border);
}

/* Lead Action Buttons */
.lead-actions-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lead-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    text-decoration: none;
}

.lead-action-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.lead-action-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Type & Platform Badges */
.type-badge, .platform-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.type-decennal { background: rgba(46, 134, 222, 0.12); color: #2E86DE; border: 1px solid rgba(46, 134, 222, 0.25); }
.type-formation { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.type-energe { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.type-auto { background: rgba(168, 85, 247, 0.12); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.25); }
.type-sante { background: rgba(236, 72, 153, 0.12); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.25); }
.platform-fb { background: rgba(59, 89, 152, 0.12); color: #3b5998; border: 1px solid rgba(59, 89, 152, 0.25); }
.platform-ig { background: rgba(193, 53, 132, 0.12); color: #c13584; border: 1px solid rgba(193, 53, 132, 0.25); }

/* Pagination Bar */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

#pagination-buttons {
    display: flex;
    gap: 0.35rem;
}

.btn-page {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Glassmorphism Panel */
.panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: fit-content;
    margin-bottom: 2rem;
    width: 100%;
    min-width: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    border-color: var(--primary);
}

/* Filter Pills Bar */
.filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
}

.filter-pill {
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-pill:hover {
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.filter-pill .pill-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Slide-Over Drawer (Fiche Lead Pro) */
.lead-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.lead-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lead-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 620px;
    background: var(--bg-card-solid);
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1051;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.lead-drawer-overlay.active .lead-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.drawer-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    padding: 0 1.5rem;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.15);
}

.drawer-tab-btn {
    padding: 1rem 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-tab-btn:hover {
    color: var(--text-main);
}

.drawer-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.drawer-tab-content {
    display: none;
}

.drawer-tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-info {
    border-left-color: var(--accent);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: scale(1.03);
}

/* Agents List */
.agent-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    gap: 1rem;
}

.agent-card:hover {
    border-color: rgba(var(--primary-rgb, 59,130,246), 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.agent-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.agent-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-role-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.agent-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.agent-email,
.agent-username {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-username {
    color: var(--primary);
    font-weight: 500;
}

.agent-leads-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    width: fit-content;
}

.agent-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.agent-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.agent-action-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.agent-action-delete:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

.agent-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

/* =========================================
   IMPORT LEADS WIZARD
   ========================================= */
.import-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.import-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.import-step.active {
    color: var(--primary);
    background: rgba(59,130,246,0.08);
}

.import-step.current {
    color: #ffffff;
    background: var(--primary);
}

.import-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    color: var(--text-muted);
    flex-shrink: 0;
}

.import-step.active .import-step-num {
    background: rgba(59,130,246,0.15);
    color: var(--primary);
}

.import-step.current .import-step-num {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

.import-step-line {
    width: 30px;
    height: 2px;
    background: var(--border-light);
    flex-shrink: 0;
}

.import-step.active + .import-step-line {
    background: var(--primary);
}

.import-wizard-panel,
.import-step-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.import-wizard-panel.active,
.import-step-content.active {
    display: block;
}

.import-wizard-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.import-wizard-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Import Step Indicator Pills */
.import-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 1.75rem;
    flex-wrap: wrap;
}

.import-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: default;
}

.import-step.active,
.import-step.current {
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.import-step.completed {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    font-weight: 600;
}

.import-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.import-step.active .import-step-num,
.import-step.current .import-step-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.import-step.completed .import-step-num {
    background: #1d4ed8;
    color: #ffffff;
}

.import-step-line {
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.import-step-line.active {
    background: #1d4ed8;
}

/* Type Cards Grid */
.import-type-grid,
.import-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .import-type-grid,
    .import-type-selector { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .import-type-grid,
    .import-type-selector { grid-template-columns: 1fr; }
}

.import-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    border: 2px solid var(--border-light, rgba(226, 232, 240, 0.8));
    background: var(--bg-card-solid, #ffffff);
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.import-type-card:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.import-type-card.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 8px 20px rgba(59, 130, 246, 0.1);
}

.import-type-card input[type="radio"] {
    position: absolute;
    top: 12px;
    right: 12px;
    accent-color: #3b82f6;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.import-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.import-type-card:hover .import-type-icon {
    transform: scale(1.08);
}

.import-type-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading, #0f172a);
    margin-bottom: 0.25rem;
}

.import-type-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.import-type-desc {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    line-height: 1.35;
}

/* Dropzone */
.import-dropzone,
.upload-dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.import-dropzone:hover,
.import-dropzone.dragover,
.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.005);
}

.dropzone-icon {
    margin-bottom: 0.75rem;
}

.dropzone-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading, #0f172a);
    margin-bottom: 0.25rem;
}

.dropzone-sub {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.file-info-badge,
.import-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

/* Step 4: Summary Cards & Preview */
.import-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.import-summary-card {
    background: var(--bg-hover, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}

.import-summary-card .summary-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading, #0f172a);
}

.import-summary-card .summary-lbl {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    margin-top: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}

.mapping-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mapping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
    transition: background 0.15s ease;
    width: 100%;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.mapping-row:hover {
    background: rgba(241, 245, 249, 0.6);
}

.mapping-col-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.mapping-arrow {
    width: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.mapping-col-target {
    flex: 1;
}

.mapping-select {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    font-size: 0.88rem;
    padding: 0 0.75rem;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.mapping-row.mapped .mapping-select {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.03);
}

.mapping-sample {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.import-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.import-preview-table th {
    background: var(--bg-hover, #f8fafc);
    padding: 0.6rem 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    white-space: nowrap;
}

.import-preview-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    white-space: nowrap;
}

.import-dropzone:hover,
.import-dropzone.dragover {
    border-color: rgba(22, 102, 215, 0.6);
    background: rgba(22, 102, 215, 0.12);
}

.import-dropzone-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.import-dropzone-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* File Info */
.import-file-info {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.import-file-info.visible {
    display: flex;
}

.import-file-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.import-file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.import-file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    transition: all 0.2s;
}

.import-file-remove:hover {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

/* Mapping */
.import-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.import-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.import-preview-table th {
    background: rgba(0,0,0,0.03);
    padding: 0.5rem 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.import-preview-table td {
    padding: 0.4rem 0.65rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Top KPI Metrics Banner for Lead Journal */
.leads-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.leads-kpi-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.2rem 1.35rem;
    background: var(--bg-card-solid, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.leads-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.leads-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
}

.leads-kpi-content {
    flex: 1;
    min-width: 0;
}

.leads-kpi-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    display: block;
    margin-bottom: 0.25rem;
}

.leads-kpi-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.leads-kpi-value {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main, #0f172a);
}

.leads-kpi-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.import-col-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.import-mapping-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.import-mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    background: rgba(22, 102, 215, 0.06);
    padding: 1.25rem;
    border-radius: 14px;
    border: 2px solid rgba(22, 102, 215, 0.35);
}

.import-mapping-header {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    border-bottom: 2px solid var(--border-light, #cbd5e1);
    margin-bottom: 0.4rem;
}

.import-mapping-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-card-solid, #ffffff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.import-mapping-row:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.import-mapping-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main, #1e293b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-mapping-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
}

.import-mapping-select {
    width: 100% !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-light, #cbd5e1) !important;
    background-color: var(--bg-card-solid, #ffffff) !important;
    color: var(--text-main, #0f172a) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.import-mapping-select:focus, .import-mapping-select.mapped {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* Back Button */
.import-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.import-back-btn:hover {
    color: var(--primary);
}

/* Buttons */
.btn-import-next, .btn-import-submit {
    width: 100%;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-import-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Recap */
.import-recap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

.import-recap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.import-recap-label {
    color: var(--text-muted);
    font-weight: 500;
}

.import-recap-value {
    font-weight: 600;
    color: var(--text-main);
}

.import-recap-mapping {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-main);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-light);
}

.import-recap-mapping:last-child {
    border-bottom: none;
}

.import-recap-ignored summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Result */
.import-result {
    display: none;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.import-result.visible {
    display: block;
}

.import-result-success {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    color: #15803d;
}

.import-result-error {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    color: #991b1b;
}

.import-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   SETTINGS MANAGEMENT
   ========================================= */
.settings-page {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-page-header {
    margin-bottom: 0.25rem;
}

.settings-page-header .panel-title {
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.settings-page-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.settings-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-light);
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.settings-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0 0;
}

.settings-card-body {
    padding: 1.25rem 1.35rem;
}

/* Hours Row */
.settings-hours-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.settings-hours-row .form-group { margin-bottom: 0; }
.settings-hours-row .btn { flex-shrink: 0; }

.settings-hours-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.5rem;
}

/* Form Grid (for type/status forms) */
.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.settings-form-grid .form-group { margin-bottom: 0; }
.settings-form-grid .form-group label { font-size: 0.78rem; }

@media (max-width: 500px) {
    .settings-form-grid { grid-template-columns: 1fr; }
    .settings-hours-row { flex-direction: column; align-items: stretch; }
}

.settings-form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.25rem;
}

/* Items List */
.settings-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.settings-item-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: background 0.15s;
}

.settings-item-row:hover {
    background: rgba(59,130,246,0.03);
}

.settings-item-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.2;
}

.settings-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

.settings-item-table {
    font-size: 0.7rem;
    background: rgba(59,130,246,0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    color: var(--primary);
    font-family: monospace;
}

.settings-item-type-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.settings-item-spacer { flex: 1; }

.settings-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.settings-item-btn:hover {
    background: rgba(59,130,246,0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.settings-item-btn-danger:hover {
    background: rgba(239,68,68,0.08);
    border-color: var(--danger);
    color: var(--danger);
}

.settings-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
}

/* Form Inline */
.settings-form-inline {
    padding: 1rem 1.15rem;
    border: 1px dashed var(--primary);
    border-radius: 10px;
    background: rgba(59,130,246,0.02);
    margin-top: 0.75rem;
    animation: settingsFormSlideIn 0.2s ease;
}

@keyframes settingsFormSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-status-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

/* Color picker */
.form-control-color {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    background: var(--card-bg);
}
    padding: 2px;
    cursor: pointer;
    background: transparent;
}

.btn-add-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-add-inline:hover {
    background: rgba(59,130,246,0.08);
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.settings-filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.settings-filter-row label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Access Pills (form checkboxes) */
.agents-grid-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .agents-grid-layout {
        grid-template-columns: 1fr;
    }
}

.agent-access-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.access-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.access-pill:has(input:checked) {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.access-pill input[type="checkbox"] {
    width: auto;
    height: auto;
    accent-color: var(--primary);
}

.access-pill:hover {
    border-color: var(--primary);
}

/* Action Buttons */
.lead-actions-cell {
    padding: 0.4rem 0.5rem !important;
    min-width: 95px;
    width: 95px;
    vertical-align: middle !important;
    text-align: center;
    height: 100%;
}

.lead-actions-flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    min-height: 44px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin: 0;
}

.btn-action:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: scale(1.05);
}

.edit-agent-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #eff6ff;
}

.delete-agent-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: #fef2f2;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--success);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* =========================================
   CHAT
   ========================================= */
.chat-container-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 600px;
}

@media (min-width: 992px) {
    .chat-container-layout.has-sidebar {
        grid-template-columns: 300px 1fr;
    }
}

.chat-sidebar {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    height: 600px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.chat-window-panel {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.message-sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-received {
    align-self: flex-start;
    background: var(--bg-card-solid);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.4rem;
    text-align: right;
}

.chat-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
}

.chat-contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.chat-contact-item.active {
    background: var(--primary-glow);
    border-color: var(--secondary);
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   CALENDAR
   ========================================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
    margin-top: 1rem;
}

.calendar-header-day {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 1rem 0;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.calendar-day {
    background: var(--bg-card-solid);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    min-height: 120px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calendar-day.empty {
    background: rgba(11, 19, 41, 0.4);
}

[data-theme="light"] .calendar-day.empty {
    background: #ffffff;
}

.calendar-day.empty .calendar-day-number {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

[data-theme="light"] .calendar-day.today {
    background: #f9fbff;
}

.calendar-day-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-align: center;
}

.calendar-event {
    background: #4ade80;
    /* default, will be overridden */
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calendar-event:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100vw;
        padding: 1.5rem;
        padding-top: 5rem;
    }

    .sidebar-toggle {
        display: block;
    }
}


/* =========================================
   CUSTOM CALENDAR & RAPPELS UI (Dark Theme Match)
   ========================================= */

.calendar-layout-wrapper {
    background-color: #121215;
    color: #ffffff;
    padding: 1.5rem;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

.calendar-header-banner {
    background-color: #1a1a1f;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-left: 4px solid #2E86DE;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calendar-header-banner h4 {
    color: #eab308;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.calendar-header-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.calendar-header-banner p {
    color: #9ca3af;
    font-size: 0.95rem;
}

.header-badge span {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
}

.mc-panel {
    background-color: #1a1a1f;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mc-month-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.mc-today-label {
    color: #eab308;
    font-size: 0.9rem;
    font-weight: 600;
}

.mc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
}

.mc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.mc-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    background-color: #24252a;
    transition: all 0.2s;
    position: relative;
}

.mc-day:hover {
    background-color: #374151;
}

.mc-day.mc-empty {
    background: transparent;
    cursor: default;
}

.mc-day.mc-selected {
    background-color: #2E86DE;
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 134, 222, 0.4);
}

.mc-day .mc-dot {
    width: 5px;
    height: 5px;
    background-color: #60a5fa;
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
}

.mc-day.mc-selected .mc-dot {
    background-color: #fff;
}

/* Form Styles */
.mc-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
}

.mc-form .form-group {
    margin-bottom: 1rem;
}

.mc-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.mc-form input,
.mc-form select {
    width: 100%;
    background-color: #24252a;
    border: 1px solid #374151;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.mc-form input:focus,
.mc-form select:focus {
    outline: none;
    border-color: #2E86DE;
}

.mc-form .form-row {
    display: flex;
    gap: 1rem;
}

.mc-form .half {
    flex: 1;
}

.btn-submit {
    width: 100%;
    background-color: #2E86DE;
    color: #fff;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #1a75c7;
}

/* Right Column Styles */
.rc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rc-filters {
    display: flex;
    gap: 0.5rem;
}

.rc-filter {
    background-color: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rc-filter:hover {
    background-color: #374151;
    color: #fff;
}

.rc-filter.active {
    background-color: #2E86DE;
    color: #fff;
    border-color: #2E86DE;
}

.rc-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.rc-cards::-webkit-scrollbar {
    width: 6px;
}

.rc-cards::-webkit-scrollbar-track {
    background: #24252a;
    border-radius: 4px;
}

.rc-cards::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.rc-card {
    background-color: #24252a;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.2s;
}

.rc-card:hover {
    transform: translateY(-2px);
    border-color: #4b5563;
}

.rc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rc-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rc-badge.personnel {
    background-color: rgba(46, 134, 222, 0.15);
    color: #60a5fa;
}

.rc-time {
    color: #eab308;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.rc-contact {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.rc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #374151;
    padding-top: 1rem;
}

.btn-mark-done {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-mark-done:hover {
    background-color: #10b981;
    color: #fff;
}

.btn-delete-card {
    background: transparent;
    color: #9ca3af;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.btn-delete-card:hover {
    color: #ef4444;
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MODAL OVERLAY & PRODUITS VENDUS CARDS
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Light-theme modal overrides */
[data-theme="light"] .modal-content .panel-title { color: #1e293b !important; }
[data-theme="light"] .modal-content label { color: #1e293b !important; }
[data-theme="light"] .modal-content .form-control {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0;
    color: #1e293b !important;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    width: 100%;
    font-size: 0.95rem;
}
[data-theme="light"] .modal-content .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.12);
}
[data-theme="light"] #deal-modal .modal-content,
[data-theme="light"] #rappel-modal .modal-content,
[data-theme="light"] #deal-modal-details .modal-content,
[data-theme="light"] #rappel-modal-details .modal-content {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Dark-theme / Default modal styles */
.modal-content .panel-title { color: var(--text-main); }
.modal-content label { color: var(--text-muted); }
.modal-content .form-control {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    width: 100%;
    font-size: 0.95rem;
}
#deal-modal .modal-content,
#rappel-modal .modal-content,
#deal-modal-details .modal-content,
#rappel-modal-details .modal-content {
    background: var(--bg-card-solid);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

/* Produit card checkboxes */
[data-theme="light"] .produit-card-label {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
}
[data-theme="light"] .produit-card-label:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.12);
    background: #f0f7ff;
}
[data-theme="light"] .produit-card-label:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(46, 134, 222, 0.18);
}

.produit-card-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-body);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-weight: 500;
    color: var(--text-main);
    user-select: none;
}

.produit-card-label:hover {
    border-color: var(--secondary);
    background: rgba(46, 134, 222, 0.1);
}

.produit-card-label:has(input:checked) {
    border-color: var(--secondary);
    background: rgba(46, 134, 222, 0.2);
    box-shadow: 0 0 0 2px rgba(46, 134, 222, 0.25);
}

/* ================================================================
   PHASE 1b: New Lead Highlight Animations
   ================================================================ */
@keyframes leadPulseHighlight {
    0% { background-color: rgba(46, 134, 222, 0.18); box-shadow: inset 0 0 0 0 rgba(46, 134, 222, 0); }
    50% { background-color: rgba(46, 134, 222, 0.28); box-shadow: inset 0 0 12px rgba(46, 134, 222, 0.15); }
    100% { background-color: rgba(46, 134, 222, 0.18); box-shadow: inset 0 0 0 0 rgba(46, 134, 222, 0); }
}

@keyframes leadFlashNew {
    0% { background-color: rgba(39, 174, 96, 0.12); }
    25% { background-color: rgba(39, 174, 96, 0.35); }
    50% { background-color: rgba(39, 174, 96, 0.12); }
    75% { background-color: rgba(39, 174, 96, 0.25); }
    100% { background-color: rgba(39, 174, 96, 0.05); }
}

.new-lead-highlight {
    animation: leadPulseHighlight 1.5s ease-in-out infinite;
    border-left: 3px solid var(--secondary) !important;
}

.new-lead-flash {
    animation: leadFlashNew 1s ease-in-out forwards;
    border-left: 3px solid var(--success) !important;
}

/* ================================================================
   PHASE 1c: Sidebar Overlay (Mobile)
   ================================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ================================================================
   PHASE 2a: Skeleton Loaders
   ================================================================ */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        rgba(46, 134, 222, 0.06) 37%,
        var(--bg-card) 63%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 10px;
    width: 60%;
    margin-bottom: 6px;
    border-radius: 3px;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.skeleton-row .skeleton {
    flex-shrink: 0;
}

/* ================================================================
   PHASE 2b: Empty States
   ================================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    gap: 1rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(46, 134, 222, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.empty-state-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 340px;
    line-height: 1.5;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* ================================================================
   PHASE 2c: Animated Counter
   ================================================================ */
.stat-counter-animated {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* ================================================================
   PHASE 2d: Stagger Animation for Table Rows
   ================================================================ */
@keyframes rowSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.leads-table tbody tr {
    animation: rowSlideIn 0.3s ease forwards;
    animation-delay: calc(var(--row-index, 0) * 30ms);
    opacity: 0;
}

/* ================================================================
   PHASE 4a: Ripple Effect on Buttons
   ================================================================ */
.btn-primary,
.btn-action,
.sidebar-nav-link,
.filter-pill {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

/* ================================================================
   PHASE 4b: Progress Bars
   ================================================================ */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ================================================================
   PHASE 4d: Card Hover Lift
   ================================================================ */
.stat-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ================================================================
   PHASE 4e: Badge Pulse Animation
   ================================================================ */
@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-pulse {
    animation: badgePulse 1.5s ease infinite;
}

/* ================================================================
   PHASE 3d: Focus-visible + Accessibility
   ================================================================ */
:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.filter-pill:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   LOGIN PAGE ANIMATED DESIGN & GLASSMORPHISM
   ================================================================ */

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -80px) scale(1.15); }
    66% { transform: translate(-40px, 50px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-70px, 60px) scale(0.88); }
    66% { transform: translate(50px, -60px) scale(1.2); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 40px) scale(1.1); }
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.95);
        filter: blur(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.45);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(200%) skewX(-25deg); }
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Base Wrapper */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #064e3b 0%, #021a13 100%);
    padding: 1.5rem;
    font-family: var(--font-sans);
}

/* Background Animated Grid & Orbs */
.login-bg-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.bg-orb-1 {
    top: 15%;
    left: 18%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(6, 95, 70, 0) 70%);
    animation: orbFloat1 18s ease-in-out infinite;
}

.bg-orb-2 {
    bottom: 12%;
    right: 15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(76, 29, 149, 0) 70%);
    animation: orbFloat2 22s ease-in-out infinite;
}

.bg-orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(21, 94, 117, 0) 70%);
    animation: orbFloat3 25s ease-in-out infinite;
}

/* Glassmorphism Login Card (Matching Screenshot) */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(235, 244, 240, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 2.75rem 2.25rem;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    animation: cardAppear 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(16, 185, 129, 0.15);
}

/* Header & Branding inside Card */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.25rem;
    text-align: center;
}

.login-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: logoPulse 4s ease-in-out infinite;
}

.login-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0284c7 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.02em;
}

.login-subtitle-flex {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.login-badge-pill {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.18);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.35);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Alert Styling */
.login-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: alertShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Input Fields & Groups */
.login-field-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.6rem;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 1.1rem;
    color: #64748b;
    width: 20px;
    height: 20px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.login-input-custom {
    width: 100%;
    padding: 0.925rem 1rem 0.925rem 3.1rem;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 16px;
    font-size: 0.975rem;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.login-input-custom::placeholder {
    color: #94a3b8;
}

.login-input-custom:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.2),
        0 8px 20px rgba(16, 185, 129, 0.12);
}

.login-input-custom:focus ~ .input-icon-left {
    color: #10b981;
    transform: scale(1.1);
}

.btn-toggle-pw {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-toggle-pw:hover {
    color: #1e293b;
    background: rgba(15, 23, 42, 0.06);
}

/* Submit Button & Animations */
.btn-login-animated {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 25px -5px rgba(16, 185, 129, 0.45),
        0 0 15px rgba(124, 58, 237, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.btn-login-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3.5s infinite;
    pointer-events: none;
}

.btn-login-animated:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #34d399 0%, #7c3aed 100%);
    box-shadow: 
        0 15px 35px -5px rgba(16, 185, 129, 0.6),
        0 0 25px rgba(124, 58, 237, 0.4);
}

.btn-login-animated:active {
    transform: translateY(-1px);
}

/* Footer Section inside Card */
.login-card-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(203, 213, 225, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}


.security-badge-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ================================================================
   MULTI-THEME ANIMATED STYLES & PICKER
   ================================================================ */

.login-theme-picker {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .login-theme-picker {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.theme-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-chip {
    color: #64748b;
}

.theme-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .theme-chip:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.theme-chip.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .theme-chip.active {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.theme-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.theme-dot-aurora { background: #10b981; box-shadow: 0 0 8px #10b981; }
.theme-dot-cyber { background: #00f2fe; box-shadow: 0 0 8px #00f2fe; }
.theme-dot-gold { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.theme-dot-corporate { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

/* Keyframes for Multi-Themes */
@keyframes cyberGridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.25), inset 0 0 15px rgba(0, 242, 254, 0.1);
        border-color: rgba(0, 242, 254, 0.4);
    }
    50% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(236, 72, 153, 0.4), inset 0 0 20px rgba(236, 72, 153, 0.15);
        border-color: rgba(236, 72, 153, 0.5);
    }
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.35);
    }
    50% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.4);
        border-color: rgba(251, 191, 36, 0.6);
    }
}

/* Fixed Aurora Emerald Theme Background */
.login-wrapper {
    background: radial-gradient(circle at 50% 50%, #053b2e 0%, #011f18 100%) !important;
}


/* ================================================================
   SPLIT-SCREEN HERO SHOWCASE & CANVAS PARTICLES
   ================================================================ */

.login-split-container {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .login-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 460px;
    }
    .login-left-showcase {
        display: none;
    }
}

.login-canvas-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.login-left-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 1.5rem;
}

.showcase-brand-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.showcase-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.showcase-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.showcase-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
}

.showcase-title span {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #a7f3d0;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
    max-width: 500px;
}

/* Feature Cards Grid on Showcase (Matching Screenshot) */
.showcase-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(235, 245, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border: 1px solid rgba(96, 165, 250, 0.3);
    flex-shrink: 0;
}

.feature-info h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.feature-info p {
    margin: 0;
    font-size: 0.825rem;
    color: #475569;
}


/* ================================================================
   DYNAMIC BACKGROUND COLOR OPTIONS
   ================================================================ */

.login-wrapper {
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-color-picker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .bg-color-picker {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.bg-color-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.bg-color-btn:hover {
    transform: scale(1.3);
    border-color: #ffffff;
    z-index: 2;
}

.bg-color-btn.active {
    border-color: #ffffff;
    box-shadow: 0 0 12px currentColor, 0 0 0 2px rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

/* Specific color gradients & glowing halos for color dots */
.bg-color-btn[data-login-bg="obsidian"] {
    background: radial-gradient(circle, #475569 0%, #0f172a 100%);
    color: #94a3b8;
}
.bg-color-btn[data-login-bg="navy"] {
    background: radial-gradient(circle, #60a5fa 0%, #1d4ed8 100%);
    color: #60a5fa;
}
.bg-color-btn[data-login-bg="violet"] {
    background: radial-gradient(circle, #c084fc 0%, #7c3aed 100%);
    color: #c084fc;
}
.bg-color-btn[data-login-bg="emerald"] {
    background: radial-gradient(circle, #34d399 0%, #059669 100%);
    color: #34d399;
}
.bg-color-btn[data-login-bg="crimson"] {
    background: radial-gradient(circle, #fb7185 0%, #e11d48 100%);
    color: #fb7185;
}
.bg-color-btn[data-login-bg="carbon"] {
    background: radial-gradient(circle, #a1a1aa 0%, #27272a 100%);
    color: #a1a1aa;
}


/* Background Color Themes */
[data-login-bg="obsidian"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020408 100%);
}

[data-login-bg="navy"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0b132b 100%);
}

[data-login-bg="violet"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #2e1065 0%, #0f051d 100%);
}

[data-login-bg="emerald"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #064e3b 0%, #021a13 100%);
}

[data-login-bg="crimson"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #701a75 0%, #1f041e 100%);
}

[data-login-bg="carbon"] .login-wrapper {
    background: radial-gradient(circle at 50% 50%, #27272a 0%, #09090b 100%);
}

/* =========================================
   SUPERVISION & DASHBOARD KPI STAT CARDS
   ========================================= */
.stat-card-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.stat-card-kpi:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 134, 222, 0.3);
}

.stat-kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-kpi-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-kpi-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-kpi-val {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-kpi-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.stat-card-kpi:hover .stat-kpi-icon-wrapper {
    transform: scale(1.1) rotate(4deg);
}

.stat-kpi-icon-wrapper.icon-blue {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.stat-kpi-icon-wrapper.icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-kpi-icon-wrapper.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.stat-kpi-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .stat-kpi-footer {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.stat-kpi-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.stat-kpi-badge.badge-blue {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.stat-kpi-badge.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.stat-kpi-badge.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.rappel-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.4rem;
    vertical-align: middle;
}

.rappel-icon-btn:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
    color: #b45309;
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rappel-icon-btn:active {
    transform: scale(0.95);
}

/* =========================================
   SLEEK MODERN RAPPEL CARD DESIGN & ALIGNMENT
   ========================================= */
.rappel-card-item {
    background: var(--bg-card-solid, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rappel-card-item:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.rci-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-light, #f1f5f9);
}

.rci-badges-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rci-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.rci-status-badge.type-personnel {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.rci-status-badge.type-late {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.rci-status-badge.type-normal {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.rci-agent-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
}

.rci-datetime {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.rci-prospect-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.rci-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.rci-meta-item, .rci-meta-link {
    font-size: 0.85rem;
    color: var(--text-secondary, #475569);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 500;
}

.rci-meta-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.rci-comment-box {
    margin: 0.5rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.07);
    border-left: 3.5px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.84rem;
    color: var(--text-main, #1e293b);
    line-height: 1.4;
}

.rci-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light, #f1f5f9);
}

.rci-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
}

.rci-btn-preview {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.25);
}
.rci-btn-preview:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.rci-btn-details {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.25);
}
.rci-btn-details:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rci-btn-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
    margin-left: auto;
}
.rci-btn-success:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.rci-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
}
.rci-btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* =========================================================
   WINDOWS 7 & LEGACY HARDWARE PERFORMANCE OPTIMIZATIONS
   ========================================================= */
html.legacy-win7 *,
body.legacy-win7 * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
    transition: opacity 0.1s ease, color 0.15s ease, background-color 0.15s ease !important;
}

html.legacy-win7 .modal-backdrop,
html.legacy-win7 .modal-overlay,
body.legacy-win7 .modal-backdrop,
body.legacy-win7 .modal-overlay,
html.legacy-win7 div[style*="backdrop-filter"],
body.legacy-win7 div[style*="backdrop-filter"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 23, 42, 0.88) !important;
}

html.legacy-win7 .sidebar,
html.legacy-win7 .topbar,
html.legacy-win7 .card,
html.legacy-win7 .stat-card,
html.legacy-win7 .stat-card-kpi,
body.legacy-win7 .sidebar,
body.legacy-win7 .topbar,
body.legacy-win7 .card,
body.legacy-win7 .stat-card,
body.legacy-win7 .stat-card-kpi {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

html.legacy-win7 .login-canvas-bg,
body.legacy-win7 .login-canvas-bg {
    display: none !important;
}






