/* LeadGen - Custom Styles */
/* Modern dark theme with green/cyan gradients */

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --accent: #22D3EE;
    
    /* Light Mode Variables */
    --bg-dark: #F8FAFC;
    --bg-body-mid: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --text-primary: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --border-light: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --stat-bg-start: rgba(255, 255, 255, 0.9);
    --stat-bg-end: rgba(255, 255, 255, 0.7);

    /* Badge Colors (Light Mode) */
    --badge-success-bg: rgba(16, 185, 129, 0.15);
    --badge-success-text: #059669;
    --badge-success-border: rgba(16, 185, 129, 0.3);
    
    --badge-warning-bg: rgba(245, 158, 11, 0.15);
    --badge-warning-text: #B45309;
    --badge-warning-border: rgba(245, 158, 11, 0.3);
    
    --badge-danger-bg: rgba(239, 68, 68, 0.15);
    --badge-danger-text: #B91C1C;
    --badge-danger-border: rgba(239, 68, 68, 0.3);
    
    --badge-info-bg: rgba(14, 165, 233, 0.15);
    --badge-info-text: #0369A1;
    --badge-info-border: rgba(14, 165, 233, 0.3);
    
    --badge-muted-bg: rgba(100, 116, 139, 0.15);
    --badge-muted-text: #475569;
    --badge-muted-border: rgba(100, 116, 139, 0.3);
}

[data-theme="dark"] {
    /* --bg-dark: #0a0e1a; */
    --bg-dark: #0d1117;
    --bg-body-mid: #0d1117;
    /* --bg-card: #111827; */
    --bg-card: #161b22;
    --bg-card-hover: #1a2332;
    --text-primary: #e8ecf4;
    --text-muted: #7a8ba5;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.04);
    /* --glass-bg: rgba(17, 24, 39, 0.85); */
    --glass-bg: rgb(13 16 23);
    --glass-hover: rgba(26, 35, 50, 0.95);
    --stat-bg-start: rgba(17, 24, 39, 0.9);
    --stat-bg-end: rgba(13, 17, 23, 0.7);

    /* Badge Colors (Dark Mode) */
    --badge-success-bg: rgba(16, 185, 129, 0.15);
    --badge-success-text: #34D399;
    --badge-success-border: rgba(16, 185, 129, 0.25);
    
    --badge-warning-bg: rgba(245, 158, 11, 0.15);
    --badge-warning-text: #FBBF24;
    --badge-warning-border: rgba(245, 158, 11, 0.25);
    
    --badge-danger-bg: rgba(239, 68, 68, 0.15);
    --badge-danger-text: #F87171;
    --badge-danger-border: rgba(239, 68, 68, 0.25);
    
    --badge-info-bg: rgba(14, 165, 233, 0.15);
    --badge-info-text: #38BDF8;
    --badge-info-border: rgba(14, 165, 233, 0.25);
    
    --badge-muted-bg: rgba(148, 163, 184, 0.12);
    --badge-muted-text: #94A3B8;
    --badge-muted-border: rgba(148, 163, 184, 0.2);
}

/* Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-card);
}

*::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Body */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-body-mid) 50%, var(--bg-dark) 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Glass Card Effect */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0 rgba(16, 185, 129, 0);
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 0 1px rgba(16, 185, 129, 0.08);
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card) 100%);
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 16px;
    /* background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Stat Cards ── */
.dash-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.dash-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dash-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 20px var(--stat-glow, rgba(99, 102, 241, 0.08));
    border-color: var(--stat-accent, rgba(99, 102, 241, 0.25));
}
.dash-stat:hover::before { opacity: 1; }
.dash-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}
.dash-stat:hover .dash-stat__icon {
    transform: scale(1.1) rotate(-3deg);
}
.dash-stat__value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}
.dash-stat__label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}
.dash-stat__link {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    opacity: 0;
    z-index: 1;
}
.dash-stat:hover .dash-stat__link {
    opacity: 1;
}
.dash-stat__link:hover {
    background: var(--primary);
    color: white;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.btn-secondary-custom:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Form Inputs */
.form-control-dark {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control-dark:focus {
    background: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.form-control-dark::placeholder {
    color: var(--text-muted);
}

/* Dark Select Elements */
.form-select.form-control-dark,
select.form-control-dark {
    background-color: var(--bg-dark);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-select.form-control-dark:focus {
    background-color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.form-select.form-control-dark option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Custom Badges */
.badge-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.badge-success-custom {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
    border: 1px solid var(--badge-success-border);
    font-weight: 600;
}

.badge-warning-custom {
    background: var(--badge-warning-bg);
    color: var(--badge-warning-text);
    border: 1px solid var(--badge-warning-border);
    font-weight: 600;
}

.badge-danger-custom {
    background: var(--badge-danger-bg);
    color: var(--badge-danger-text);
    border: 1px solid var(--badge-danger-border);
    font-weight: 600;
}

.badge-info-custom {
    background: var(--badge-info-bg);
    color: var(--badge-info-text);
    border: 1px solid var(--badge-info-border);
    font-weight: 600;
}

.badge-muted-custom {
    background: var(--badge-muted-bg);
    color: var(--badge-muted-text);
    border: 1px solid var(--badge-muted-border);
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand a {
    text-decoration: none;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.nav-link-custom.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.nav-link-custom i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    padding: 6px 2px !important;
}




/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0rem 1rem;
}

/* Table Styles */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
}

.table-dark-custom th {
    background: var(--bg-dark);
    color: var(--text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table-dark-custom td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary) !important;
}

.table-dark-custom td * {
    color: inherit;
}

.table-dark-custom td .text-muted,
.table-dark-custom td small.text-muted {
    color: var(--text-muted) !important;
}

.table-dark-custom tbody tr:hover td {
    background: rgba(16, 185, 129, 0.05);
}

/* Fix Bootstrap Select Arrow Issue */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring circle {
    transition: stroke-dashoffset 0.5s ease;
}

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-slide-up {
    animation: slide-up 0.5s ease forwards;
}

/* Toast Notifications (from DevMate) */
.dm-toast-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-toast-container.top-right {
    top: 24px;
    right: 24px;
    align-items: flex-end;
}

.dm-toast-container.top-center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.dm-toast-container.bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.dm-toast-container.bottom-right {
    bottom: 24px;
    right: 24px;
    align-items: flex-end;
}

.dm-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    pointer-events: auto;
    min-width: 260px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    animation: dmToastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.dm-toast.hiding {
    animation: dmToastOut 0.3s ease forwards;
}

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

@keyframes dmToastOut {
    to { transform: translateY(-12px); opacity: 0; }
}

.dm-toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.dm-toast-body {
    flex: 1;
    line-height: 1.35;
}

.dm-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 0 0 12px 12px;
    animation: dmToastProgress var(--toast-duration, 3s) linear forwards;
}

@keyframes dmToastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.dm-toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dm-toast.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dm-toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dm-toast.info {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

/* File Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Modal Dark Theme */
.modal-content-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
}

.modal-header-dark {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-footer-dark {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Pagination */
.pagination-dark .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.pagination-dark .page-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-dark .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

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

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

    .main-content {
        margin-left: 0;
    }
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

@media (max-width: 991.98px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

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

.status-dot.online {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-dot.offline {
    background: #EF4444;
}

.status-dot.pending {
    background: #F59E0B;
}

/* Channel Icons */
.channel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.channel-icon.email {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

.channel-icon.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.channel-icon.linkedin {
    background: rgba(10, 102, 194, 0.2);
    color: #0A66C2;
}

.channel-icon.facebook {
    background: rgba(24, 119, 242, 0.2);
    color: #1877F2;
}

.channel-icon.instagram {
    background: rgba(225, 48, 108, 0.2);
    color: #E1306C;
}

/* Card Header Gradient */
.card-header-gradient {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}
.card-header-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* Dialer-specific panel headers */
.dialer-panel-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, var(--bg-card) 50%, rgba(16, 185, 129, 0.02) 100%);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}
.dialer-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--panel-accent, rgba(99, 102, 241, 0.35)) 50%, transparent 100%);
}
.dialer-panel-header .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}
.dialer-panel-header .panel-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.dialer-panel-header .panel-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dropdown Dark */
.dropdown-menu-dark-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-menu-dark-custom .dropdown-item {
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.dropdown-menu-dark-custom .dropdown-item:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

/* ============================================
   CUSTOM CHECKBOXES - Instant Visual Feedback
   ============================================ */
.form-check-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-dark);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    margin: 0;
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.1);
}

