/* ═══ Job Soup Navigation Corrections ═══ */

/* Nav spacer pushes Settings to bottom */
.nav-spacer {
  flex: 1;
  min-height: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ═══ Bid Lifecycle Stepper ═══ */
.bid-lifecycle-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--card-bg, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: var(--radius, 12px);
  overflow-x: auto;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.lifecycle-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  color: var(--text-muted, #8b949e);
  font-size: 13px;
}

.lifecycle-step:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary, #e6edf3);
}

.lifecycle-step.active {
  color: var(--blue, #2563eb);
  font-weight: 600;
}

.lifecycle-step.completed {
  color: var(--green, #059669);
}

.lifecycle-step.completed .lifecycle-num {
  background: var(--green, #059669);
  color: #fff;
}

.lifecycle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border, #30363d);
  color: var(--text-muted, #8b949e);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lifecycle-step.active .lifecycle-num {
  background: var(--blue, #2563eb);
  color: #fff;
}

.lifecycle-connector {
  width: 20px;
  height: 2px;
  background: var(--border, #30363d);
  flex-shrink: 0;
}

.lifecycle-step.completed + .lifecycle-connector {
  background: var(--green, #059669);
}

/* ═══ Jobs Section ═══ */
.job-panel {
  padding: 16px 0;
}

.job-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #30363d);
  margin-bottom: 16px;
}

/* ═══ Settings Section ═══ */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
}

.settings-panel {
  background: var(--card-bg, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: var(--radius, 12px);
  padding: 20px;
}

.settings-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.settings-hint {
  color: var(--text-muted, #8b949e);
  font-size: 13px;
  margin: 0 0 12px;
}

.integration-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #30363d);
}

.integration-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.integration-status.connected { color: var(--green, #059669); background: rgba(5,150,105,0.1); }
.integration-status.pending { color: var(--yellow, #d97706); background: rgba(217,119,6,0.1); }

/* ═══ API Credentials Panel ═══ */
.api-key-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.api-key-input-wrap input {
  flex: 1;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.api-key-toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border, #30363d);
  border-radius: var(--radius-sm, 6px);
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted, #8b949e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-key-toggle:hover { color: var(--blue, #14b8a6); border-color: var(--blue, #14b8a6); }
.optional-label { color: var(--text-muted, #8b949e); font-size: 11px; font-weight: 400; }
.api-cred-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-danger-outline { color: var(--red, #ef4444); border-color: var(--red, #ef4444); }
.btn-danger-outline:hover { background: rgba(239,68,68,0.1); }
.api-cred-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
}
.api-cred-status.success { color: var(--green, #059669); background: rgba(5,150,105,0.1); }
.api-cred-status.info { color: var(--text-muted, #8b949e); background: rgba(139,148,158,0.08); }

/* ═══ Light Theme Overrides ═══ */
:root.light .bid-lifecycle-stepper { background: #fff; border-color: #e2e8f0; }
:root.light .lifecycle-step:hover { background: rgba(0,0,0,0.04); }
:root.light .settings-panel { background: #fff; border-color: #e2e8f0; }

/* ═══ Mobile Responsive ═══ */
@media (max-width: 768px) {
  .bid-lifecycle-stepper { padding: 10px; gap: 0; }
  .lifecycle-label { display: none; }
  .lifecycle-step { padding: 4px 6px; }
  .lifecycle-connector { width: 12px; }
  .settings-grid { grid-template-columns: 1fr; }
}
