.App {
  text-align: center;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.App-header {
  background-color: #282c34;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.App-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.controls {
  display: flex;
  gap: 0.5rem;
}

main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  background-color: #f5f5f5;
  padding: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;
  color: #666;
}

.schematic-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schematic-viewer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schematic-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f5f5f5;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.schematic-breadcrumbs h2 {
  margin: 0;
  flex: 1;
  text-align: left;
  font-size: 1.3rem;
}

.schematic-description {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.navigate-up-button,
.navigate-button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.navigate-up-button:hover,
.navigate-button:hover {
  background-color: #e0e0e0;
}

.canvas-container {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  min-height: 500px;
  height: 70vh;
  position: relative;
}

.placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border: 1px dashed #ccc;
  color: #999;
  font-style: italic;
}

.component-info {
  background-color: #e8f4ff;
  border: 1px solid #bbd8f9;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.component-info h3 {
  color: #0066cc;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.component-info p {
  margin: 0.25rem 0;
}

.deselect-button {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.deselect-button:hover {
  background-color: #0052a3;
}

.debug-toggle, .data-toggle, .viewer-toggle {
  background-color: #565656;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.debug-toggle:hover, .data-toggle:hover, .viewer-toggle:hover {
  background-color: #444;
}

.data-toggle {
  background-color: #2c5282;
}

.data-toggle:hover {
  background-color: #1a365d;
}

.viewer-toggle {
  background-color: #4a5568;
}

.viewer-toggle:hover {
  background-color: #2d3748;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-size: 1.2rem;
  color: #666;
}

.debug-info {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  overflow: auto;
  max-height: 300px;
  text-align: left;
  font-size: 0.9rem;
}

.debug-info h3, .debug-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.debug-info pre {
  font-size: 12px;
  white-space: pre-wrap;
  background-color: #e5e5e5;
  padding: 0.5rem;
  border-radius: 4px;
  overflow: auto;
}

.error-message {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  color: #b71c1c;
  width: 100%;
}

.error-message h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #b71c1c;
}

.error-message button {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.error-message button:hover {
  background-color: #d32f2f;
}

h2 {
  color: #333;
  margin-bottom: 1rem;
}
