* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #10141f;
  color: #e8eef9;
}

#app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #151b2a;
  padding: 16px;
  border-right: 1px solid #2a3551;
}

.canvas-area {
  position: relative;
  overflow: hidden;
}

.canvas-root {
  width: 100%;
  height: 100%;
}

.card {
  background: #151b2a;
  border: 1px solid #2a3551;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 8px;
  margin: 4px 0;
  background: #0f1522;
  color: #fff;
  border: 1px solid #2f3b5a;
}

.btn {
  padding: 8px 12px;
  border: 1px solid #2f3b5a;
  background: #223152;
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.muted {
  color: #9eb0d6;
  font-size: 12px;
  margin-top: 6px;
}

.context-menu {
  position: absolute;
  min-width: 180px;
  background: #151b2a;
  border: 1px solid #2a3551;
  border-radius: 6px;
  padding: 6px 0;
  z-index: 10;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.context-menu.hidden {
  display: none;
}

.context-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e8eef9;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
}

.context-menu button:hover {
  background: #223152;
}

.context-menu-item {
  position: relative;
}

.context-menu-item > .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #151b2a;
  border: 1px solid #2a3551;
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  display: none;
}

.context-menu-item:hover > .submenu {
  display: block;
}
