/* Estilos para controles Mermaid */

.mermaid-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 1000;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.mermaid-controls:hover {
  opacity: 1;
}

.mermaid-controls button {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s;
}

.mermaid-controls button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.mermaid {
  position: relative;
  overflow: auto;
  margin: 1rem 0;
  min-height: 200px;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* Fullscreen overlay */
.mermaid-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.mermaid-fullscreen svg {
  max-width: 95vw;
  max-height: 95vh;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

