/* agents.css — Agent cards, tags, peek panel */
/* ============================================================================
   AGENT CARDS
   ============================================================================ */

.agent-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.agent-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.agent-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.agent-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 8px;
}

/* ============================================================================
   TAGS / PILLS
   ============================================================================ */

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pill-running {
  background: #dcfce7;
  color: #15803d;
}

.pill-success {
  background: #dcfce7;
  color: #15803d;
}

.pill-idle {
  background: #fef3c7;
  color: #b45309;
}

.pill-error {
  background: #fee2e2;
  color: #991b1b;
}

.pill-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.pill-schedule {
  background: #dbeafe;
  color: #0c4a6e;
}

.pill-webhook {
  background: #f3e8ff;
  color: #6b21a8;
}

.pill-manual {
  background: #f3f4f6;
  color: #6b7280;
}

.pill-unknown {
  background: #f3f4f6;
  color: #6b7280;
}

.pill-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.pill-green {
  background: #e8f5e9;
  color: #1b5e20;
}

.pill-blue {
  background: #e3f2fd;
  color: #0d47a1;
}

.pill-red {
  background: #ffebee;
  color: #b71c1c;
}

.pill-yellow {
  background: #fffde7;
  color: #f57f17;
}

.pill-orange {
  background: #ffe0b2;
  color: #e65100;
}

.pill-purple {
  background: #f3e5f5;
  color: #4a148c;
}

.pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.pill-pending {
  background: #fef3c7;
  color: #b45309;
}

.pill-running-t {
  background: #dcfce7;
  color: #15803d;
}

.pill-done {
  background: #f3f4f6;
  color: #6b7280;
}

.pill-failed {
  background: #fee2e2;
  color: #991b1b;
}

.pill-cancelled {
  background: #f3f4f6;
  color: #6b7280;
}

/* ============================================================================
   PEEK PANEL
   ============================================================================ */

#peek-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

#peek-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#peek-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 380px;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 201;
  overflow: hidden;
}

#peek-panel.open {
  transform: translateX(0);
}

.peek-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.peek-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.peek-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.peek-close:hover {
  background: var(--hover);
}

.peek-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.peek-prop-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}

.peek-prop-key {
  min-width: 120px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
}

.peek-prop-val {
  flex: 1;
  color: var(--text);
}

.peek-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 16px 0 8px;
}

.exec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(45,138,86,0.05);
}

.exec-status {
  font-size: 14px;
}