.form-check-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Active state for instant feedback */
.form-check-input:active {
    transform: scale(0.92);
}

/* ============================================
   ENHANCED TABLE STYLING
   ============================================ */
.table-dark-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-dark-custom tbody tr:hover {
    /* background-color: rgba(16, 185, 129, 0.08); */
}

.table-dark-custom td {
    color: var(--text-primary);
}

/* ============================================
   MODERN BADGES - More vibrant
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}



/* ============================================
   ENHANCED BUTTONS
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-secondary-custom {
    background: var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.btn-secondary-custom:hover {
    background: var(--border-light);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline-light:hover {
    background: var(--border-light);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ============================================
   ENHANCED FORM INPUTS
   ============================================ */
.form-control-dark {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control-dark:focus {
    background: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.form-control-dark::placeholder {
    color: var(--text-muted);
}

.form-control-dark:disabled,
.form-control-dark[readonly] {
    background-color: var(--bg-body-mid);
    color: var(--text-muted);
    opacity: 1;
}

/* ============================================
   ENHANCED GLASS CARDS (Removed Glass)
   ============================================ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

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

/* ============================================
   ENHANCED STAT CARDS
   ============================================ */
.stat-card {
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.15);
}

/* ============================================
   ENHANCED SIDEBAR
   ============================================ */
.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 0.25rem;
    position: relative;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease;
}

.nav-link-custom:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}

.nav-link-custom.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--primary);
}

.nav-link-custom.active::before {
    height: 60%;
}

/* ============================================
   MODERN MODAL ENHANCEMENTS
   ============================================ */
.modal-content-dark {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================
   MODERN SELECT DROPDOWNS
   ============================================ */
.form-select.form-control-dark {
    background-color: var(--bg-dark);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 10px;
    padding-right: 2.5rem;
}

.form-select.form-control-dark option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

/* ============================================
   TEXT COLOR HELPERS
   ============================================ */
.text-primary-custom {
    color: var(--text-primary) !important;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.text-success-custom {
    color: #34D399 !important;
}

.text-danger-custom {
    color: #F87171 !important;
}

/* ============================================
   LOADING/SKELETON STATES
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 767.98px) {
    .glass-card {
        border-radius: 16px;
    }

    .stat-card {
        padding: 1.25rem;
    }
}

/* ============================================
   TEXT COLOR FIXES - High visibility
   ============================================ */
.text-muted {
    color: #94A3B8 !important;
}

h5,
h6,
.h5,
.h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-primary);
}

.upload-zone h5 {
    color: var(--text-primary);
}

.upload-zone p,
.upload-zone .text-muted {
    color: #94A3B8 !important;
}

label,
.form-label {
    color: var(--text-primary);
}

.form-check-label {
    color: var(--text-primary);
}

/* ============================================
   SUPER COOL DARK GRADIENT BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}



/* Bootstrap badge overrides for dark theme */
.badge.bg-secondary {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.4) 0%, rgba(51, 65, 85, 0.7) 100%) !important;
    color: #E2E8F0 !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(6, 78, 59, 0.7) 100%) !important;
    color: #A7F3D0 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(127, 29, 29, 0.7) 100%) !important;
    color: #FECACA !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(146, 64, 14, 0.7) 100%) !important;
    color: #FDE68A !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.4) 0%, rgba(14, 116, 144, 0.7) 100%) !important;
    color: #A5F3FC !important;
}

/* ============================================
   DARK PAGINATION - Full dark theme
   ============================================ */
.pagination {
    --bs-pagination-bg: var(--bg-card);
    --bs-pagination-border-color: var(--border-color);
    --bs-pagination-color: var(--text-primary);
    --bs-pagination-hover-bg: var(--bg-card-hover);
    --bs-pagination-hover-border-color: var(--primary);
    --bs-pagination-hover-color: var(--primary);
    --bs-pagination-active-bg: var(--primary);
    --bs-pagination-active-border-color: var(--primary);
    --bs-pagination-disabled-bg: var(--bg-dark);
    --bs-pagination-disabled-color: #475569;
    --bs-pagination-disabled-border-color: var(--border-color);
}

.pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--bg-dark);
    border-color: var(--border-color);
    color: #475569;
}

/* Livewire pagination wrapper fix */
nav[role="navigation"] .pagination {
    margin-bottom: 0;
}

nav[role="navigation"] span[aria-current="page"] span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* ============================================
   ALERT THEME (Light & Dark Adaptive)
   ============================================ */
.alert-info {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(14, 116, 144, 0.1) 100%);
    border-color: rgba(34, 211, 238, 0.3);
    color: #0891B2;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(146, 64, 14, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    color: #B45309;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(127, 29, 29, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #B91C1C;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}

[data-theme="dark"] .alert-info { color: #67E8F9; }
[data-theme="dark"] .alert-warning { color: #FCD34D; }
[data-theme="dark"] .alert-danger { color: #FCA5A5; }
[data-theme="dark"] .alert-success { color: #6EE7B7; }

/* ============================================
   WHATSAPP INBOX STYLES
   ============================================ */

/* Container */
.wa-inbox {
    display: flex;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
}

/* Mobile Header */
.wa-mobile-header {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* Sidebar */
.wa-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .wa-sidebar {
        position: fixed;
        top: 126px;
        left: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .wa-sidebar.show {
        transform: translateX(0);
    }

    .wa-chat {
        padding-top: 56px;
    }
}

.wa-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* Sidebar Tabs */
.wa-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.wa-sidebar-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wa-sidebar-tab:hover {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.04);
}

.wa-sidebar-tab.active {
    color: #10B981;
    border-bottom-color: #10B981;
    background: rgba(16, 185, 129, 0.06);
}

.wa-sidebar-tab i {
    font-size: 0.95rem;
}

.wa-tab-badge {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.wa-tab-count {
    background: rgba(148, 163, 184, 0.2);
    color: #94A3B8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Filter Bar */
.wa-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.wa-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-size: 0.78rem;
    font-weight: 600;
}

.wa-filter-clear {
    background: var(--border-light);
    border: none;
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.wa-filter-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Accounts List */
.wa-accounts-list {
    overflow-y: auto;
    max-height: calc(100vh - 110px);
}

.wa-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.wa-account-item:hover {
    background: rgba(16, 185, 129, 0.06);
}

.wa-account-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10B981;
}

.wa-account-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    font-size: 1rem;
    flex-shrink: 0;
}

.wa-account-icon.all {
    background: rgba(34, 211, 238, 0.15);
    color: #22D3EE;
}

.wa-account-info {
    flex: 1;
    min-width: 0;
}

.wa-account-name {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-account-detail {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.wa-account-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search */
.wa-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.wa-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
}

.wa-search-box i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.wa-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.85rem;
}

.wa-search-box input::placeholder {
    color: var(--text-muted);
}

/* Conversations */
.wa-conversations {
    flex: 1;
    overflow-y: auto;
}

.wa-conv-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    transition: background 0.15s;
}

.wa-conv-item:hover {
    background: rgba(16, 185, 129, 0.03);
}

.wa-conv-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--primary);
}

.wa-conv-info {
    flex: 1;
    min-width: 0;
}

.wa-conv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.wa-conv-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-conv-time {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.wa-conv-preview {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.wa-conv-preview span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Avatar */
.wa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-avatar i {
    color: var(--primary);
    font-size: 1.25rem;
}

.wa-avatar-sm {
    width: 32px;
    height: 32px;
}

.wa-avatar-sm i {
    font-size: 1rem;
}

.wa-avatar-lg {
    width: 90px;
    height: 90px;
    border: 2px solid var(--primary);
}

.wa-avatar-lg i {
    font-size: 2.5rem;
}

/* Badge */
.wa-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

.wa-badge-primary {
    background: var(--primary);
    color: #fff;
}

.wa-badge-danger {
    background: #EF4444;
    color: #fff;
}

.wa-badge-muted {
    background: var(--bg-card-hover);
    color: var(--text-muted);
}

/* Chat Area */
.wa-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-dark);
}

.wa-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

/* Messages */
.wa-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wa-msg {
    display: flex;
    max-width: 65%;
    animation: msgSlide 0.2s ease-out;
}

.wa-msg.in {
    align-self: flex-start;
}

.wa-msg.out {
    align-self: flex-end;
}

@keyframes msgSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.wa-msg-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    max-width: 100%;
}

