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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  min-height: 100vh;
  color: #1a1a2e;
  overflow-x: hidden;
}

#grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.08;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #4F7DF9, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.agent-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(79, 125, 249, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(79, 125, 249, 0.1);
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 125, 249, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.emoji {
  font-size: 2rem;
}

.agent-info h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
}

.agent-info .role {
  font-size: 0.85rem;
  color: #888;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

.status-dot.idle { background: #22c55e; animation: pulse 2s infinite; }
.status-dot.working { background: #4F7DF9; animation: pulse 1.2s infinite; }
.status-dot.offline { background: #ef4444; }

.status-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-text.idle { color: #22c55e; }
.status-text.working { color: #4F7DF9; }
.status-text.offline { color: #ef4444; }

.task-display {
  font-size: 0.85rem;
  color: #666;
  background: #f8f9ff;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 32px;
}

footer {
  text-align: center;
  margin-top: 50px;
  color: #999;
  font-size: 0.85rem;
}

footer a { color: #4F7DF9; text-decoration: none; }

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

@media (max-width: 640px) {
  header h1 { font-size: 1.8rem; }
  .team-grid { grid-template-columns: 1fr; }
}
