/* Custom CSS - Uses unified CSS variables from researcher.scss */

/* Mermaid container styling */
.mermaid {
  margin: 1rem 0;
  text-align: center;
}

/* Enhanced Code Block Styling */
.highlight {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Copy button styling */
.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.code-copy-btn:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
}

.code-copy-btn.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

.code-copy-btn i {
  font-size: 0.75rem;
}

/* Scrollbar styling for code blocks */
.highlight pre::-webkit-scrollbar {
  height: 6px;
}

.highlight pre::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: 3px;
}

.highlight pre::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.highlight pre::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .code-copy-btn {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
  }
}
