/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

/* 状态指示器 */
.status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
}

.status.connected::before {
  background: #4ade80;
}

.status.disconnected::before {
  background: #f87171;
}

.status.connecting::before {
  background: #fbbf24;
  animation: pulse 1s infinite;
}

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

/* 按钮 */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* 输入框 */
.input {
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 8px;
  font-size: 16px;
  background: #16213e;
  color: #eee;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: #6366f1;
}

.input::placeholder {
  color: #666;
}
