/* assets/css/users.css */

#usrTable thead th {
    background-color: var(--sg-off);
    color: var(--sg-gray-800);
    font-family: var(--sg-font-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid var(--sg-border);
    white-space: nowrap;
}

#usrTable tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--sg-gray-100);
}

#usrTable tbody tr:hover {
    background-color: var(--sg-orange-tint);
}

.usr-name {
    font-weight: 600;
    color: var(--sg-black);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usr-email {
    font-size: 0.85rem;
    color: var(--sg-text-muted);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usr-type-badge {
    font-size: 0.75rem;
    white-space: nowrap;
}

.usr-assigned {
    font-size: 0.85rem;
    color: var(--sg-text-muted);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
.pagination .page-link {
    color: var(--sg-black);
    border-color: var(--sg-border);
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--sg-orange);
    border-color: var(--sg-orange);
    color: var(--sg-black);
    font-weight: 700;
}

.pagination .page-link:hover {
    background-color: var(--sg-orange-tint);
    border-color: var(--sg-orange);
}

.pagination .page-item.disabled .page-link {
    color: var(--sg-gray-400);
}

.btn-action {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sg-radius-sm);
    font-size: 0.9rem;
}

.filter-bar .input-group-text {
    border-color: var(--sg-border);
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-color: var(--sg-border);
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--sg-orange);
    box-shadow: 0 0 0 3px var(--sg-orange-tint-strong);
}

/* Edit Modal Sections */
.usr-section-title {
    font-family: var(--sg-font-display);
    font-weight: 600;
    color: var(--sg-gray-800);
    border-bottom: 1px solid var(--sg-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* View Modal Avatar */
.usr-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--sg-orange-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--sg-orange-dark);
}

/* Password strength bar in edit modal */
#editPwdStrengthBar {
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: var(--sg-radius-pill);
}

.pwd-weak { background-color: var(--sg-danger) !important; }
.pwd-fair { background-color: #f0ad4e !important; }
.pwd-good { background-color: #5cb85c !important; }
.pwd-strong { background-color: var(--sg-success) !important; }

/* Responsive */
@media (max-width: 768px) {
    .usr-name { max-width: 100px; }
    .usr-email { max-width: 120px; }
    .usr-assigned { max-width: 80px; }

    #usrTable thead th { font-size: 0.75rem; padding: 0.75rem; }
    #usrTable tbody td { padding: 0.75rem; font-size: 0.875rem; }
}