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

body {
  width: 320px;
  font-family: 'Segoe UI', -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

.container {
  padding: 20px;
}

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

.logo {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

h1 {
  font-size: 16px;
  font-weight: 700;
  color: #1a3c6e;
}

.subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-connect {
  background: linear-gradient(135deg, #1a3c6e, #2a5298);
  color: #fff;
}

.btn-connect:hover {
  box-shadow: 0 4px 12px rgba(42,82,152,0.3);
  transform: translateY(-1px);
}

.btn-connect:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-disconnect {
  background: #fee2e2;
  color: #991b1b;
}

.btn-disconnect:hover {
  background: #fecaca;
}

.error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.status-card.connected {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

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

.status-card strong {
  display: block;
  font-size: 14px;
  color: #166534;
}

.status-card span {
  font-size: 12px;
  color: #64748b;
}

.info {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer {
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.footer a {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: none;
}

.footer a:hover {
  color: #2a5298;
}
