/* Build-Dev Cloud React Native Build Platform Styling */

.bd-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.bd-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.bd-crumb:hover {
  color: #0f172a;
}

.bd-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.bd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bd-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.bd-subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card Container */
.bd-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  margin-bottom: 2rem;
}

.bd-form-group {
  margin-bottom: 1.5rem;
}

.bd-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.bd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bd-input-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 1.125rem;
}

.bd-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.8rem;
  font-size: 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.bd-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.bd-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.bd-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
}

.bd-btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}

.bd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.45);
}

.bd-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Terminal & Live Build Logs */
.bd-terminal-container {
  display: none;
  background: #0f172a;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}

.bd-terminal-header {
  background: #1e293b;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.bd-terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.bd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bd-dot-red { background: #ef4444; }
.bd-dot-yellow { background: #f59e0b; }
.bd-dot-green { background: #10b981; }

.bd-terminal-title {
  color: #94a3b8;
  font-size: 0.85rem;
  font-family: "IBM Plex Mono", monospace;
}

.bd-terminal-body {
  padding: 1.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  color: #38bdf8;
  max-height: 380px;
  overflow-y: auto;
  line-height: 1.7;
}

.bd-log-line {
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.bd-log-info { color: #38bdf8; }
.bd-log-success { color: #4ade80; font-weight: 600; }
.bd-log-warn { color: #fbbf24; }
.bd-log-error { color: #f87171; font-weight: 600; }

/* Progress Bar */
.bd-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0;
}

.bd-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  transition: width 0.4s ease;
}

/* Success Result Container */
.bd-success-panel {
  display: none;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid #bbf7d0;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.bd-success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bd-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .bd-result-grid {
    grid-template-columns: 1fr;
  }
}

.bd-qr-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bd-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 0.5rem;
}

.bd-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: #16a34a;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}

.bd-btn-download:hover {
  background: #15803d;
  transform: translateY(-2px);
}