.wa-msg.in .wa-msg-bubble {
    background: var(--bg-card);
    border-bottom-left-radius: 4px;
}

.wa-msg.out .wa-msg-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom-right-radius: 4px;
}

.wa-msg-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.875rem;
    line-height: 1.4;
}

.wa-msg.in .wa-msg-text {
    color: var(--text-primary);
}

.wa-msg.out .wa-msg-text {
    color: #fff;
}

.wa-msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 0.15rem;
    font-size: 0.65rem;
}

.wa-msg.in .wa-msg-meta {
    color: var(--text-muted);
}

.wa-msg.out .wa-msg-meta {
    color: rgba(255, 255, 255, 0.7);
}

/* Media in Messages */
.wa-media {
    margin-bottom: 0.35rem;
    border-radius: 8px;
    overflow: hidden;
}

.wa-media img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wa-media img:hover {
    opacity: 0.9;
}

.wa-media video,
.wa-media audio {
    max-width: 100%;
    display: block;
}

.wa-media-doc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.wa-media-doc:hover {
    background: rgba(0, 0, 0, 0.3);
}

.wa-media-doc i {
    font-size: 1.75rem;
}

.wa-media-doc-info {
    flex: 1;
}

.wa-media-doc-info span {
    display: block;
    font-size: 0.85rem;
}

.wa-media-doc-info small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.wa-media-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: var(--text-muted);
}

.wa-media-placeholder i {
    font-size: 1.25rem;
}

/* Input Area */
.wa-input {
    padding: 0.75rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.wa-input-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 0.35rem;
}

.wa-attach-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.wa-attach-btn:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.wa-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem;
}

.wa-input-field::placeholder {
    color: var(--text-muted);
}

