/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary { background-color: var(--primary-blue); color: white; }
.btn-whatsapp { background-color: #25D366; color: white; }
.btn-back { background-color: transparent; color: var(--text-dark); border: 1px solid var(--border-color); }
.btn-delete { color: var(--status-help); cursor: pointer; font-weight: bold; }

/* Notifications & Badges */
.notifications { position: relative; cursor: pointer; }
.badge {
    position: absolute;
    top: -5px; right: -5px;
    background-color: var(--status-help);
    color: white;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
}
.status-badge.active { background-color: var(--status-active); }
.status-badge.inactive { background-color: var(--status-inactive); }
.status-badge.help { background-color: var(--status-help); animation: pulse 2s infinite; }

.unread-count {
    background: linear-gradient(135deg, var(--status-help) 0%, #d63384 100%);
    color: white;
    border-radius: 20px; /* Pil-vorm voor betere look bij meerdere cijfers */
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white; /* Laat het loskomen van de achtergrond */
    box-shadow: 0 4px 10px rgba(159, 99, 118, 0.4);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* De "Ping" animatie voor actieve aandacht */
.unread-count:not(.hidden)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--status-help);
    border-radius: 20px;
    z-index: -1;
    animation: badge-ping 2s infinite;
    opacity: 0;
}

@keyframes badge-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Wanneer een kaart een ongelezen bericht heeft, krijgt de kaart zelf ook een subtiele glow */
.client-card[data-unread]:not([data-unread="0"]) {
    background-color: #fff9fb; /* Extreem lichte roze tint */
    border-right: 3px solid var(--status-help);
}

/* Filter Button Styling */
#btnFilterUnread {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
}

#btnFilterUnread.active-filter {
    background-color: var(--status-help) !important;
    border-color: var(--status-help);
    color: white;
    box-shadow: 0 4px 12px rgba(159, 99, 118, 0.3);
    transform: translateY(-1px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Restored Original Search & Filter Styles */
.search-input {
    flex: 1; /* Ensures the search bar takes up available space */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-green);
}

.filter-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 150px; /* Restored original width constraint */
    outline: none;
}

.btn-template {
    background-color: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
}