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

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

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

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

.header h1 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 4px;
}

.header .subtitle {
  font-size: 0.85rem;
  color: #888;
}

/* Status indicator */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 8px;
}

.status-badge.running {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.status-badge.setup {
  background: rgba(109, 74, 255, 0.15);
  color: #6d4aff;
}

.status-badge.stopped {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.status-badge.transitioning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Cards */
.card {
  background: #16213e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #ccc;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: #0f3460;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #6d4aff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

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

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

.btn-primary {
  background: #6d4aff;
  color: #fff;
}

.btn-danger {
  background: #f44336;
  color: #fff;
}

.btn-secondary {
  background: #2a2a4a;
  color: #e0e0e0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  width: auto;
}

/* Credential display */
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a4a;
}

.cred-row:last-child {
  border-bottom: none;
}

.cred-label {
  font-size: 0.8rem;
  color: #888;
  min-width: 80px;
}

.cred-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #fff;
  flex: 1;
  text-align: right;
  margin: 0 8px;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: 1px solid #2a2a4a;
  color: #888;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
}

.copy-btn:hover {
  color: #6d4aff;
  border-color: #6d4aff;
}

.copy-btn.copied {
  color: #4caf50;
  border-color: #4caf50;
}

/* Callout */
.callout {
  background: rgba(109, 74, 255, 0.1);
  border-left: 3px solid #6d4aff;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: #bbb;
  margin: 16px 0;
  line-height: 1.4;
}

.callout.warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
}

/* Progress bar */
.progress-container {
  margin: 16px 0;
}

.progress-bar {
  height: 6px;
  background: #2a2a4a;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #6d4aff;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
  text-align: center;
}

/* Error */
.error-msg {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Account actions */
.account-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Section divider */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6d4aff;
  margin: 16px 0 8px;
}