.wa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-send-btn.ready {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wa-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* File Preview Modal */
.wa-file-preview {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wa-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.wa-file-header h6 {
    margin: 0;
    color: var(--text-primary);
}

.wa-file-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.wa-file-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.wa-file-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.wa-file-img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wa-file-doc-preview {
    text-align: center;
    color: var(--text-primary);
}

.wa-file-doc-preview i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.wa-file-doc-preview p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.wa-file-doc-preview small {
    color: var(--text-muted);
}

.wa-file-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.wa-file-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wa-file-caption input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.wa-file-caption input:focus {
    outline: none;
    border-color: var(--primary);
}

.wa-file-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Contact Panel */
.wa-contact-panel {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media (max-width: 1199.98px) {
    .wa-contact-panel {
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .wa-contact-panel.show {
        transform: translateX(0);
    }
}

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

.wa-panel-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.wa-profile {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.wa-profile h5 {
    color: var(--text-primary);
    margin: 0.75rem 0 0.25rem;
    font-size: 1.1rem;
}

.wa-profile p {
    color: var(--primary);
    font-size: 0.85rem;
    margin: 0;
}

.wa-info-card {
    margin: 0 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

.wa-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

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

.wa-info-row>i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.wa-info-row>div label {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.wa-info-row>div span {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.wa-lead-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem;
    padding: 0.875rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.wa-lead-link:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text-primary);
}

.wa-lead-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-lead-icon i {
    color: var(--primary);
}

.wa-lead-info span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.wa-lead-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Lead Detail Modal */
.wa-lead-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.wa-lead-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 580px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(16, 185, 129, 0.08);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.wa-lead-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-dark);
}

.wa-lead-modal-header h5 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.wa-lead-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.wa-lead-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
    transform: scale(1.05);
}

.wa-lead-modal-body {
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    flex: 1;
}

.wa-lead-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.wa-lead-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wa-lead-section-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wa-lead-section-title i {
    font-size: 0.9rem;
}

.wa-lead-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.55rem 0;
    gap: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.wa-lead-info-row:last-child {
    border-bottom: none;
}

.wa-lead-info-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.wa-lead-info-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.wa-lead-info-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.wa-lead-info-value a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .wa-lead-modal-overlay {
        padding: 1rem;
    }
    .wa-lead-modal-content {
        max-height: 90vh;
        border-radius: 16px;
    }
}

.wa-panel-actions {
    padding: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.wa-refresh-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wa-refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Attachment Preview Bar */
.wa-attach-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.wa-attach-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-attach-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-attach-thumb i {
    font-size: 1.5rem;
    color: var(--primary);
}

.wa-attach-info {
    flex: 1;
    min-width: 0;
}

.wa-attach-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-attach-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.wa-attach-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.wa-attach-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Upload Progress */
.wa-upload-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.wa-progress {
    flex: 1;
    height: 4px;
    background: var(--bg-card-hover);
    border-radius: 2px;
    overflow: hidden;
}

.wa-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0% {
        width: 20%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 20%;
    }
}

/* Welcome Screen */
.wa-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.wa-welcome-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wa-welcome-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.wa-welcome h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wa-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

/* Empty State */
.wa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.wa-empty i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.wa-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Utilities */
.wa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Panel Tabs */
.wa-panel-tabs {
    display: flex;
    gap: 0;
    flex: 1;
}

.wa-panel-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-bottom: 2px solid transparent;
}

.wa-panel-tab:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.wa-panel-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.wa-panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Copilot Styles */
.wa-copilot {
    padding: 0;
}

.wa-copilot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.wa-copilot-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.wa-copilot-setting {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wa-copilot-setting label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.wa-copilot-setting select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.wa-copilot-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wa-copilot-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.wa-copilot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wa-copilot-msg {
    display: flex;
}

.wa-copilot-msg.user {
    justify-content: flex-end;
}

.wa-copilot-msg.assistant,
.wa-copilot-msg.error {
    justify-content: flex-start;
}

.wa-copilot-bubble {
    max-width: 90%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.wa-copilot-bubble.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.wa-copilot-bubble.assistant {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wa-copilot-bubble.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.wa-copilot-use {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.wa-copilot-use:hover {
    background: var(--primary);
    color: white;
}

.wa-copilot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    flex: 1;
}

.wa-copilot-empty i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.wa-copilot-empty p {
    margin: 0;
    font-size: 0.85rem;
}

.wa-copilot-empty small {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.wa-copilot-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.wa-copilot-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.wa-copilot-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.wa-copilot-input input:disabled {
    opacity: 0.5;
}

.wa-copilot-send {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-copilot-send:hover:not(:disabled) {
    background: var(--primary-dark);
}

.wa-copilot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typing Animation */
.wa-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.wa-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.wa-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.wa-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Send Button Spinner */
.wa-send-icon,
.wa-send-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-send-btn.sending,
.wa-copilot-send.sending {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    pointer-events: none;
}

.wa-spinner-svg {
    width: 18px;
    height: 18px;
    animation: rotate 1s linear infinite;
}

.wa-spinner-circle {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 45;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 60;
        stroke-dasharray: 60;
    }

    50% {
        stroke-dashoffset: 15;
        stroke-dasharray: 60;
    }

    100% {
        stroke-dashoffset: 60;
        stroke-dasharray: 60;
    }
}

/* Input disabled state during sending */
.wa-input-field:disabled,
.wa-copilot-input input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Media Placeholder Card */
.wa-media-placeholder-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 220px;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wa-media-placeholder-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wa-media-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.wa-media-icon i {
    font-size: 1.25rem;
    color: white;
}

.wa-media-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wa-media-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wa-media-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-media-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wa-media-placeholder-card:hover .wa-media-action {
    background: var(--primary);
}

.wa-media-action i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.wa-media-placeholder-card:hover .wa-media-action i {
    color: white;
}

/* Media Modal */
.wa-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.wa-media-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wa-media-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--border-light);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-media-modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.wa-media-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-media-modal-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wa-media-modal-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wa-media-modal-audio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    min-width: 350px;
}

.wa-audio-visualizer {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.wa-audio-visualizer i {
    font-size: 3rem;
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.wa-media-modal-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.wa-media-modal-doc i {
    font-size: 4rem;
    color: var(--primary);
}

.wa-media-modal-doc span {
    font-size: 1rem;
    color: var(--text-primary);
}

.wa-media-modal-footer {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 600px;
}

.wa-media-modal-footer p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.wa-media-modal-download {
    position: absolute;
    bottom: -50px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wa-media-modal-download:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    color: white;
}

/* Message Status Icons */
.wa-status-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
    margin-left: 4px;
}

.wa-status-icon i {
    font-size: 0.85rem;
}

.wa-status-icon:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.wa-status-read {
    color: #00E5FF !important;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
}

.wa-status-delivered {
    color: #B0BEC5 !important;
    text-shadow: 0 0 4px rgba(176, 190, 197, 0.5);
}

.wa-status-sent {
    color: #90A4AE !important;
}

.wa-status-pending {
    color: #FFB300 !important;
    text-shadow: 0 0 6px rgba(255, 179, 0, 0.6);
    animation: pulse-pending 1.5s ease-in-out infinite;
}

.wa-status-failed {
    color: #FF5252 !important;
    text-shadow: 0 0 6px rgba(255, 82, 82, 0.8);
}

@keyframes pulse-pending {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Status Modal */
.wa-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.wa-status-modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.wa-status-modal-header h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.wa-status-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wa-status-modal-close:hover {
    color: white;
    background: var(--border-light);
}

.wa-status-modal-body {
    padding: 1.5rem 1.25rem;
}

.wa-status-timeline {
    position: relative;
    padding-left: 28px;
}

.wa-status-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border-color);
}

.wa-status-item {
    position: relative;
    padding-bottom: 1.25rem;
    opacity: 0.4;
}

.wa-status-item:last-child {
    padding-bottom: 0;
}

.wa-status-item.active {
    opacity: 1;
}

.wa-status-item.pending {
    opacity: 0.6;
}

.wa-status-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: var(--border-color);
}

.wa-status-item.active .wa-status-dot.created {
    background: #94A3B8;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
}

.wa-status-item.active .wa-status-dot.sent {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.wa-status-item.active .wa-status-dot.delivered {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.wa-status-item.active .wa-status-dot.read {
    background: #22D3EE;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.wa-status-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wa-status-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wa-status-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wa-status-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #F87171;
    font-size: 0.8rem;
}

.wa-status-error i {
    font-size: 1rem;
}

/* Contact Label Section */
.wa-label-section {
    margin: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 0.875rem;
}

.wa-label-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.wa-label-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wa-label-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.wa-label-toggle:hover {
    color: var(--primary);
}

.wa-current-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wa-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wa-label-remove {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wa-label-remove:hover {
    opacity: 1;
}

.wa-label-description {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.wa-no-label {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px dashed rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.wa-no-label:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(100, 116, 139, 0.6);
    color: var(--text-primary);
}

.wa-label-dropdown {
    margin-top: 0.75rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.wa-label-list {
    max-height: 200px;
    overflow-y: auto;
}

.wa-label-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.875rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.wa-label-option:last-child {
    border-bottom: none;
}

.wa-label-option:hover {
    background: var(--border-light);
}

.wa-label-option.active {
    background: rgba(16, 185, 129, 0.1);
}

.wa-label-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wa-label-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.wa-label-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.wa-label-actions {
    padding: 0.65rem 0.875rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.wa-create-label-btn {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px dashed rgba(100, 116, 139, 0.4);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-create-label-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Label Modal */
.wa-label-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wa-label-modal-content {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.wa-label-modal-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.wa-label-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.wa-label-modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.wa-label-modal-body {
    padding: 1.25rem;
}

.wa-label-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

/* Color Picker */
.wa-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wa-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wa-color-option:hover {
    transform: scale(1.1);
}

.wa-color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--bg-dark), 0 0 12px rgba(255, 255, 255, 0.3);
}

.wa-color-option i {
    font-size: 0.9rem;
}

/* Label Preview */
.wa-label-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-dark);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.wa-label-title-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wa-label-badge-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Conversation List Label */
.wa-conv-name-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.wa-conv-name-wrap .wa-conv-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.wa-conv-label {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Label indicator dot on avatar */
.wa-avatar {
    position: relative;
}

.wa-avatar-label-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LEADS PAGE - Card & Table Styles
   ============================================ */

/* Lead Card Container */
.lead-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lead-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Stage Ribbon */
.stage-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 16px 6px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 16px 0 16px;
}

/* Animated Status Dot */
.status-dot-animated {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Gradient Badges - Vibrant Colors */
.gradient-badge-success {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.4);
}

.gradient-badge-danger {
    background: linear-gradient(135deg, #F87171, #EF4444);
    color: white;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    box-shadow: 0 2px 10px rgba(248, 113, 113, 0.4);
}

.gradient-badge-warning {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #1E293B;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
}

.gradient-badge-info {
    background: linear-gradient(135deg, var(--accent), #06B6D4);
    color: white;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    box-shadow: 0 2px 10px rgba(34, 211, 238, 0.4);
}

.gradient-badge-whatsapp {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: white;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    box-shadow: 0 2px 10px rgba(74, 222, 128, 0.4);
}

.gradient-badge-muted {
    background: rgba(100, 116, 139, 0.25);
    color: var(--text-muted);
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
}

/* Card Action Buttons - Light & Vibrant */
.btn-gradient-success {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    border: none;
    color: #0F172A;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
    border-radius: 10px;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 222, 128, 0.5);
    color: #0F172A;
    background: linear-gradient(135deg, #6EE7A5, #34D399);
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #FB7185, #F43F5E);
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4);
    border-radius: 10px;
}

.btn-gradient-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 113, 133, 0.5);
    color: white;
    background: linear-gradient(135deg, #FDA4AF, #FB7185);
}

.btn-gradient-info {
    background: linear-gradient(135deg, #A5B4FC, #818CF8);
    border: none;
    color: #1E1B4B;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 180, 252, 0.4);
    border-radius: 10px;
}

.btn-gradient-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(165, 180, 252, 0.5);
    color: #1E1B4B;
    background: linear-gradient(135deg, #C7D2FE, #A5B4FC);
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #FCD34D, #FBBF24);
    border: none;
    color: #1E293B;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.4);
    border-radius: 10px;
}

.btn-gradient-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 211, 77, 0.5);
    color: #1E293B;
    background: linear-gradient(135deg, #FDE68A, #FCD34D);
}

/* Enhanced Table Container */
.leads-table-container {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.leads-table thead {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
}

.leads-table thead th {
    color: #E2E8F0;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    white-space: nowrap;
}

.leads-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(100, 116, 139, 0.08);
}

.leads-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

.leads-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #CBD5E1;
}

/* Table Gradient Badges */
.badge-gradient-success {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.badge-gradient-danger {
    background: linear-gradient(135deg, #F87171, #EF4444);
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}

.badge-gradient-info {
    background: linear-gradient(135deg, #818CF8, #6366F1);
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.3);
}

.badge-gradient-warning {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #1E293B;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-gradient-whatsapp {
    background: linear-gradient(135deg, #4ADE80, #22C55E);
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.badge-muted {
    background: rgba(100, 116, 139, 0.25);
    color: #94A3B8;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Table Action Buttons */
.action-btn {
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ============================================
   SPLIT-PANE LAYOUT - Card View with Details
   ============================================ */

.leads-split-container {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 280px);
}

.leads-cards-panel {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    padding-right: 8px;
}

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

.leads-cards-panel::-webkit-scrollbar-track {
    background: rgba(100, 116, 139, 0.1);
    border-radius: 3px;
}

.leads-cards-panel::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}

.leads-cards-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.leads-details-panel {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-dark));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.leads-details-panel::-webkit-scrollbar {
    width: 5px;
}

.leads-details-panel::-webkit-scrollbar-track {
    background: transparent;
}

.leads-details-panel::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.details-panel-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 211, 238, 0.1));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px 24px;
    border-radius: 20px 20px 0 0;
}

.details-panel-body {
    padding: 24px;
}

.details-section {
    background: var(--bg-body-mid);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.details-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-section-title i {
    color: var(--primary);
}

.details-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 576px) {
    .details-info-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }
    .details-info-label {
        flex: 0 0 120px; /* Fixed width for labels to align values nicely */
    }
}

.details-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.details-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.details-info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: left;
    flex: 1;
    word-break: break-word;
}

.details-info-value a {
    color: #22D3EE;
    text-decoration: none;
    transition: color 0.2s;
}

.details-info-value a:hover {
    color: #67E8F9;
}

.details-action-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.details-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    padding: 40px;
    text-align: center;
}

.details-empty-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.details-empty-icon i {
    font-size: 2.5rem;
    color: #6366F1;
}

.lead-card.selected {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 12px 30px rgba(99, 102, 241, 0.2) !important;
}

/* Table slide-out panel */
.table-with-details {
    display: flex;
    gap: 20px;
}

.table-main {
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease;
}

.table-details-panel {
    width: 420px;
    min-width: 420px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-dark));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .leads-details-panel {
        width: 400px;
        min-width: 400px;
    }
    .table-details-panel {
        width: 380px;
        min-width: 380px;
    }
}

@media (max-width: 1200px) {
    .leads-split-container {
        flex-direction: column;
    }
    .leads-details-panel {
        width: 100%;
        min-width: 100%;
        max-height: none;
        position: relative;
        top: 0;
    }
    .leads-cards-panel {
        max-height: none;
    }
    .table-with-details {
        flex-direction: column;
    }
    .table-details-panel {
        width: 100%;
        min-width: 100%;
        position: relative;
    }
}

/* Theme Text Override */
.text-theme {
    color: var(--text-primary) !important;
}
.admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    /* background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%); */
    background: linear-gradient(180deg, #010409 0%, #0d1117 50%, #010409 100%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, left 0.25s ease;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);

    /* Dynamic Theme Colors for Sidebar Modes */
    --primary-rgb: 16, 185, 129;
    --active-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.02) 100%);
    --active-border: rgba(16, 185, 129, 0.2);
    --active-color: #ffffff;
    --active-icon: #10B981;
    --active-glow: rgba(16, 185, 129, 0.4);
    --active-indicator: linear-gradient(180deg, #10B981 0%, #059669 100%);
}

