/* CRM Styles - Custom Vanilla CSS Design System */

:root {
    /* Color Palette */
    --bg-primary: #f6f8fb;
    --bg-card: #ffffff;
    --bg-sidebar: #13131a;
    --bg-sidebar-hover: #1c1c24;
    --bg-sidebar-active: #22222d;
    
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --text-sidebar: #a0aec0;
    --text-sidebar-active: #ffffff;
    
    /* Branding Accent Color (Cronberry Raspberry Pink) */
    --accent-pink: #d81b60;
    --accent-pink-hover: #c2185b;
    --accent-pink-light: #fce4ec;
    --accent-pink-glow: rgba(216, 27, 96, 0.15);
    
    /* Status Colors */
    --color-new: #3b82f6;
    --color-new-light: #eff6ff;
    --color-contacted: #f59e0b;
    --color-contacted-light: #fef3c7;
    --color-qualified: #10b981;
    --color-qualified-light: #ecfdf5;
    --color-lost: #ef4444;
    --color-lost-light: #fef2f2;
    
    /* Borders & Dividers */
    --border-color: #e5e7eb;
    --border-sidebar: #2d2d39;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Elevations & Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --sidebar-width: 250px;
    --header-height: 70px;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Application Layout Container */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-sidebar);
    z-index: 10;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border-sidebar);
}

.brand-logo {
    width: 32px;
    height: 32px;
    background-color: var(--accent-pink);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.3);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: #2d2d39;
}

.menu-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a5568;
    margin: 16px 12px 8px;
}

.menu-divider {
    height: 1px;
    background-color: var(--border-sidebar);
    margin: 12px 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-sidebar);
    font-size: 13.5px;
    font-weight: 500;
    gap: 12px;
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.menu-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.menu-item:hover {
    background-color: var(--bg-sidebar-hover);
    color: var(--text-white);
}

.menu-item.active {
    background-color: var(--bg-sidebar-active);
    color: var(--text-white);
    font-weight: 600;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3.5px;
    background-color: var(--accent-pink);
    border-radius: 0 4px 4px 0;
}

.menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-item.disabled:hover {
    background-color: transparent;
    color: var(--text-sidebar);
}

/* Submenu layout */
.menu-group {
    display: flex;
    flex-direction: column;
}

.menu-item.has-submenu .submenu-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.menu-group.open .menu-item.has-submenu .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 28px;
    margin-top: 2px;
    gap: 2px;
}

.menu-group.open .submenu {
    display: flex;
}

.submenu-item {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-sidebar);
    font-size: 12.5px;
    transition: var(--transition-fast);
}

.submenu-item:hover {
    color: var(--text-white);
    background-color: var(--bg-sidebar-hover);
}

.submenu-item.active {
    color: var(--accent-pink);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 24px;
    font-size: 11px;
    color: #4a5568;
    border-top: 1px solid var(--border-sidebar);
    text-align: center;
}

/* Main Workspace Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Bar styling */
.header {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

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

.business-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.token-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.token-text {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: monospace;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-btn i {
    width: 14px;
    height: 14px;
}

.icon-btn:hover {
    background-color: var(--bg-primary);
    color: var(--accent-pink);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-box input {
    width: 100%;
    height: 36px;
    background-color: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 0 16px 0 38px;
    font-size: 13px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--accent-pink);
    background-color: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.header-right .text-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.header-right .text-btn i {
    width: 16px;
    height: 16px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.notification-bell i {
    width: 18px;
    height: 18px;
}

.notification-bell:hover {
    background-color: var(--bg-primary);
    color: var(--accent-pink);
}

.notification-bell .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-pink);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-bell.open .notification-dropdown {
    display: flex;
}

.notif-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
}

.notif-list {
    max-height: 250px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.notif-item:hover {
    background-color: var(--bg-primary);
}

.notif-item.unread {
    background-color: var(--accent-pink-glow);
}

.notif-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    background-color: var(--accent-pink);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(216, 27, 96, 0.2);
}

/* Inner view container */
.view-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
}

/* View switcher pane states */
.view-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 20px;
}

/* 1. DASHBOARD VIEW specific elements */
.dashboard-top {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-bottom: 24px;
}

.welcome-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.welcome-title span {
    color: var(--accent-pink);
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 20px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-pill:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background-color: var(--accent-pink-light);
    transform: translateY(-1px);
}

.mau-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mau-chart-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.mau-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-pink);
}

.mau-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mau-label {
    font-size: 13.5px;
    color: var(--text-main);
}

