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

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
.header {
    margin-bottom: 48px;
    border-bottom: 1px solid #262626;
    padding-bottom: 32px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulse 2s infinite;
}

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

.header-subtitle {
    font-size: 14px;
    color: #888888;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #404040;
    background: #1f1f1f;
}

.stat-label {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: #666666;
    font-weight: 400;
}

/* Users Section */
.users-section {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    padding: 24px;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.user-count {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

/* Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background: #0f0f0f;
    border-bottom: 1px solid #262626;
}

.table-header th {
    padding: 16px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.table-body tr {
    border-bottom: 1px solid #262626;
    transition: background 0.2s ease;
}

.table-body tr:hover {
    background: #0f0f0f;
}

.table-body td {
    padding: 16px 24px;
    font-size: 14px;
}

.user-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.online {
    background: #1a3a1a;
    color: #90ee90;
}

.status-badge.offline {
    background: #2a1a1a;
    color: #ff6b6b;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #90ee90;
}

.status-indicator.offline {
    background: #ff6b6b;
}

.duration {
    color: #b0b0b0;
    font-weight: 500;
}

.timestamp {
    color: #666666;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: #666666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .header-title {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 32px;
    }

    .table-header th,
    .table-body td {
        padding: 12px 16px;
        font-size: 12px;
    }

    .section-header {
        padding: 16px;
    }
}

