/* ==========================================================================
   NASA Custom Spacecraft & Satellite Design Studio Styles
   ========================================================================== */

/* Header buttons & Pills */
.portal-custom-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full, 9999px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(14, 165, 233, 0.35) 100%);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00e5ff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.portal-custom-action-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(14, 165, 233, 0.6) 100%);
  color: #ffffff;
  border-color: #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55);
  transform: translateY(-1px);
}

.custom-badge-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff007f, #7928ca);
  color: #ffffff;
  margin-left: 2px;
}

.btn-hero-custom {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(14, 24, 52, 0.85);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  color: #e2e8f0;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.24s ease;
  backdrop-filter: blur(8px);
}

.btn-hero-custom:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.btn-design-custom-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(14, 24, 52, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-design-custom-switch:hover {
  background: #00e5ff;
  color: #080e1c;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

/* ==========================================================================
   Full Custom Design Studio Layout
   ========================================================================== */

#screen-custom-designer {
  padding: 16px 24px 48px;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #0d1b38 0%, #050b18 60%, #02050d 100%);
  color: #f8fafc;
  position: relative;
  overflow-x: hidden;
}

/* Studio Header */
.custom-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.custom-studio-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-studio-nasa-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.custom-studio-titles h1 {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-studio-titles p {
  font-size: 12px;
  color: #94a3b8;
  margin: 3px 0 0;
}

.custom-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-custom-back {
  padding: 9px 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-custom-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  border: none;
  border-radius: 8px;
  color: #051424;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-custom-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.65);
}

/* Two Column Main Workspace */
.custom-studio-workspace {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1200px) {
  .custom-studio-workspace {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Interactive Configuration Modules */
.custom-config-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-card {
  background: rgba(12, 20, 42, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.custom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.custom-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
}

/* Identity Inputs */
.custom-identity-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

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

.custom-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-field-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.custom-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.custom-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.custom-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* Component Options Grid */
.custom-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.custom-opt-card {
  padding: 14px;
  background: rgba(8, 14, 28, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-opt-card:hover {
  background: rgba(14, 26, 56, 0.85);
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.custom-opt-card.active {
  background: rgba(0, 180, 255, 0.15);
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.custom-opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-opt-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.custom-opt-check {
  font-size: 12px;
  color: #00e5ff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-opt-card.active .custom-opt-check {
  opacity: 1;
}

.custom-opt-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.custom-opt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 600;
}

.meta-mass { color: #80deea; }
.meta-power { color: #ffd54f; }
.meta-cost { color: #81c784; }

/* Right Column: 3D CAD & Systems Engineering Telemetry */
.custom-preview-column {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.custom-cad-card {
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.custom-cad-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.custom-cad-title {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 13px;
  font-weight: 700;
  color: #00e5ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-cad-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cad-tool {
  padding: 4px 10px;
  background: rgba(14, 24, 52, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-cad-tool:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  color: #ffffff;
}

.btn-cad-tool.active {
  background: #00e5ff;
  color: #080e1c;
}

.custom-cad-canvas-box {
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at center, rgba(14, 26, 56, 0.5) 0%, rgba(5, 10, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

#custom-cad-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cad-drag-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 10px;
  border-radius: 10px;
}

/* Live Telemetry Engineering Dials */
.custom-telemetry-card {
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 18px;
}

.telemetry-dials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dial-box {
  background: rgba(6, 12, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dial-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dial-value {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 17px;
  font-weight: 800;
  color: #00e5ff;
}

.dial-sub {
  font-size: 10px;
  color: #64748b;
}

.status-badge-go {
  padding: 10px 14px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid #00e676;
  border-radius: 8px;
  color: #00e676;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 14px;
}

.status-badge-warn {
  padding: 10px 14px;
  background: rgba(255, 145, 0, 0.12);
  border: 1px solid #ff9100;
  border-radius: 8px;
  color: #ff9100;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 14px;
}

.btn-launch-large {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  border: none;
  border-radius: 10px;
  color: #051424;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.07em;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-launch-large:hover {
  box-shadow: 0 0 32px rgba(0, 230, 118, 0.75);
  transform: translateY(-2px);
}

/* Real-World Flight Trajectory Predictor Card */
.custom-trajectory-card {
  background: rgba(10, 18, 38, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.traj-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.traj-metric-box {
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.traj-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.traj-val {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 15px;
  font-weight: 800;
  color: #00e5ff;
}

.traj-val.val-go { color: #00e676; }
.traj-val.val-warn { color: #ff9100; }
.traj-val.val-fail { color: #ff1744; }

.traj-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
}

/* Kaise Jayega Timeline Track */
.traj-flight-path {
  background: rgba(6, 12, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.traj-section-title {
  display: block;
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 10px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.traj-steps-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 10px;
}

.traj-steps-track::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(0, 229, 255, 0.25);
}

.traj-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00e5ff;
  border: 2px solid #060c1a;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  flex-shrink: 0;
  margin-top: 2px;
}

.traj-step.step-fail .step-dot {
  background: #ff1744;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-num {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.05em;
}

.traj-step.step-fail .step-num {
  color: #ff1744;
}

.step-info {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* FDO Physics Analysis Box */
.traj-fdo-brief {
  background: rgba(4, 9, 20, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
}

.fdo-header {
  margin-bottom: 6px;
}

.fdo-badge {
  font-family: var(--font-heading, 'Orbitron', monospace);
  font-size: 9px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fdo-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #cbd5e1;
}