.mau-expiry {
    font-size: 11px;
    color: var(--text-muted);
}

/* Leads Chart custom CSS */
.leads-chart-card {
    margin-bottom: 24px;
}

.card-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-muted);
}

.date-picker-wrapper input {
    border: none;
    background: none;
    font-size: 12.5px;
    color: var(--text-main);
    width: 165px;
    outline: none;
}

.date-picker-wrapper i {
    width: 14px;
    height: 14px;
}

.chart-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Campaign Stats Grid Section */
.campaign-stats-section {
    margin-top: 32px;
}

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

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 16px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

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

.stat-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.toggle-visibility {
    padding: 2px;
}

.toggle-visibility i {
    width: 15px;
    height: 15px;
}

.stat-chart-container {
    height: 120px;
    position: relative;
    width: 100%;
}

/* Tables styling */
.view-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.view-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background-color: var(--accent-pink);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--accent-pink-hover);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.2);
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-primary);
    border-color: #cbd5e1;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-sm i {
    width: 14px;
    height: 14px;
}

/* Tables and Filters */
.leads-table-card {
    padding: 0;
    overflow: hidden;
}

.table-filters {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border: 1px solid #cbd5e1;
}

.table-email-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    border: 1px solid #cbd5e1;
    white-space: normal;
    word-break: normal;
}

.data-table td {
    padding: 10px 8px;
    border: 1px solid #cbd5e1;
    font-size: 12.5px;
    color: var(--text-main);
    vertical-align: middle;
}

@media (min-width: 768px) and (max-width: 1200px) {
    /* Hide Email, Entry Date, and Audience ID on Tablet to fit the frame perfectly */
    .data-table th:nth-child(3), .data-table td:nth-child(3),
    .data-table th:nth-child(9), .data-table td:nth-child(9),
    .data-table th:nth-child(10), .data-table td:nth-child(10) {
        display: none !important;
    }
    
    .data-table {
        table-layout: auto !important;
        width: 100% !important;
    }
    
    .data-table th, .data-table td {
        padding: 8px 6px !important;
        font-size: 11.5px !important;
    }
    
    .data-table td:nth-child(1),
    .data-table td:nth-child(4),
    .data-table td:nth-child(5),
    .data-table td:nth-child(6),
    .data-table td:nth-child(11) {
        white-space: nowrap !important;
    }
    
    .view-container {
        padding: 16px !important;
    }
}