.admin-sidebar.leads-sidebar {
    --primary: #6366F1;
    --accent: #8B5CF6;
    --primary-rgb: 99, 102, 241;
    --active-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.02) 100%);
    --active-border: rgba(99, 102, 241, 0.2);
    --active-color: #ffffff;
    --active-icon: #a5b4fc;
    --active-glow: rgba(99, 102, 241, 0.45);
    --active-indicator: linear-gradient(180deg, #6366F1 0%, #8B5CF6 100%);
}

.admin-sidebar.whatsapp-sidebar {
    --primary: #25D366;
    --accent: #128C7E;
    --primary-rgb: 37, 211, 102;
    --active-bg: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.01) 100%);
    --active-border: rgba(37, 211, 102, 0.18);
    --active-color: #ffffff;
    --active-icon: #25D366;
    --active-glow: rgba(37, 211, 102, 0.35);
    --active-indicator: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
}

.sidebar-brand {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 70px;
}

.sidebar-brand img, .sidebar-brand .brand-icon { 
    /* max-height: 26px;  */
    width: auto; 
    transition: 0.25s ease; 
}
.sidebar-brand .brand-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}
.sidebar-brand .brand-text span { color: var(--primary); }

.sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 16, 185, 129), 0.15);
    color: white;
    font-weight: bold;
}

.sidebar-user-info h6 { color: #e6edf3; font-size: 13px; font-weight: 600; margin: 0; line-height: 1.3; }
.sidebar-user-info p { color: #8b949e; font-size: 11px; margin: 0; line-height: 1.3; }

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.nav-heading {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #546e7a;
    padding: 16px 24px 6px;
    margin-top: 4px;
    list-style: none;
}

.nav-item { list-style: none; margin: 1px 8px; }

.nav-item > a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    color: #8b949e;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13.5px; font-weight: 500;
    position: relative; white-space: nowrap;
    text-decoration: none;
}

.nav-item > a i { 
    font-size: 18px; 
    width: 20px; 
    text-align: center; 
    flex-shrink: 0; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    color: #8b949e;
}

.nav-item > a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3.5px;
    height: 18px;
    background: var(--active-indicator);
    border-radius: 100px;
    box-shadow: 0 0 12px var(--active-glow);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-item > a:hover { 
    background: rgba(255, 255, 255, 0.04); 
    color: #e6edf3; 
    padding-left: 19px;
}

.nav-item > a:hover i {
    color: #ffffff;
}

.nav-item > a.active { 
    background: var(--active-bg);
    color: #ffffff !important; 
    border-radius: 8px;
    border: 1px solid var(--active-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-weight: 600;
    padding-left: 21px;
}

.nav-item > a.active::before {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
}

.nav-item > a.active i { 
    color: var(--active-icon) !important; 
    filter: drop-shadow(0 0 8px var(--active-glow));
    transform: scale(1.08);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: #8b949e;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
}
.sidebar-footer a:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.sidebar-footer a i { font-size: 18px; width: 20px; text-align: center; }

@media (max-width: 991.98px) {
    .admin-sidebar { left: -260px; }
    .admin-sidebar.show { left: 0; }
    .sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,0.5); z-index: 1035;
    }
    .admin-sidebar.show + .sidebar-overlay { display: block; }
}

/* ============================================
   GLOBAL BOOTSTRAP OVERRIDES (THEME MATCHING)
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, var(--accent))) !important;
    color: white !important;
    border: none !important;
    font-weight: 500;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    color: white !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
/* Lead Queue Item Hover/Active */
.lead-queue-item:hover {
    background: rgba(99, 102, 241, 0.05) !important;
}
.lead-queue-item.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-left: 3px solid #6366F1 !important;
}

/* ====== DIALER TABS ====== */
.dialer-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    padding: 0 8px;
    gap: 2px;
    overflow-x: auto;
    position: relative;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02), transparent);
}
.dialer-tabs-nav::-webkit-scrollbar { display: none; }
.dialer-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
}
.dialer-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #818CF8);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.dialer-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.04);
}
.dialer-tab-btn:hover::after {
    width: 50%;
}
.dialer-tab-btn.active {
    color: #818CF8;
}
.dialer-tab-btn.active::after {
    width: 100%;
    background: linear-gradient(90deg, #6366F1, #A78BFA);
}
.dialer-tab-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.dialer-tab-btn.active i {
    transform: scale(1.1);
}
.dialer-tab-badge {
    font-size: 0.58rem;
    background: rgba(99, 102, 241, 0.12);
    color: #818CF8;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    transition: all 0.2s ease;
}
.dialer-tab-btn.active .dialer-tab-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #A78BFA;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}
.dialer-tab-badge.good {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}
.dialer-tab-badge.bad {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

/* ====== WHATSAPP CHAT ====== */
.wa-chat-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wa-msg {
    display: flex;
}
.wa-msg-in {
    justify-content: flex-start;
}
.wa-msg-out {
    justify-content: flex-end;
}
.wa-msg-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
}
.wa-msg-bubble.inbound {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.wa-msg-bubble.outbound {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}
.wa-msg-template-badge {
    font-size: 0.68rem;
    color: #8B5CF6;
    margin-bottom: 4px;
    font-weight: 500;
}
.wa-msg-text {
    word-break: break-word;
}
.wa-msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
}
.wa-msg-status {
    font-size: 0.8rem;
}

/* ====== SOCIAL LINKS ====== */
.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.social-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.social-link-card:hover {
    border-color: var(--social-color);
    background: color-mix(in srgb, var(--social-color) 5%, var(--bg-dark));
    transform: translateX(3px);
    color: var(--text-primary);
}
.social-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--social-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-color);
    font-size: 1rem;
    flex-shrink: 0;
}
.social-link-info {
    flex: 1;
    min-width: 0;
}
.social-link-name {
    font-weight: 600;
    font-size: 0.82rem;
}
.social-link-url {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.social-link-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.2s;
}
.social-link-card:hover .social-link-arrow {
    color: var(--social-color);
}

