/* assets/contacts.css */

/* Barre d'outils (Recherche + Filtres) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.search-wrapper {
    position: relative;
    width: 300px;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
}
.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: white;
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1); }

.filters {
    display: flex;
    gap: 8px;
    background: #F5F5F7;
    padding: 4px;
    border-radius: 50px;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.filter-btn:hover { color: var(--text-main); }
.filter-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Tableau Contacts Spécifique */
.contacts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.contacts-table th {
    text-align: left;
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.contact-row {
    transition: 0.2s;
    cursor: pointer;
}
.contact-row:hover { background: #F9F9FA; }

.contact-row td {
    padding: 16px 20px;
    border-bottom: 1px solid #F5F5F7;
    font-size: 14px;
    color: var(--text-main);
    vertical-align: middle;
}

.contact-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #eee;
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Badges Statuts */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.st-client { background: #E1FFEB; color: #007030; }
.st-prospect { background: #E1F0FF; color: #0071E3; }
.st-lead { background: #F5F5F7; color: var(--text-muted); }
.st-lost { background: #FFE5E5; color: #D32F2F; }

.action-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }