* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a2e;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.stats {
    display: flex;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

#online-count {
    color: #00e676;
}

#offline-count {
    color: #ff5252;
}

.search-bar {
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    background: #12121a;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: #7b2ff7;
}

.search-bar input::placeholder {
    color: #444;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #12121a;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.user-card:hover {
    background: #16162a;
    border-color: #2a2a4e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #00e676;
    box-shadow: 0 0 8px #00e67680;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #ff5252;
    box-shadow: 0 0 8px #ff525240;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.user-status-text {
    font-size: 0.8rem;
    color: #666;
}

.user-time {
    font-size: 0.8rem;
    color: #444;
}

.no-users {
    text-align: center;
    color: #444;
    margin-top: 60px;
    font-size: 1rem;
}
