/* Milkdown Integration Styles */

/* Basic editor container styling */
.milkdown-editor {
  min-height: 500px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  padding: 16px;
  background: white;
}

/* AI tools notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  z-index: 9999;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-success {
  background-color: #28a745;
}

.notification-error {
  background-color: #dc3545;
}

.notification-info {
  background-color: #007bff;
}

/* Save status indicator */
.save-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.save-status.saving {
  background-color: #ffc107;
  color: #856404;
}

.save-status.saved {
  background-color: #d4edda;
  color: #155724;
}

.save-status.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Error notification */
.error-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #dc3545;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  text-align: center;
}

/* Dark theme support */
.dark-theme .milkdown-editor {
  background: #1a1a1a;
  border-color: #404040;
  color: #e1e1e1;
}

.dark-theme .notification-info {
  background-color: #0056b3;
}

/* Mermaid diagram container styles */
.mermaid-container {
  position: relative;
  margin: 16px 0;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: #f8f9fa;
}

.mermaid-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  z-index: 10;
}

.mermaid-toggle:hover {
  background: #0056b3;
}

.mermaid-code {
  padding: 16px;
  margin: 0;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 14px;
  background: #f8f9fa;
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.mermaid-error {
  padding: 16px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 4px;
}

.mermaid-error p {
  margin: 0 0 8px 0;
  font-weight: bold;
}

.mermaid-error pre {
  margin: 0;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px;
  border-radius: 4px;
}

/* Dark theme mermaid styles */
.dark-theme .mermaid-container {
  background: #2d2d2d;
  border-color: #404040;
}

.dark-theme .mermaid-code {
  background: #2d2d2d;
  color: #e1e1e1;
}

.dark-theme .mermaid-error {
  background: #5a1e1e;
  color: #ff9999;
}
