/* User List Page Styles */
.users-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* Filter Form */
.filter-form {
    display: flex;
    align-items: center;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 12px;
    color: #828282;
}

.filter-select {
    font-family: inherit;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #800000;
}

.clear-filter {
    font-size: 11px;
    color: #828282;
    text-decoration: none;
}

.clear-filter:hover {
    text-decoration: underline;
    color: #800000;
}

/* Active Filter Banner */
.active-filter-banner {
    padding: 10px 15px;
    background: #f6f6ef;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: 12px;
}

.active-filter-banner strong {
    color: #800000;
}

.filter-count {
    color: #828282;
    margin-left: 5px;
}

/* User Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.user-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    font-weight: normal;
    color: #828282;
}

.user-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.user-table tbody tr:hover {
    background-color: #fafafa;
}

.user-rank {
    color: #828282;
    width: 50px;
    text-align: center;
}

.user-link {
    color: #000;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.user-score {
    font-weight: bold;
}

.user-joined {
    color: #828282;
    font-size: 11px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #828282;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.page-link {
    color: #000;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
}

.page-link:hover {
    text-decoration: underline;
    color: #800000;
}

.page-info {
    font-size: 12px;
    color: #828282;
}

.page-total {
    font-size: 11px;
}

/* HTMX Loading State */
.htmx-request #users-results {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .users-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-row {
        flex-wrap: wrap;
    }
    
    .user-table {
        font-size: 11px;
    }
    
    .user-table th,
    .user-table td {
        padding: 6px 4px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}