/* ──────────────────────────────────────────────
   AI Orchestrator Engine — app.css
   Bootstrap 5.3 dark mode base, custom overrides
   ────────────────────────────────────────────── */

/* Phase Timeline */
.phase-timeline {
  position: relative;
  padding-left: 2rem;
}

.phase-timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--bs-border-color);
}

.phase-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.phase-dot {
  position: absolute;
  left: -1.65rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--bs-body-bg);
  flex-shrink: 0;
}

/* Pulse animation untuk phase running */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(13, 110, 253, 0); }
}

.phase-dot.running-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Output pre block */
.output-pre {
  background-color: var(--bs-body-secondary-bg, #1a1a2e);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--bs-body-color);
}

/* Progress bar slim */
.progress.progress-sm {
  height: 8px;
  border-radius: 4px;
}

/* Approve button — full width di mobile */
.btn-approve {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-approve {
    width: auto;
  }
}

/* Push notification banner */
#push-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  min-width: 300px;
  max-width: 90vw;
}

/* Card hover effect */
.project-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

/* Phase status badges */
.badge-phase-done     { --bs-badge-color: #198754; }
.badge-phase-running  { --bs-badge-color: #0d6efd; }
.badge-phase-error    { --bs-badge-color: #dc3545; }
.badge-phase-pending  { --bs-badge-color: #6c757d; }
.badge-phase-skipped  { --bs-badge-color: #6c757d; opacity: 0.6; }