@media (min-width: 1201px) {
    .data-table {
        table-layout: fixed;
        width: 100%;
    }
    
    .data-table th, .data-table td {
        padding: 10px 8px !important;
        font-size: 12.5px !important;
    }
    
    /* Enforce nowrap only on single-line cells to prevent ugly mid-word wrapping */
    .data-table td:nth-child(1), /* S.No. */
    .data-table td:nth-child(3), /* Email */
    .data-table td:nth-child(4), /* Mobile */
    .data-table td:nth-child(5), /* Update Date */
    .data-table td:nth-child(6), /* LeadStatus */
    .data-table td:nth-child(9), /* Entry Date */
    .data-table td:nth-child(10), /* Audience Id */
    .data-table td:nth-child(11) { /* Action */
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .data-table th {
        vertical-align: middle;
    }
    
    /* Exact column widths from the compact screenshot layout */
    .data-table th:nth-child(1), .data-table td:nth-child(1) { width: 45px; } /* S.No. */
    .data-table th:nth-child(2), .data-table td:nth-child(2) { width: 95px; } /* Name */
    .data-table th:nth-child(3), .data-table td:nth-child(3) { width: 160px; } /* Email */
    .data-table th:nth-child(4), .data-table td:nth-child(4) { width: 110px; } /* Mobile */
    .data-table th:nth-child(5), .data-table td:nth-child(5) { width: 95px; } /* Update Date */
    .data-table th:nth-child(6), .data-table td:nth-child(6) { width: 100px; } /* LeadStatus */
    .data-table th:nth-child(7), .data-table td:nth-child(7) { width: 110px; } /* Source Name */
    .data-table th:nth-child(8), .data-table td:nth-child(8) { width: 95px; } /* Lead Owner */
    .data-table th:nth-child(9), .data-table td:nth-child(9) { width: 95px; } /* Entry Date */
    .data-table th:nth-child(10), .data-table td:nth-child(10) { width: 150px; } /* Audience Id */
    .data-table th:nth-child(11), .data-table td:nth-child(11) { width: 75px; } /* Action */
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-status.new {
    background-color: var(--color-new-light);
    color: var(--color-new);
}

.badge-status.contacted {
    background-color: var(--color-contacted-light);
    color: var(--color-contacted);
}

.badge-status.qualified {
    background-color: var(--color-qualified-light);
    color: var(--color-qualified);
}

.badge-status.lost {
    background-color: var(--color-lost-light);
    color: var(--color-lost);
}

.table-pagination {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    background-color: #fafbfc;
}

.pagination-info {
    font-size: 12.5px;
    color: var(--text-muted);
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.btn-pagination {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-pagination:hover:not(:disabled) {
    background-color: var(--bg-primary);
    border-color: #cbd5e1;
}

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

.btn-pagination i {
    width: 16px;
    height: 16px;
}

.text-right {
    text-align: right;
}

.text-pink {
    color: var(--accent-pink);
}

/* Modals layout styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInNormal 0.2s ease-out;
}

.modal-backdrop.open {
    display: flex;
}

@keyframes fadeInNormal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--bg-card);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-header .close-modal i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fafbfc;
}

/* Forms general CSS */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    border-color: var(--accent-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    height: auto;
    padding: 10px 12px;
}

.code-textarea {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    background-color: #1e293b;
    color: #f8fafc;
}

.code-textarea:focus {
    background-color: #0f172a;
}

.text-red {
    color: var(--color-lost);
}

.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 18px; }
.border-t { border-top: 1px solid var(--border-color); }
.pt-2 { padding-top: 8px; }

/* 2-Column Responsive Layout */
.grid-2-1 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Product Catalogue specific CSS */
.catalogue-filters {
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 160px;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    border-bottom: 1px solid var(--border-color);
}

.product-img svg {
    width: 64px;
    height: 64px;
}

.product-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 10.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-pink);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.product-stock {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.product-stock.out {
    color: var(--color-lost);
}

.product-stock.low {
    color: var(--color-contacted);
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Invoice generator CSS */
.divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

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

.invoice-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 2fr 70px 100px 32px;
    gap: 10px;
    align-items: center;
}

.invoice-item-row select,
.invoice-item-row input {
    height: 34px;
    font-size: 12.5px;
}

.invoice-summary-block {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-main);
}

.invoice-preview-card {
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.invoice-print-area {
    padding: 40px;
    background-color: var(--bg-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.print-company-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.print-company-details {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.print-doc-type {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-pink);
    letter-spacing: 0.5px;
}

.print-doc-number {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

.print-doc-date {
    font-size: 11px;
    color: var(--text-muted);
}

.print-divider {
    border: 0;
    height: 2px;
    background-color: var(--accent-pink);
    margin: 24px 0;
}

.print-bill-to {
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.5;
}

.print-bill-to strong {
    font-size: 12.5px;
    color: var(--text-muted);
}

.print-bill-to p {
    color: var(--text-main);
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 12.5px;
}

.print-table th {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
}

.print-table td {
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
    color: var(--text-main);
}

.print-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.print-totals-box {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
}

.print-totals-row {
    display: flex;
    justify-content: space-between;
}

.print-totals-row span:first-child {
    color: var(--text-muted);
}

.print-grand-total {
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-pink);
}

.print-footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Settings Form styles */
.settings-form {
    max-width: 600px;
}

/* Database Distributions bar charts styling */
.progress-bars-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.row-label {
    width: 140px;
    font-size: 12.5px;
    color: var(--text-main);
}

.progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-pink);
    border-radius: 4px;
    width: 0;
    transition: width 0.5s ease-out;
}

.row-value {
    width: 40px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.stats-large-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.stat-large-box {
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-large-num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-pink);
}

.stat-large-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.task-list-ui {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-main);
    cursor: pointer;
}

.task-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-pink);
    cursor: pointer;
}

.task-item input:checked + span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Responsive breakdowns */
@media (max-width: 1200px) {
    .campaign-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-sidebar);
    }
    .sidebar-brand {
        justify-content: space-between;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
    }
    .menu-item {
        white-space: nowrap;
    }
    .menu-item.active::before {
        left: 20%;
        top: auto;
        bottom: 0;
        width: 60%;
        height: 3.5px;
        border-radius: 4px 4px 0 0;
    }
    .sidebar-footer, .menu-header, .sidebar-divider, .menu-group {
        display: none;
    }
    .dashboard-top {
        grid-template-columns: 1fr;
    }
    .campaign-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Audience/Leads Redesign Styles --- */
.audience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.audience-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn i {
    width: 16px;
    height: 16px;
}

.audience-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select-header {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    height: 38px;
}

