body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
}

.App {
  flex-direction: column;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.toolbar {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.toolbar button {
  color: #fff;
  cursor: pointer;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
}

.toolbar button:hover {
  background-color: #0056b3;
}

.current-diagram {
  color: #666;
  margin-left: auto;
  font-size: 14px;
}

.fossflow-container {
  flex: 1;
  width: 100%;
  position: relative;
}

.fossflow-container > div {
  height: 100%;
}

.dialog-overlay {
  z-index: 1000;
  background-color: #00000080;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.dialog {
  background-color: #fff;
  border-radius: 8px;
  min-width: 400px;
  max-width: 600px;
  max-height: 80vh;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 2px 10px #0000001a;
}

.dialog h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
}

.dialog input[type="text"] {
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
}

.dialog-buttons {
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.dialog-buttons button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
}

.dialog-buttons button:first-child {
  color: #fff;
  background-color: #007bff;
}

.dialog-buttons button:first-child:hover {
  background-color: #0056b3;
}

.dialog-buttons button:last-child {
  color: #fff;
  background-color: #6c757d;
}

.dialog-buttons button:last-child:hover {
  background-color: #5a6268;
}

.diagram-list {
  max-height: 400px;
  margin-bottom: 20px;
  overflow-y: auto;
}

.diagram-item {
  border: 1px solid #eee;
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
}

.diagram-item:hover {
  background-color: #f8f9fa;
}

.diagram-actions {
  gap: 5px;
  display: flex;
}

.diagram-actions button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
}

.diagram-actions button:first-child {
  color: #fff;
  background-color: #28a745;
}

.diagram-actions button:first-child:hover {
  background-color: #218838;
}

.diagram-actions button:last-child {
  color: #fff;
  background-color: #dc3545;
}

.diagram-actions button:last-child:hover {
  background-color: #c82333;
}

