/* ════════════════════════════════════════════════════════════════════════════ */
/* BigBrain Status Panel Styles */
/* Loaded via: <link rel="stylesheet" href="css/bigbrain-panel.css"> */
/* ════════════════════════════════════════════════════════════════════════════ */

/* BigBrain Picker Container */
.bigbrain-picker {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}

.bigbrain-picker label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BigBrain Button */
.bigbrain-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.bigbrain-btn:hover {
  background: #374151;
  border-color: #4b5563;
}

.bigbrain-btn svg {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.bigbrain-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Status Dot (in button) */
.bb-status-dot {
  font-size: 12px;
  line-height: 1;
  transition: color 0.3s ease;
}

.bb-status-dot.healthy { color: #22c55e; }
.bb-status-dot.warning { color: #f59e0b; }
.bb-status-dot.error { color: #ef4444; }
.bb-status-dot.gray { color: #6b7280; }

/* BigBrain Dropdown Menu */
.bigbrain-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 480px;
  overflow-y: auto;
}

.bigbrain-menu.show {
  display: block;
}

/* Section Styles */
.bb-section {
  padding: 12px;
}

.bb-section-header {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.bb-divider {
  height: 1px;
  background: #374151;
  margin: 0;
}

/* Status Items */
.bb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.bb-item:hover {
  background: #374151;
}

.bb-dot {
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.bb-dot.green { color: #22c55e; }
.bb-dot.yellow { color: #f59e0b; }
.bb-dot.red { color: #ef4444; }
.bb-dot.gray { color: #6b7280; }

.bb-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
}

.bb-label {
  font-size: 13px;
  color: #e5e7eb;
  font-weight: 500;
}

.bb-time {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'SF Mono', Monaco, monospace;
}

/* Decision Box */
.bb-decision {
  padding: 10px;
  background: #111827;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.bb-decision-text {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
  display: block;
}

.bb-decision .bb-decision-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.bb-decision.changed {
  border-left-color: #22c55e;
}

.bb-decision.kept {
  border-left-color: #6b7280;
}

/* Footer Link */
.bb-footer {
  padding: 10px 12px;
  border-top: 1px solid #374151;
  background: #111827;
}

.bb-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bb-link:hover {
  color: #60a5fa;
}

/* Scrollbar Styling */
.bigbrain-menu::-webkit-scrollbar {
  width: 6px;
}

.bigbrain-menu::-webkit-scrollbar-track {
  background: #1f2937;
}

.bigbrain-menu::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.bigbrain-menu::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Pipeline Flow Items */
.bb-pipeline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* Decision Header */
.bb-decision-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bb-decision-icon {
  font-weight: bold;
  font-size: 14px;
}

.bb-decision.changed .bb-decision-icon {
  color: #10b981;
}

.bb-decision.kept .bb-decision-icon {
  color: #6b7280;
}
