/* Live AI Decision Engine / Performance Dashboard styles (extracted from index.php) */

/* Scope to the dashboard container to avoid global bleed */
.ai-dashboard .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap; /* keep LIVE on one line */
}

.ai-dashboard .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  background: var(--base-color, #de347f);
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(222, 52, 127, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(222, 52, 127, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(222, 52, 127, 0); }
}

.ai-dashboard .decision-item { transition: all 0.3s ease; }
.ai-dashboard .decision-item:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Optimization items layout */
.ai-dashboard .optimization-item {
  display: flex; /* ensure flex on dynamically added items too */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* allow wrapping when space is tight */
  background:#58204c;
}

/* Keep impact + timestamp readable and aligned on one row */
.ai-dashboard .optimization-impact {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* spacing between value and timestamp */
  white-space: nowrap; /* prevent breaking across lines */
}

/* Responsive tweaks for small screens */
@media (max-width: 576px) {
  .ai-dashboard { padding: 20px !important; }
  .ai-dashboard .optimization-item { padding: 14px 16px !important; }
  .ai-dashboard .optimization-impact { justify-content: flex-end; gap: 8px; }
  .ai-dashboard .optimization-impact .fs-14 { font-size: 13px !important; }
  .ai-dashboard .optimization-impact .fs-12 { font-size: 11px !important; }
  .ai-dashboard h4 { font-size: 18px; }
}

