/* Toolbar general */
#clients-module .clients-toolbar {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: .75rem 1rem;
    background: #ffffff;
}

#clients-module .search-group .input-group-text {
    background: transparent;
    border-right: 0;
}

#clients-module .search-group .form-control {
    border-left: 0;
}

#clients-module .filter-select {
    min-width: 160px;
}

#clients-module .reset-btn {
    font-size: .875rem;
}

/* Contadores */
#clients-module .small.text-muted span + span::before {
    content: "•";
    margin: 0 .35rem;
    color: #d1d5db;
}

/* Cards */
#clients-module .user-card {
    transition: transform .12s ease-out, box-shadow .12s ease-out;
    border-radius: .75rem;
}

#clients-module .user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, .08);
}

#clients-module .user-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* Estado */
.client-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.client-status.active {
    background: rgba(22, 163, 74, .08);
    color: #15803d;
}

.client-status.blocked {
    background: rgba(220, 38, 38, .08);
    color: #b91c1c;
}

/* Toggle switch */
.toggle-switch {
    --width: 38px;
    --height: 20px;

    position: relative;
    width: var(--width);
    height: var(--height);
    border-radius: 999px;
    background: #e5e7eb;
    cursor: pointer;
    transition: background .15s ease-out;
    display: inline-flex;
    align-items: center;
    padding: 2px;
}

.toggle-switch .knob {
    width: calc(var(--height) - 4px);
    height: calc(var(--height) - 4px);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transform: translateX(0);
    transition: transform .15s ease-out;
}

.toggle-switch.active {
    background: #22c55e;
}

.toggle-switch.active .knob {
    transform: translateX(calc(var(--width) - var(--height)));
}

/* Tabla */
.clients-table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom-width: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, .1);
    color: #15803d;
}

.status-blocked {
    background: rgba(248, 113, 113, .18);
    color: #b91c1c;
}

/* Detalles */
.client-details-box {
    border-top: 1px dashed #e5e7eb;
    padding-top: .75rem;
}

/* Vista grid vs tabla (por si quieres estilos globales) */
body.view-table #clients-container {
    display: none;
}

body.view-table #clients-table-wrapper {
    display: block;
}

body.view-grid #clients-container {
    display: flex;
}

body.view-grid #clients-table-wrapper {
    display: none;
}
