/* FabForge Build 13 — Robotics & Cobots (#/robotics) Styles */
.robo-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.robo-banner {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.14), rgba(52, 152, 219, 0.10));
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.robo-badge-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.22);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.55);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.robo-safety-strip {
  background: rgba(231, 76, 60, 0.11);
  border-left: 4px solid #e74c3c;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--fg-muted, #c8d2de);
}

.robo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border, #2c3540);
  padding-bottom: 8px;
}

.robo-tab-btn {
  background: var(--bg-elev, #18202a);
  color: var(--fg, #e4ebf2);
  border: 1px solid var(--border, #2c3540);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.robo-tab-btn:hover {
  border-color: #f5a623;
}

.robo-tab-btn.active {
  background: #f5a623;
  color: #0e131a;
  border-color: #f5a623;
  font-weight: 700;
}

.robo-grid-2 {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(350px, 1.35fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .robo-grid-2 {
    grid-template-columns: 1fr;
  }
}

.robo-card {
  background: var(--bg-elev, #151c25);
  border: 1px solid var(--border, #2c3540);
  border-radius: 10px;
  padding: 14px;
}

.robo-card h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #f5a623;
}

.robo-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.robo-kpi {
  background: rgba(15, 20, 27, 0.75);
  border: 1px solid var(--border, #2c3540);
  border-radius: 8px;
  padding: 8px 10px;
}

.robo-kpi .lbl {
  font-size: 11px;
  color: var(--fg-muted, #95a5a6);
}

.robo-kpi .val {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.robo-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
}

.robo-code-box {
  background: #0b0f14;
  color: #a9dc76;
  border: 1px solid #2c3540;
  border-radius: 8px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.45;
  max-height: 330px;
  overflow: auto;
  white-space: pre;
}

.robo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.robo-table th,
.robo-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #26303c);
  text-align: left;
}

.robo-table th {
  color: #f5a623;
  font-weight: 700;
}

.robo-pill-pass {
  background: rgba(46, 204, 113, 0.18);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.45);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.robo-pill-warn {
  background: rgba(231, 76, 60, 0.18);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.45);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
