/* ZeroClaw Deployer - Custom Styles (no @apply - works with Tailwind CDN) */

/* Input fields */
.input-field {
  width: 100%;
  background: #1e1e2e;
  border: 1px solid #45475a;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: #f3f4f6;
  font-family: monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder {
  color: #6b7280;
}

.input-field:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

select.input-field {
  cursor: pointer;
}

/* Primary button */
.btn-primary {
  background: #16a34a;
  color: white;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #22c55e;
}

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

/* Step cards */
.step-card {
  background: #1e1e2e;
  border: 1px solid #313244;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Step indicators */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  transition: all 0.2s;
  background: #1e1e2e;
  border: 1px solid #313244;
  color: #6b7280;
  white-space: nowrap;
  cursor: pointer;
}

.step-indicator:hover {
  border-color: #45475a;
}

.step-indicator.active {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.step-indicator.completed {
  border-color: #15803d;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.04);
}

.step-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #313244;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  position: relative;
}

.step-indicator.active .step-num {
  background: #22c55e;
  color: #11111b;
}

.step-indicator.completed .step-num {
  background: #15803d;
  color: transparent;
}

.step-indicator.completed .step-num::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #dcfce7;
}

.step-label {
  display: none;
}

@media (min-width: 640px) {
  .step-label {
    display: inline;
  }
}

.step-line {
  width: 1rem;
  height: 1px;
  background: #313244;
  flex-shrink: 0;
}

/* Command blocks */
.cmd-block {
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #1e1e2e;
  border-bottom: 1px solid #313244;
}

.cmd-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
}

.cmd-code {
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #e5e7eb;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.625;
  font-family: monospace;
  margin: 0;
}

/* Copy button */
.copy-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: #313244;
  color: #9ca3af;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: white;
  background: #45475a;
}

.copy-btn.copied {
  background: #15803d;
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #45475a;
  border-radius: 9999px;
}

/* SSH key textarea */
.ssh-key-textarea {
  width: 100%;
  background: #11111b;
  border: 1px solid #313244;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #e5e7eb;
  font-family: monospace;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ssh-key-textarea::placeholder {
  color: #6b7280;
}

.ssh-key-textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

/* Download button */
.btn-download {
  background: #1e40af;
  color: white;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

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

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

.btn-download.copied {
  background: #15803d;
}

/* Selection */
::selection {
  background: rgba(34, 197, 94, 0.3);
}
