/* 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);
}

[data-theme="dark"] {
    --bg-dark: #0F172A;
    --bg-body-mid: #1a1a2e;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --border-light: var(--border-light);
    --glass-bg: var(--glass-bg);
    --glass-hover: var(--bg-card);
    --stat-bg-start: var(--bg-card);
    --stat-bg-end: rgba(30, 41, 59, 0.7);
}

/* 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 (Removed) */
.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.05);
}

.glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,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;
}

/* ── Stat Cards ── */
.dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.dash-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dash-stat__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}
.dash-stat__label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.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;
}
.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;
}

.badge-success-custom {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.badge-warning-custom {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.badge-danger-custom {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.badge-info-custom {
    background: rgba(34, 211, 238, 0.2);
    color: #22D3EE;
}

.badge-muted-custom {
    background: rgba(148, 163, 184, 0.2);
    color: #94A3B8;
}

/* 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;
}



/* 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;
}

/* 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;
}

.badge-success-custom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger-custom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info-custom {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.05) 100%);
    color: #0E7490;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge-warning-custom {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-muted-custom {
    background: rgba(148, 163, 184, 0.15);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ============================================
   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);
}

/* ============================================
   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;
}

.badge-success-custom {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 78, 59, 0.6) 100%);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.badge-danger-custom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(127, 29, 29, 0.6) 100%);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.badge-info-custom {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3) 0%, rgba(14, 116, 144, 0.6) 100%);
    color: #67E8F9;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2);
}

.badge-warning-custom {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(146, 64, 14, 0.6) 100%);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.badge-muted-custom {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.3) 0%, rgba(51, 65, 85, 0.6) 100%);
    color: #CBD5E1;
    border: 1px solid rgba(100, 116, 139, 0.4);
}

/* 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;
}

.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;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

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

.details-info-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    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;
}
/* ──────────────── Sidebar from Google Project ──────────────── */
.admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 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);
}

.sidebar-brand {
    padding: 16px 20px;
    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: #10B981; }

.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 #10B981;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    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: 6px;
    transition: all 0.15s ease;
    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: color 0.15s ease; }
.nav-item > a:hover { background: rgba(255, 255, 255, 0.05); color: #e6edf3; }
.nav-item > a.active { background: rgba(16, 185, 129, 0.15); color: #ffffff; }

.nav-item > a.active::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: linear-gradient(135deg, #10B981 0%, #22D3EE 100%);
    border-radius: 0 3px 3px 0;
}

.nav-item > a.active i { color: #10B981; }

/* 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;
}