.search-box-header {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding-right: 4px;
    height: 38px;
}

.search-box-header input {
    border: none;
    outline: none;
    padding: 6px 10px 6px 36px;
    font-size: 13px;
    width: 180px;
    color: var(--text-main);
}

.search-icon-inline {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-settings-btn {
    padding: 4px;
    color: var(--text-muted);
}

.header-action-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.header-action-btn i {
    width: 16px;
    height: 16px;
}

/* Expandable Filter Panel */
.filter-panel-accordion {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    background-color: #fafbfc;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
}

.accordion-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.filter-panel-accordion.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.filter-panel-accordion.open .accordion-body {
    display: block;
}

.records-subtitle {
    font-size: 11.5px;
    color: var(--accent-pink);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Status indicator dot styling */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.follow-up { background-color: #00a294; }
.status-dot.not-interested { background-color: #0f766e; }
.status-dot.call-not-received { background-color: #64748b; }
.status-dot.new { background-color: var(--color-new); }
.status-dot.qualified { background-color: var(--color-qualified); }
.status-dot.lost { background-color: var(--color-lost); }

/* S.No repeat lead indicator R badge styling */
.sno-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-repeat-r {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    font-size: 9.5px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* WhatsApp Icon Link styling */
.whatsapp-link {
    color: #25d366;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.whatsapp-link:hover {
    transform: scale(1.15);
}

.whatsapp-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Table sort icon */
.sort-icon-inline {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    vertical-align: middle;
    margin-left: 4px;
    cursor: pointer;
}

/* Table pagination adjustments */
.pagination-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.page-number-indicator {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin: 0 4px;
}

/* Inspect Lead Modal Styles */
.inspect-details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspect-detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-size: 13.5px;
}

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

.inspect-detail-row strong {
    color: var(--text-muted);
    font-weight: 600;
}

.inspect-detail-row span {
    color: var(--text-main);
    font-weight: 500;
}

/* Interactive Inspect Lead Panel Styles - Compact */
.lead-details-wrapper {
    background: #f8fafc;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.details-action-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #cbd5e1;
}

.details-content-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Three Columns Top Dashboard Card */
.details-dashboard-grid {
    display: grid;
    grid-template-columns: 340px 1fr 320px;
    gap: 16px;
}

.details-card-box {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    position: relative;
}

.details-card-box.border-pink {
    border: 1.5px solid var(--accent-pink);
}

/* Box 1 (Left Info Box) Elements */
.lead-details-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-details-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-pink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.lead-details-name-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-details-name-edit h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.lead-details-name-edit button {
    color: var(--text-muted);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.lead-meta-row {
    font-size: 12.5px;
    margin-bottom: 6px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.lead-meta-row strong {
    color: var(--text-muted);
    font-weight: 500;
    width: 90px;
    flex-shrink: 0;
}

.lead-meta-row span {
    font-weight: 500;
    word-break: break-all;
}

.lead-meta-row a.whatsapp-btn, 
.lead-meta-row a.call-btn {
    color: #25D366;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}

.lead-meta-row a.call-btn {
    color: #0284c7;
}

.copy-id-btn {
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

.copy-id-btn:hover {
    color: var(--accent-pink);
}

/* Box 2 (Middle Info Box) Elements */
.box-title-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-val-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 10px;
}

.box-val-text:last-child {
    margin-bottom: 0;
}

.box-val-link {
    color: var(--accent-pink);
    text-decoration: underline;
    cursor: pointer;
}

/* Box 3 (Right Info Box) Elements & Icons */
.right-box-icons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.right-box-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.right-box-icon-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background: var(--accent-pink-light);
}

/* Tab bars layout */
.details-tabs-bar {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #cbd5e1;
    margin-bottom: 0px;
    background: #fff;
    padding: 0 20px;
}

.details-tab-btn {
    border: none;
    background: none;
    padding: 12px 2px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.details-tab-btn.active {
    color: var(--accent-pink);
}

.details-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-pink);
}

/* Sub tabs and parameter grids */
.details-tab-pane-container {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: none;
    padding: 16px 20px;
    border-radius: 0 0 6px 6px;
}

.details-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.details-sub-tab-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.details-sub-tab-btn.active {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background: #fff;
}

.details-tables-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.details-params-table {
    width: 100%;
    border-collapse: collapse;
}

.details-params-table th {
    background: #fff;
    padding: 8px 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    text-align: left;
    border-bottom: 1.5px solid #cbd5e1;
}

.details-params-table td {
    padding: 10px 6px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.details-params-table tr:last-child td {
    border-bottom: none;
}

.details-params-table tr:hover {
    background: #f8fafc;
}

.details-param-label {
    font-weight: 500;
    color: #64748b;
    width: 180px;
}

.details-param-value {
    font-weight: 500;
    color: #0f172a;
}

.details-param-value-editable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.details-param-edit-icon {
    color: #94a3b8;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.details-params-table tr:hover .details-param-edit-icon {
    opacity: 1;
}

.details-param-edit-icon:hover {
    color: var(--accent-pink);
}

/* Timeline/Notes panel styles */
.timeline-logs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.timeline-log-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 16px;
}

.timeline-log-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -10px;
    width: 2px;
    background: #cbd5e1;
}

.timeline-icon-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-pink);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-pink-light);
    margin-top: 2px;
    z-index: 1;
}

.timeline-log-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-log-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Notes section styles */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notes-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 16px;
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.note-card-body {
    font-size: 13px;
    color: var(--text-main);
    white-space: pre-wrap;
}

/* Status Option Grid styles */
.status-options-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.status-options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.status-opt-item {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.status-opt-item:hover {
    border-color: var(--accent-pink);
    background: var(--accent-pink-light);
}

.status-opt-item.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
}

.opt-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #94a3b8;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.status-opt-item.active .opt-circle {
    border-color: #fff;
    background: #fff;
}

.status-opt-item.active .opt-circle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-pink);
}

