/* ===========================================
   JAVY 5 - Inspector + AI Highlight Styles
   Basiert auf Chappy AI V2 Inspector/Bridge CSS
   =========================================== */

/* ---- Inspector Hover: Blaues Outline ---- */
.javy-inspector-hover {
  outline: 2px dashed #3b82f6 !important;
  outline-offset: 2px;
  cursor: crosshair !important;
}

/* ---- Inspector Selected: Gruenes Outline ---- */
.javy-inspector-selected {
  outline: 2px solid #22c55e !important;
  outline-offset: 2px;
}

/* ---- AI Highlight: Gruener Puls ---- */
.highlight-green {
  outline: 3px solid #10b981 !important;
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  animation: ai-green-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-green-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.7), 0 0 48px rgba(16, 185, 129, 0.3);
  }
}

/* ---- Breadcrumb Bar (unter Header) ---- */
.javy-inspector-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 4px);
  padding: 6px 20px;
  background: rgba(15, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  font-size: 12px;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
  overflow-x: auto;
  white-space: nowrap;
  z-index: var(--z-header, 100);
  flex-shrink: 0;
}

.javy-inspector-breadcrumb.hidden {
  display: none;
}

.javy-inspector-breadcrumb .crumb {
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  cursor: default;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.15s;
}

.javy-inspector-breadcrumb .crumb:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, rgba(255, 255, 255, 0.92));
}

.javy-inspector-breadcrumb .crumb:last-child {
  color: var(--accent-cyan, #06b6d4);
  font-weight: 600;
}

.javy-inspector-breadcrumb .crumb-sep {
  color: var(--text-muted, rgba(255, 255, 255, 0.3));
  font-size: 10px;
}

/* ---- Inspector Button Active State ---- */
#btn-inspector.active {
  color: var(--accent-cyan, #06b6d4);
  border-color: var(--accent-cyan, #06b6d4);
  background: rgba(6, 182, 212, 0.12);
  box-shadow:
    0 0 12px rgba(6, 182, 212, 0.2),
    var(--shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.04));
}

/* ---- Prevent interaction with inspected elements ---- */
body.inspector-active * {
  cursor: crosshair !important;
}

body.inspector-active #header,
body.inspector-active #header *,
body.inspector-active #chat-container,
body.inspector-active #chat-container *,
body.inspector-active #test-runner,
body.inspector-active #test-runner *,
body.inspector-active .javy-inspector-breadcrumb,
body.inspector-active .javy-inspector-breadcrumb * {
  cursor: default !important;
}
