* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.circuit {
  overflow: hidden !important;
}

/* Main container */
.main-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Sidebar */
.sidebar-container {
  height: 100vh;
  min-width: 250px;
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 0;
  color: var(--text-light-color);
  font-family: "Inter", sans-serif;
  overflow: auto;
  pointer-events: none;
}

.sidebar-container > * {
  pointer-events: auto;
}


/* Circuit container */
.circuit-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: block;
}

/* Save button container */
.save-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100000000;
  padding: 10px;
  transition: all 0.15s ease-in;
}
.save-button-container:hover {
  top: -1px;
}
/* Save button */
.save-button {
  background-color: var(--node-background);
  color: var(--text-neutral-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.save-button:not(:disabled):hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-neutral-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.sidebar-container::-webkit-scrollbar {
  width: 6px;
}
.sidebar-container::-webkit-scrollbar-track {
  background-color: transparent;
}
.sidebar-container::-webkit-scrollbar-thumb {
  background-color: var(--text-neutral-color);
  border-radius: 1in;
}

.popup-overlay {
  font-family: "Inter", sans-serif;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000000000000000000;
}

.popup-container {
  background-color: #1a1f2e;
  border: 1px solid #2a2f3e;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.popup-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;

}

.close-button {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.close-button:hover {
  color: white;
  transition: color 0.2s;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  color: #e5e7eb;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: #252a3a;
  border: 1px solid #2a2f3e;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 0.875rem;
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.button-secondary {
  color: #9ca3af;
  background-color: #252a3a;
  border: 1px solid #2a2f3e;
}

.button-secondary:hover {
  color: white;
  background-color: #2a2f3e;
}

.button-primary {
  color: white;
  background-color: #2563eb;
  border: none;
}

.button-primary:hover {
  background-color: #1d4ed8;
}