/* Leads Report View Styles */
.report-wrapper {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.report-title-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.report-title-back:hover {
    color: var(--accent-pink);
}

.report-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-card-section {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 20px;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.report-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-datepicker {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: #475569;
    background: #fff;
}

.report-table-container {
    width: 100%;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.report-table th:first-child {
    text-align: left;
}

.report-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #1e293b;
    text-align: center;
}

.report-table td:first-child {
    text-align: left;
}

.report-table tr:hover {
    background: #f8fafc;
}

.report-link-text {
    color: #0284c7;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.report-link-text:hover {
    text-decoration: underline;
}

.report-bold-val {
    font-weight: 600;
    color: #0f172a;
}

.report-total-row td {
    font-weight: 700;
    background: #f8fafc;
    color: #0f172a;
}

/* Datepicker Popup styles */
.datepicker-popup {
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    width: 420px;
    text-align: left;
    cursor: default;
}

.datepicker-left-presets {
    width: 130px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    background: #fff;
}

.preset-item {
    padding: 8px 16px;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.preset-item:hover {
    background: #f1f5f9;
}

.preset-item.active {
    background: var(--accent-pink);
    color: #fff;
}

.datepicker-right-calendar {
    flex-grow: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.cal-arrow-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-weight: bold;
    color: #64748b;
    font-size: 13px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 2px;
    margin-bottom: 10px;
}

.cal-day {
    font-size: 11.5px;
    color: #334155;
    padding: 4px 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: auto;
}

.cal-day:hover {
    background: #f1f5f9;
}

.cal-day.empty {
    cursor: default;
}

.cal-day.empty:hover {
    background: none;
}

.cal-day.in-range {
    background: #fae8ff;
    border-radius: 0;
}

.cal-day.range-bound {
    background: var(--accent-pink) !important;
    color: #fff !important;
}

.calendar-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Ensure last child (Action column) is compact on all viewports */
.data-table th:last-child, .data-table td:last-child {
    min-width: 65px !important;
    width: 65px !important;
    text-align: center !important;
}

/* Live VoIP Call Simulation Widget */
.voip-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #334155;
    z-index: 9999;
    padding: 16px;
    font-family: inherit;
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.voip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

.voip-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 700;
}

.voip-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

.voip-status-dot.pulse {
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.voip-status-dot.ringing {
    background: #eab308;
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    animation: statusPulseRinging 1.5s infinite;
}

@keyframes statusPulseRinging {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(234, 179, 8, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

.voip-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voip-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d81b60;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.voip-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.voip-client-name {
    font-weight: 600;
    font-size: 14px;
    color: #f8fafc;
}

.voip-client-phone {
    font-size: 12px;
    color: #94a3b8;
}

.voip-timer {
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    font-family: monospace;
}

.voip-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #334155;
}

.voip-btn-end {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.voip-btn-end:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.voip-btn-end:active {
    transform: scale(0.95);
}

/* Dialer Keypad buttons style */
.dial-key {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease, transform 0.05s ease;
}

.dial-key:hover {
    background: #f1f5f9;
}

.dial-key:active {
    transform: scale(0.95);
    background: #cbd5e1;
}