/* ====== PAGESPEED ====== */
.speed-score-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--score-color) calc(var(--score-pct) * 3.6deg),
        var(--border-color) calc(var(--score-pct) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.speed-score-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.speed-score-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--score-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.speed-score-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.speed-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.speed-metric-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.speed-metric-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.speed-metric-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}
.speed-metric-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ====== CALL RECORDING PLAYER ====== */
.call-recording-player {
    padding: 6px 10px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 8px;
}
.call-rec-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
.call-rec-play-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.1);
}
.call-rec-play-btn.playing {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}
.call-rec-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.call-rec-track:hover {
    height: 8px;
}
.call-rec-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
    border-radius: 3px;
    transition: width 0.1s linear;
}
.call-rec-time {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 65px;
    text-align: right;
}

/* ====== CALL SIDEBAR PANEL ====== */
.call-sidebar-panel {
    display: flex;
    flex-direction: column;
}
.call-sidebar-panel::-webkit-scrollbar { width: 4px; }
.call-sidebar-panel::-webkit-scrollbar-track { background: transparent; }
.call-sidebar-panel::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 4px; }

/* Top Bar */
.call-sidebar-topbar {
    padding: 14px 16px 0;
    text-align: center;
}
.call-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.call-status-pill.dialing {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    animation: pill-pulse 1.5s ease-in-out infinite;
}
.call-status-pill.ringing {
    background: var(--badge-warning-bg);
    color: var(--badge-warning-text);
    animation: pill-pulse 1s ease-in-out infinite;
}
.call-status-pill.connected {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
}
.call-status-pill.ended {
    background: var(--badge-danger-bg);
    color: var(--badge-danger-text);
}
@keyframes pill-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Avatar Ring */
.call-avatar-section {
    display: flex;
    justify-content: center;
    padding: 14px 0 8px;
}
.call-avatar-ring {
    position: relative;
    width: 64px;
    height: 64px;
}
.call-avatar-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.4s ease;
}
.call-avatar-ring.dialing .call-avatar-inner {
    background: rgba(99, 102, 241, 0.12);
    color: #6366F1;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}
.call-avatar-ring.ringing .call-avatar-inner {
    background: rgba(245, 158, 11, 0.12);
    color: var(--badge-warning-text);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
    animation: avatar-shake 0.4s ease-in-out infinite;
}
.call-avatar-ring.connected .call-avatar-inner {
    background: rgba(16, 185, 129, 0.15);
    color: var(--badge-success-text);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.18);
}
.call-avatar-ring.ended .call-avatar-inner {
    background: rgba(239, 68, 68, 0.1);
    color: var(--badge-danger-text);
}

@keyframes avatar-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.call-ring-svg {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
}
.ring-animated {
    stroke: #6366F1;
    stroke-linecap: round;
    animation: ring-spin 1.8s linear infinite;
    transform-origin: center;
}
.call-avatar-ring.ringing .ring-animated {
    stroke: #F59E0B;
    animation-duration: 1.2s;
}
@keyframes ring-spin {
    0% { stroke-dashoffset: 289; transform: rotate(0deg); }
    50% { stroke-dashoffset: 72; }
    100% { stroke-dashoffset: 289; transform: rotate(360deg); }
}

/* Contact Info */
.call-contact-info {
    text-align: center;
    padding: 0 16px;
}
.call-contact-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.call-contact-number {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Timer */
.call-timer-section {
    text-align: center;
    padding: 8px 0 6px;
}
.call-timer-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1.5px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Waveform */
.call-waveform-section {
    text-align: center;
    padding: 0 16px 6px;
}
.call-waveform-canvas {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

/* Device Selectors */
.call-devices-section {
    padding: 6px 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.call-device-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.call-device-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.call-device-select {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 4px 8px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.call-device-select:focus {
    border-color: rgba(99, 102, 241, 0.4);
}
.call-device-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}
.call-refresh-devices-btn {
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.68rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-top: 2px;
}
.call-refresh-devices-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
    background: rgba(99, 102, 241, 0.04);
}

/* Call Controls */
.call-controls-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
}
.call-ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 12px;
}
.call-ctrl-btn:hover {
    color: var(--text-primary);
}
.call-ctrl-btn:hover .call-ctrl-icon {
    background: var(--bg-card-hover);
    transform: scale(1.08);
}
.call-ctrl-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}
.call-ctrl-btn.active .call-ctrl-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
}
.call-ctrl-btn.active.danger .call-ctrl-icon {
    background: var(--badge-danger-bg);
    border-color: var(--badge-danger-border);
    color: var(--badge-danger-text);
}
.call-ctrl-btn.active.warning .call-ctrl-icon {
    background: var(--badge-warning-bg);
    border-color: var(--badge-warning-border);
    color: var(--badge-warning-text);
}
.call-ctrl-btn span {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Keypad */
.call-keypad-section {
    padding: 0 16px 6px;
}
.dtmf-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 190px;
    margin-left: auto;
    margin-right: auto;
}
.dtmf-digits {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtmf-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}
.dtmf-clear-btn:hover {
    color: #EF4444;
}
.call-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 190px;
    margin: 0 auto;
}
.call-keypad-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.call-keypad-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}
.call-keypad-btn:active {
    transform: scale(0.92);
    background: rgba(99, 102, 241, 0.18);
}

/* End Call / Close Buttons */
.call-action-section {
    text-align: center;
    padding: 6px 16px 12px;
}
.call-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.call-end-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.call-end-btn:active {
    transform: scale(0.97);
}
.call-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 40px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.call-close-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Divider */
.call-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 16px;
}

/* Notes Section */
.call-notes-section {
    padding: 10px 16px 6px;
}
.call-section-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}
.call-notes-textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.78rem;
    padding: 8px 10px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}
.call-notes-textarea::placeholder {
    color: var(--text-muted);
}
.call-notes-textarea:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
}
.call-save-note-btn {
    width: 100%;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366F1;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.2s ease;
}
.call-save-note-btn:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* Disposition */
.call-disposition-section {
    padding: 6px 16px 16px;
}
.call-disposition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.call-dispo-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.call-dispo-btn i {
    font-size: 0.8rem;
}
.call-dispo-btn span {
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
}
.call-dispo-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.call-dispo-btn.active {
    background: color-mix(in srgb, var(--dispo-color) 10%, var(--bg-card));
    border-color: color-mix(in srgb, var(--dispo-color) 40%, transparent);
    color: var(--dispo-color);
    box-shadow: 0 0 10px color-mix(in srgb, var(--dispo-color) 8%, transparent);
}

/* Callback Section */
.call-callback-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}
.call-callback-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.72rem;
    padding: 5px 8px;
    outline: none;
}
.call-callback-input:focus {
    border-color: rgba(245, 158, 11, 0.4);
}
.call-callback-btn {
    background: var(--badge-warning-bg);
    border: 1px solid var(--badge-warning-border);
    color: var(--badge-warning-text);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.call-callback-btn:hover {
    opacity: 0.85;
}

/* Spin animation */
.spin-animation {
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ======================== */
/* Incoming Call Overlay     */
/* ======================== */
.incoming-call-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

.incoming-call-card {
    width: 100%;
    max-width: 320px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: incomingPulseCard 2s ease-in-out infinite;
}

@keyframes incomingPulseCard {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 30px 8px rgba(16, 185, 129, 0.15); }
}

.incoming-call-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: incomingBadgePulse 1.5s ease-in-out infinite;
}

@keyframes incomingBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.incoming-call-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.incoming-avatar-ring {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incoming-avatar-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.incoming-avatar-inner i {
    font-size: 1.5rem;
    color: white;
    animation: incomingPhoneShake 0.5s ease-in-out infinite;
}

@keyframes incomingPhoneShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(12deg); }
}

.incoming-ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.4);
    animation: incomingRingExpand 2s ease-out infinite;
}

.incoming-ring-pulse.delay-1 {
    animation-delay: 0.5s;
}

.incoming-ring-pulse.delay-2 {
    animation-delay: 1s;
}

@keyframes incomingRingExpand {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.incoming-call-info {
    margin-bottom: 1.5rem;
}

.incoming-caller-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 4px 0;
}

.incoming-caller-number {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    margin: 0 0 8px 0;
    font-family: 'SF Mono', monospace;
}

