
/* --- User List Styles --- */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.users-list .loader {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary-dark);
    font-size: 1.2rem;
}

.user-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alphabet-header {
    font-size: 2.5rem;
    font-weight: 800;
    color: #8a8a8e;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5ea;
    padding-left: 1rem;
    margin: 1.5rem 0 0;
}
.user-group:first-of-type .alphabet-header {
    margin-top: 0;
}

.user-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    color: var(--text-dark);
    border-radius: 26px;
    padding: 1.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.user-card.banned {
    background: var(--card-banned-bg);
}
.user-card.inactive {
    opacity: 0.75;
}
.user-card.inactive:hover {
    opacity: 1;
}

.user-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-card-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #e0e0e0;
    background-image: url('/components/svg/svg_ui/anim-circle.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}
.user-card-photo:hover {
    transform: scale(1.05);
}

.user-card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    min-width: 0;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.district-name {
    font-size: 0.8rem;
    color: var(--text-secondary-dark);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.user-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: white;
    flex-shrink: 0;
}
.tag-admin { background-color: var(--tag-admin); }
.tag-moderator { background-color: var(--tag-moderator); }
.tag-user { background-color: var(--tag-user); }

.user-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.2;
}
.user-login {
    font-size: 0.95rem;
    color: var(--text-secondary-dark);
    word-break: break-all;
    font-family: monospace;
}
.user-reg-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}
.inactive-status {
    font-size: 0.8rem;
    color: #ff3b30;
    font-weight: 600;
    margin-top: 4px;
}

/* --- BAN INFO STYLES --- */
.ban-info {
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    background-color: #ffebee; /* Light red */
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    color: #b71c1c;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ban-info svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.user-card-stats {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    gap: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}
.user-card-stats span {
    font-weight: 500;
}

/* --- USER ACTIONS & GROUPS --- */
.user-card-actions-wrapper {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8a8a8e;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding-left: 4px;
}

.group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 14px; /* Modern standard radius */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s, background-color 0.2s;
    color: white;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 80px;
}
.btn:hover { opacity: 0.85; }
.btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* Default white icon */
}

/* Ban Statistics Block */
.ban-statistics {
    background: #f4f4f5;
    padding: 0.8rem;
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.ban-stat-item {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--text-secondary-dark);
}
.ban-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- BUTTON COLORS REFRESH (Vibrant iOS Style) --- */

/* 1. Violations */
.btn-ban {
    background-color: #ff3b30; /* Red */
    color: white;
}
.btn-ban-district {
    background-color: #ff9500; /* Orange */
    color: white;
}
.btn-ban-private {
    background-color: #ff2d55; /* Pink */
    color: white;
}

/* 2. Privileges Group */
.btn-vip {
    background-color: #af52de; /* Purple */
    color: white;
}
.btn-coins {
    background-color: #ffcc00; /* Gold/Yellow */
    color: #1c1c1e; /* Dark text for contrast */
}
.btn-coins img {
    filter: none; /* Original icon colors */
    opacity: 0.8;
}

/* 3. Settings Group */
.btn-password {
    background-color: #007aff; /* Blue */
    color: white;
}
.btn-name {
    background-color: #5ac8fa; /* Teal */
    color: white;
}
.btn-moderator {
    background-color: #34c759; /* Green */
    color: white;
}
.btn-demote {
    background-color: #8e8e93; /* Gray */
    color: white;
}

/* 4. Other Group */
.btn-meta {
    background-color: #e5e5ea; /* Light Gray */
    color: #1c1c1e; /* Dark Text */
}
.btn-meta img {
    filter: none; /* Black icon */
}
.btn-meta:hover {
    background-color: #d1d1d6;
}

.btn-delete {
    background-color: #1c1c1e; /* Black for ultimate delete */
    color: white;
}

.no-users {
    text-align: center;
    padding: 3rem;
    color: #8a8a8e;
}

#photo-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    cursor: pointer;
}
#photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination-controls button, .pagination-controls span {
    padding: 0.6rem 1rem;
    min-width: 44px;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 600;
}
.pagination-controls button:hover {
    background: #e9ecef;
}
.pagination-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.pagination-controls .active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}
.pagination-controls .dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Deletion Timer Styles (For scheduled active users) */
.deletion-timer-container {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #ffcdd2; /* Light red */
    border: 1px solid #ef9a9a; /* Slightly darker red border */
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
