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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1em;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #00ff00;
}

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

.main-content {
    padding: 30px;
    position: relative;
}

.users-section {
    margin-bottom: 40px;
}

.users-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-card .user-avatar {
    font-size: 3em;
    margin-bottom: 10px;
}

.user-card .user-name {
    font-weight: bold;
    font-size: 1.1em;
}

.user-card .user-time {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 5px;
}

.reactions-section {
    margin-bottom: 40px;
}

.reactions-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.reaction-btn {
    font-size: 3em;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn:hover {
    transform: scale(1.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.reaction-btn:active {
    transform: scale(0.9);
}

.reactions-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-reaction {
    position: absolute;
    font-size: 4em;
    animation: float 3s ease-out forwards;
    pointer-events: none;
}

@keyframes float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1.5);
    }
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

footer .small {
    font-size: 0.9em;
    margin-top: 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    .users-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .reaction-btn {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
}
