*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f6fa; color: #333; padding: 24px; }
h1 { font-size: 1.5rem; margin-bottom: 20px; }
h2 { font-size: 1.1rem; margin-bottom: 12px; color: #555; }
.section { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.controls label { font-size: .85rem; font-weight: 600; }
.controls input[type="date"] { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: .85rem; }
.btn { padding: 6px 14px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; font-size: .8rem; transition: background .15s; }
.btn:hover { background: #e8e8e8; }
.btn.active { background: #4a90d9; color: #fff; border-color: #4a90d9; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fafafa; font-weight: 600; }
tr:hover td { background: #f0f4ff; }
.empty { text-align: center; padding: 40px; color: #999; }
#online-users { display: flex; gap: 12px; flex-wrap: wrap; }
#online-users:empty::after { content: 'No users online'; color: #999; }
.user-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: .85rem; font-weight: 500; background: #e8f5e9; color: #2e7d32; }
.user-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; animation: pulse 1.5s infinite; }
.user-badge .since { font-size: .75rem; color: #66bb6a; margin-left: 2px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
