* {
  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;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #f5a623;
}

.status-card {
  background: #16213e;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #0f3460;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.status-row + .status-row {
  border-top: 1px solid #0f3460;
}

.label {
  color: #8892a4;
  font-size: 0.9rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-stopped {
  background: #3d1f1f;
  color: #e74c3c;
}

.badge-running {
  background: #1f3d2a;
  color: #2ecc71;
}

.badge-starting, .badge-provisioning {
  background: #3d3a1f;
  color: #f5a623;
  animation: pulse 1.5s infinite;
}

.badge-stopping {
  background: #3d3a1f;
  color: #f5a623;
  animation: pulse 1.5s infinite;
}

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

.address {
  font-family: "SF Mono", "Fira Code", monospace;
  color: #2ecc71;
  font-weight: 600;
  user-select: all;
}

.mono {
  font-family: "SF Mono", "Fira Code", monospace;
  color: #8892a4;
  font-size: 0.85rem;
  user-select: all;
}

.info-box {
  background: #1f3d2a;
  border: 1px solid #2ecc71;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: #a8d8b8;
}

.info-box strong {
  color: #2ecc71;
  user-select: all;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5a6478;
  margin-bottom: 0.5rem;
}

.save-picker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.save-picker label {
  display: none;
}

.resource-picker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.resource-picker label {
  display: none;
}

.resource-picker select {
  flex: 1;
  padding: 0.5rem;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #0f3460;
  border-radius: 6px;
  font-size: 0.9rem;
}

.version-picker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.version-picker label {
  display: none;
}

.version-picker select,
.version-picker input {
  flex: 1;
  padding: 0.5rem;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #0f3460;
  border-radius: 6px;
  font-size: 0.9rem;
}

.save-version {
  color: #5a6478;
  font-size: 0.8rem;
}

.save-picker select {
  flex: 1;
  padding: 0.5rem;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #0f3460;
  border-radius: 6px;
  font-size: 0.9rem;
}

.upload-area {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.upload-area input[type="file"] {
  flex: 1;
  font-size: 0.85rem;
  color: #8892a4;
}

.upload-area input[type="file"]::file-selector-button {
  padding: 0.4rem 0.8rem;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #0f3460;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-start {
  background: #2ecc71;
  color: #1a1a2e;
}

.btn-start:hover:not(:disabled) {
  background: #27ae60;
}

.btn-stop {
  background: #e74c3c;
  color: #fff;
}

.btn-stop:hover:not(:disabled) {
  background: #c0392b;
}

.btn-small {
  flex: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  background: #16213e;
  color: #8892a4;
  border: 1px solid #0f3460;
}

.btn-small:hover:not(:disabled) {
  background: #1a2744;
  color: #e0e0e0;
}

.message {
  text-align: center;
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: #8892a4;
  margin-bottom: 1rem;
}

.message.error {
  color: #e74c3c;
}

.message.success {
  color: #2ecc71;
}

.info {
  text-align: center;
  font-size: 0.85rem;
  color: #5a6478;
}

.info p + p {
  margin-top: 0.25rem;
}

.subtle {
  font-size: 0.8rem;
  color: #3d4556;
}
