* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1115;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eaeaea;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  background: #171a21;
  border: 1px solid #262b35;
  border-radius: 16px;
  min-width: 280px;
}

h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #f5f5f5;
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #262b35;
  color: #6b7280;
  transition: background 0.2s, color 0.2s;
}

.icon svg {
  width: 32px;
  height: 32px;
}

.icon.connected {
  color: #22c55e;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    background: #1b2e22;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    background: #203b28;
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.status {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.connect-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.connect-btn:hover {
  background: #2563eb;
}

.connect-btn.disconnect {
  background: #ef4444;
}

.connect-btn.disconnect:hover {
  background: #dc2626;
}

.connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ws-url {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #262b35;
  background: #0f1115;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}