.incoming-campaign-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    font-size: 0.75rem;
    font-weight: 500;
}

.incoming-call-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.incoming-accept-btn,
.incoming-reject-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.incoming-accept-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.incoming-accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.incoming-reject-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.incoming-reject-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* ======================== */
/* Lead Info Card            */
/* ======================== */
.lead-info-card {
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 14px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.lead-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}

.lead-info-name-section {
    flex: 1;
    min-width: 0;
}

.lead-info-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
    line-height: 1.3;
}

.lead-info-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    margin-top: 2px;
}

/* Prominent Call Button */
.lead-call-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.3px;
}

.lead-call-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669, #047857);
}

.lead-call-action-btn:active {
    transform: scale(0.96);
}

.lead-call-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lead-call-action-btn i {
    font-size: 0.85rem;
}

.lead-dnc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Info Grid */
.lead-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.lead-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.04));
    transition: background 0.15s ease;
}

.lead-info-item:hover {
    background: var(--hover-bg, rgba(255,255,255,0.03));
}

.lead-info-item:nth-child(odd) {
    border-right: 1px solid var(--border-color, rgba(255,255,255,0.04));
}

.lead-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.lead-info-icon.phone {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.lead-info-icon.email {
    background: rgba(99, 102, 241, 0.12);
    color: #818CF8;
}

.lead-info-icon.web {
    background: rgba(34, 211, 238, 0.12);
    color: #22D3EE;
}

.lead-info-icon.rating {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.lead-info-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.lead-info-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.3;
    display: block;
}

.lead-info-link {
    color: #22D3EE !important;
    text-decoration: none;
}

.lead-info-link:hover {
    text-decoration: underline;
}

/* Maps Link */
.lead-maps-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #22D3EE;
    text-decoration: none;
    background: var(--hover-bg, rgba(34, 211, 238, 0.04));
    transition: background 0.15s ease;
}

.lead-maps-link:hover {
    background: rgba(34, 211, 238, 0.08);
    color: #22D3EE;
}

/* ======================== */
/* Direct Dial (Inline)      */
/* ======================== */
.direct-dial-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    color: #818CF8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.direct-dial-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.direct-dial-toggle-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366F1;
    color: #A5B4FC;
}

.direct-dial-inline {
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    background: var(--bg-secondary, rgba(255,255,255,0.03));
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.direct-dial-inline:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.direct-dial-prefix {
    padding: 0 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    user-select: none;
}

.direct-dial-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    outline: none;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.8px;
    min-width: 0;
}

.direct-dial-input::placeholder {
    color: var(--text-secondary, rgba(255,255,255,0.25));
    letter-spacing: 0.5px;
}

.direct-dial-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.direct-dial-go:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.direct-dial-go:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ======================== */
/* Professional Dial Pad     */
/* ======================== */
.dialpad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: calc(100vh - 460px);
    padding: 20px;
}

.dialpad-inner {
    width: 100%;
    max-width: 260px;
}

/* Number Display */
.dialpad-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px 12px;
    margin-bottom: 8px;
    min-height: 56px;
    background: transparent;
}

.dialpad-number {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1E293B;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    letter-spacing: 1.5px;
    text-align: center;
    flex: 1;
    line-height: 1;
    background: transparent;
    white-space: nowrap;
}

[data-theme="dark"] .dialpad-number {
    color: #E2E8F0;
}

.dialpad-number.placeholder {
    font-size: 0.95rem;
    font-weight: 400;
    color: #CBD5E1;
    letter-spacing: 0.5px;
    font-family: inherit;
}

[data-theme="dark"] .dialpad-number.placeholder {
    color: rgba(255,255,255,0.18);
}

.dialpad-backspace {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dialpad-backspace:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

/* Dial Pad Grid */
.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    justify-items: center;
}

.dialpad-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .dialpad-key,
.dark-mode .dialpad-key {
    background: rgba(255,255,255,0.05);
}

.dialpad-key::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.dialpad-key:active::after {
    transform: scale(1);
    transition: transform 0.05s;
}

.dialpad-key:hover {
    background: #E2E8F0;
    transform: scale(1.08);
}

[data-theme="dark"] .dialpad-key:hover,
.dark-mode .dialpad-key:hover {
    background: rgba(99, 102, 241, 0.12);
}

.dialpad-key:active {
    transform: scale(0.93);
}

.dialpad-digit {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .dialpad-digit,
.dark-mode .dialpad-digit {
    color: #F1F5F9;
}

.dialpad-letters {
    font-size: 0.5rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
    min-height: 8px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .dialpad-letters,
.dark-mode .dialpad-letters {
    color: rgba(255,255,255,0.25);
}

.dialpad-key.symbol .dialpad-digit {
    font-size: 1.5rem;
    color: #64748B;
}

[data-theme="dark"] .dialpad-key.symbol .dialpad-digit,
.dark-mode .dialpad-key.symbol .dialpad-digit {
    color: #94A3B8;
}

/* Call Button */
.dialpad-call-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.dialpad-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.dialpad-call-btn:active {
    transform: scale(0.97);
}

.dialpad-call-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dialpad-call-btn i {
    font-size: 1.1rem;
}

/* Non-admin hint */
.dialpad-hint {
    text-align: center;
    padding: 14px;
    font-size: 0.82rem;
    color: #94A3B8;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

[data-theme="dark"] .dialpad-hint,
.dark-mode .dialpad-hint {
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.06);
}

/* ── Mini sidebar (desktop collapse) ── */

/* ====== DIALER LEAD QUEUE ====== */
.lead-queue-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.15) transparent;
}
.lead-queue-list::-webkit-scrollbar { width: 4px; }
.lead-queue-list::-webkit-scrollbar-track { background: transparent; }
.lead-queue-list::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.15); border-radius: 4px; }
.lead-queue-list::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.3); }

.lead-queue-item {
    cursor: pointer;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border-left: 3px solid transparent;
}
.lead-queue-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lead-queue-item:hover {
    background: rgba(99, 102, 241, 0.03);
    border-left-color: rgba(99, 102, 241, 0.3);
}
.lead-queue-item:hover::before { opacity: 1; }
.lead-queue-item.active {
    background: rgba(99, 102, 241, 0.06);
    border-left-color: #6366F1;
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.03);
}
.lead-queue-item.active::before { opacity: 1; }

