/* EF WA CRM - Left Sidebar */

.ef-wa-crm-sidebar {
    width: 30%;
    min-width: 300px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ef-wa-crm-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    flex-shrink: 0;
}

.ef-wa-crm-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ef-wa-crm-sidebar-search {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ef-wa-crm-sidebar-search input {
    flex: 1;
    padding: 8px 35px 8px 12px;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.ef-wa-crm-sidebar-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-light);
}

.ef-wa-crm-sidebar-search::after {
    content: '🔍';
    position: absolute;
    right: 50px; /* Moved to account for add contact button */
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* Add Contact Button */
.ef-wa-crm-add-contact-btn {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.ef-wa-crm-add-contact-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ef-wa-crm-add-contact-btn:active {
    transform: scale(0.95);
}

.ef-wa-crm-add-contact-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.ef-wa-crm-sidebar-stats {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ef-wa-crm-sidebar-stat {
    flex: 1;
    background: var(--surface-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.ef-wa-crm-sidebar-stat-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ef-wa-crm-sidebar-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ef-wa-crm-sidebar-contacts {
    flex: 1;
    overflow-y: auto;
    background: var(--surface-color);
}