// Error Boundary styles for 3DStreet
.error-boundary-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.error-boundary-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  color: #333;
}

.error-boundary-header {
  h2 {
    margin-top: 0;
    color: #e53e3e;
    font-size: 1.5rem;
  }
  p {
    margin-bottom: 16px;
  }
}

.error-boundary-message {
  margin: 16px 0;
  padding: 12px;
  background-color: #f8f8f8;
  border-left: 4px solid #e53e3e;
  font-family: monospace;
  word-break: break-word;
}

.error-boundary-toggle-details {
  background: none;
  border: none;
  color: #4299e1;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  text-decoration: underline;
}

.error-boundary-stack {
  margin-top: 12px;
  padding: 12px;
  background-color: #f8f8f8;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.error-boundary-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.error-boundary-copy-button,
.error-boundary-recover-button {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.error-boundary-copy-button {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  color: #333;

  &:hover {
    background-color: #eaeaea;
  }
}

.error-boundary-recover-button {
  background-color: #4299e1;
  border: none;
  color: white;

  &:hover {
    background-color: #3182ce;
  }
}