/* Status accent colors for lead queue items */
.lead-queue-item[data-status="not_called"] { --queue-accent: #6366F1; }
.lead-queue-item[data-status="called"] { --queue-accent: #10B981; }
.lead-queue-item[data-status="callback"] { --queue-accent: #F59E0B; }
.lead-queue-item[data-status="converted"] { --queue-accent: #22D3EE; }
.lead-queue-item[data-status="do_not_call"] { --queue-accent: #EF4444; }
.lead-queue-item[data-status]:hover { border-left-color: var(--queue-accent); }
.lead-queue-item.active[data-status] { border-left-color: var(--queue-accent); }

/* Status dot */
.lead-queue-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.lead-queue-status-dot.not_called { background: #6366F1; }
.lead-queue-status-dot.called { background: #10B981; }
.lead-queue-status-dot.callback { background: #F59E0B; animation: dotPulse 2s ease-in-out infinite; }
.lead-queue-status-dot.converted { background: #22D3EE; }
.lead-queue-status-dot.do_not_call { background: #EF4444; }

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

/* ====== STATUS FILTER PILLS ====== */
.dialer-status-pills {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dialer-status-pills::-webkit-scrollbar { display: none; }
.dialer-status-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}
.dialer-status-pill:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}
.dialer-status-pill.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.dialer-status-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dialer-status-pill .pill-count {
    font-size: 0.62rem;
    opacity: 0.6;
    font-weight: 500;
}

/* ====== CALL HISTORY TIMELINE ====== */
.call-history-timeline {
    position: relative;
    padding: 0;
}
.call-history-timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--border-color) 0%, transparent 100%);
}
.call-timeline-item {
    position: relative;
    padding: 12px 14px 12px 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}
.call-timeline-item:hover {
    background: rgba(99, 102, 241, 0.02);
}
.call-timeline-item:last-child { border-bottom: none; }
.call-timeline-dot {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-timeline-dot.outbound { background: #6366F1; }
.call-timeline-dot.inbound { background: #10B981; }
.call-timeline-dot.missed { background: #EF4444; }
.call-timeline-dot i {
    font-size: 0.5rem;
    color: white;
}

/* ====== ENHANCED CALL PANEL ====== */
.call-sidebar-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.02) 100%);
}
.call-sidebar-panel::-webkit-scrollbar { width: 4px; }
.call-sidebar-panel::-webkit-scrollbar-track { background: transparent; }
.call-sidebar-panel::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 4px; }

/* Enhanced status pills */
.call-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.call-status-pill.dialing {
    background: rgba(99, 102, 241, 0.1);
    color: #818CF8;
    animation: pill-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
.call-status-pill.ringing {
    background: var(--badge-warning-bg);
    color: var(--badge-warning-text);
    animation: pill-pulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}
.call-status-pill.connected {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}
.call-status-pill.ended {
    background: var(--badge-danger-bg);
    color: var(--badge-danger-text);
}

/* Enhanced avatar ring */
.call-avatar-ring.connected .call-avatar-inner {
    background: rgba(16, 185, 129, 0.15);
    color: var(--badge-success-text);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.18), 0 0 60px rgba(16, 185, 129, 0.06);
}

/* Enhanced timer */
.call-timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

/* Enhanced waveform */
.call-waveform-canvas {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--bg-dark), rgba(99, 102, 241, 0.02));
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Enhanced control buttons */
.call-ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 14px;
}
.call-ctrl-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}
.call-ctrl-btn:hover .call-ctrl-icon {
    background: var(--bg-card-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.call-ctrl-btn:active .call-ctrl-icon {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

/* Enhanced end call button */
.call-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.call-end-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.call-end-btn:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}
.call-end-btn:hover::after { opacity: 1; }
.call-end-btn:active {
    transform: scale(0.96);
}

/* Enhanced keypad buttons */
.call-keypad-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}
.call-keypad-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}
.call-keypad-btn:active::after {
    transform: scale(1.5);
    transition: transform 0.08s;
}
.call-keypad-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}
.call-keypad-btn:active {
    transform: scale(0.92);
}

/* Enhanced disposition buttons */
.call-dispo-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 7px 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.call-dispo-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.call-dispo-btn.active {
    background: color-mix(in srgb, var(--dispo-color) 10%, var(--bg-card));
    border-color: color-mix(in srgb, var(--dispo-color) 40%, transparent);
    color: var(--dispo-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--dispo-color) 10%, transparent);
    transform: translateY(-1px);
}

/* Enhanced recording player */
.call-recording-player {
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.call-recording-player:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.call-rec-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}
.call-rec-play-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.call-rec-play-btn.playing {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}
.call-rec-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}
.call-rec-track:hover { height: 8px; }
.call-rec-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #A78BFA);
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
}

/* ====== ENHANCED DIALPAD ====== */
.dialpad-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}
.dialpad-key::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.35s ease;
}
.dialpad-key:active::after {
    transform: scale(1.5);
    transition: transform 0.06s;
}
.dialpad-key:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}
.dialpad-key:active {
    transform: scale(0.9);
    transition-duration: 0.1s;
}

.dialpad-call-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}
.dialpad-call-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dialpad-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}
.dialpad-call-btn:hover::before { opacity: 1; }
.dialpad-call-btn:active {
    transform: scale(0.97);
}
.dialpad-call-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== GLOBAL DIALER ANIMATIONS ====== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes softGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.08); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.15); }
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Empty state animations */
.dialer-empty-icon {
    animation: gentleFloat 3s ease-in-out infinite;
    opacity: 0.25;
}

/* Load more shimmer */
.dialer-load-more {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.dialer-load-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
.dialer-load-more:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Glass card header upgrade */
.card-header-gradient {
    position: relative;
    overflow: hidden;
}
.card-header-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

.admin-sidebar .sidebar-brand .brand-icon { display: none; }

@media (min-width: 992px) {
    .mini-sidebar .admin-sidebar { width: 72px; overflow: hidden; }
    .mini-sidebar .admin-sidebar .sidebar-brand { justify-content: center; padding: 1.5rem 0.5rem; }
    
    .mini-sidebar .admin-sidebar .sidebar-brand .brand-text,
    .mini-sidebar .admin-sidebar .sidebar-user,
    .mini-sidebar .admin-sidebar .nav-heading,
    .mini-sidebar .admin-sidebar .nav-item > a span,
    .mini-sidebar .admin-sidebar .nav-item > a .badge,
    .mini-sidebar .admin-sidebar .sidebar-footer span { display: none; }
    
    .mini-sidebar .admin-sidebar .sidebar-brand .brand-icon { display: flex !important; width: 36px; height: 36px; }
    
    .mini-sidebar .admin-sidebar .sidebar-user { justify-content: center; padding: 10px; margin: 0 8px 8px; }
    .mini-sidebar .admin-sidebar .nav-item > a,
    .mini-sidebar .admin-sidebar .nav-link-custom { justify-content: center; padding: 10px 0; margin: 2px 8px; }
    
    /* Make the hover state and active state match the icon-only layout */
    .mini-sidebar .admin-sidebar .nav-item > a.active {
        padding: 10px 0 !important;
    }
    
    .mini-sidebar .admin-sidebar .nav-item > a::before {
        left: 4px;
        height: 20px;
    }
    
    .mini-sidebar .admin-sidebar .sidebar-footer a { justify-content: center; padding: 10px 0; margin: 0 8px; }
    
    .mini-sidebar .main-content { margin-left: 72px; }
    
    /* Handle the layout mode toggle (LEADS / WHATSAPP) in mini sidebar */
    .mini-sidebar .admin-sidebar .nav-item .d-flex.rounded-pill.p-1 {
        flex-direction: column;
        gap: 4px;
        padding: 4px !important;
        align-items: center;
    }
    .mini-sidebar .admin-sidebar .nav-item .d-flex.rounded-pill.p-1 a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 32px;
        padding: 0 !important;
        border-radius: 8px !important;
    }
    
    .mini-sidebar .admin-sidebar .mode-switch-btn .text-only { display: none !important; }
    .mini-sidebar .admin-sidebar .mode-switch-btn .icon-only { 
        display: flex !important; 
        font-size: 14px;
        margin: 0;
    }
}

/* AI Campaign Runner Card Redesign */
.campaign-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

[data-theme="dark"] .campaign-grid-card {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.8) 0%, rgba(22, 27, 34, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.campaign-grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 1px 1px rgba(16, 185, 129, 0.2) inset;
}

.campaign-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.campaign-grid-card:hover .campaign-card-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(34, 211, 238, 0.15) 100%);
}

.campaign-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.campaign-card-tag-category {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.campaign-card-tag-country {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.campaign-card-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50rem;
    letter-spacing: 0.3px;
}

.campaign-card-status-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.campaign-card-status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Stats Container */
.campaign-card-stats {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 16px;
}

[data-theme="light"] .campaign-card-stats {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.campaign-card-stat-item {
    text-align: center;
    flex: 1;
}

.campaign-card-stat-val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.campaign-card-stat-lbl {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.campaign-card-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .campaign-card-divider {
    background: rgba(0, 0, 0, 0.08);
}

/* Action button and PageSpeed button */
.campaign-card-btn-speed {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campaign-card-btn-speed:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.05);
}

.campaign-card-btn-speed.active {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
}

.campaign-card-action-btn {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10B981;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campaign-grid-card:hover .campaign-card-action-btn {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.campaign-card-action-btn i {
    transition: transform 0.2s ease;
}

.campaign-grid-card:hover .campaign-card-action-btn i {
    transform: translateX(3px);
}

@keyframes softPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* List View Styles */
.campaign-list-container {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.campaign-list-header {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .campaign-list-header {
    background: rgba(0, 0, 0, 0.02);
}

.campaign-list-row {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

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

.campaign-list-row:hover {
    background: rgba(16, 185, 129, 0.04) !important;
}

.campaign-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.campaign-list-row:hover .campaign-list-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 211, 238, 0.12) 100%);
}

.campaign-list-row:hover .bi-chevron-right {
    transform: translateX(4px);
    color: #10B981 !important;
}

