/* vectorcraft.css — camada visual inspirada no VectorCraft (ArtCraft).
   Carregada depois de app.css; só sobrescreve o chrome do editor e a paleta. */

:root {
  --bg: #1e1e1e;
  --bg-deep: #171717;
  --panel: #2b2b2b;
  --panel-2: #333333;
  --panel-3: #3a3a3a;
  --border: #3a3a3a;
  --border-strong: #4a4a4a;
  --text: #e8e8e8;
  --text-dim: #bdbdbd;
  --muted: #8c8c8c;
  --accent: #e8573f;
  --accent-hi: #ff6a50;
  --accent-soft: rgba(232, 87, 63, 0.16);
  --accent-ring: rgba(232, 87, 63, 0.45);
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --vc-menu-h: 30px;
  --vc-tab-h: 31px;
  --vc-status-h: 26px;
  --vc-rail-w: 44px;
  --vc-dock-w: 292px;
}

/* ---------- raiz ---------- */
.vc-editor {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #2a2a2a;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- barra de menus ---------- */
.vc-menubar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--vc-menu-h);
  flex: none;
  padding: 0 8px 0 6px;
  background: #1e1e1e;
  border-bottom: 1px solid #3a3a3a;
  z-index: 40;
  user-select: none;
}
.vc-menubar-left,
.vc-menubar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.vc-menubar-right { margin-left: auto; }
.vc-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  flex: none;
}
.vc-brand-mark { transform: translateY(-0.5px); }
.vc-menus { display: flex; align-items: center; gap: 1px; }
.vc-menu-btn {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #d8d8d8;
  font: inherit;
  font-size: 12px;
  cursor: default;
}
.vc-menu-btn:hover,
.vc-menu-btn[aria-expanded="true"] { background: #3a3a3a; color: #fff; }
.vc-history { display: flex; align-items: center; gap: 2px; margin-right: 2px; }
.vc-icon-btn,
.vc-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #d0d0d0;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.vc-icon-btn { justify-content: center; padding: 0 4px; }
.vc-icon-btn:hover:not(:disabled),
.vc-top-btn:hover:not(:disabled) { background: #3a3a3a; color: #fff; }
.vc-icon-btn:disabled { color: #6c6c6c; cursor: default; }
.vc-top-btn { border-color: #4a4a4a; background: #333; }
.vc-top-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vc-top-btn.is-primary:hover { background: var(--accent-hi); }
.vc-menubar-right .conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  border-radius: 3px;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  font-size: 10.5px;
  color: #bdbdbd;
}
.vc-menubar-right .peers { display: flex; align-items: center; gap: 2px; }
.vc-menubar-right .avatar {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 9px;
  border: 1px solid #1e1e1e;
}

/* ---------- separador de documento ---------- */
.vc-tabstrip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: var(--vc-tab-h);
  flex: none;
  padding: 0 6px;
  background: #252525;
  border-bottom: 1px solid #3a3a3a;
  user-select: none;
}
.vc-tab-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 25px;
  margin-bottom: 3px;
  color: #bdbdbd;
  text-decoration: none;
  border-radius: 3px;
}
.vc-tab-home:hover { background: #383838; color: #fff; }
.vc-doc-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  max-width: 46vw;
  padding: 0 9px;
  border: 1px solid #3d3d3d;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #303030;
  color: #e2e2e2;
}
.vc-doc-tab.is-active { background: #333; }
.vc-doc-icon { display: inline-flex; color: #9a9a9a; }
.vc-doc-title {
  border: 0;
  background: transparent;
  color: #ededed;
  font: inherit;
  font-size: 11.5px;
  max-width: 32vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  padding: 0;
}
.vc-doc-meta {
  color: #9a9a9a;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22vw;
}
.vc-doc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0;
}
.vc-doc-close:hover { background: #4a4a4a; color: #fff; }
.vc-tabstrip-grow { flex: 1; }
.vc-tabstrip-mode {
  align-self: center;
  color: #8c8c8c;
  font-size: 10.5px;
  padding-right: 6px;
}

/* ---------- corpo ---------- */
.vc-body {
  display: grid;
  grid-template-columns: var(--vc-rail-w) minmax(0, 1fr) var(--vc-dock-w);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #2a2a2a;
}
.sidebar-hidden .vc-body { grid-template-columns: var(--vc-rail-w) minmax(0, 1fr); }
.sidebar-hidden .vc-sidebar { display: none; }

/* ---------- ferramentas ---------- */
.vc-toolrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0 6px;
  background: #262626;
  border-right: 1px solid #3a3a3a;
  overflow-y: auto;
  overflow-x: hidden;
}
.vc-toolgroup { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.vc-toolgroup.is-muted { opacity: 0.45; }
.vc-toolsep {
  width: 26px;
  height: 1px;
  margin: 4px 0;
  background: #3d3d3d;
  flex: none;
}
.vc-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 29px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #cfcfcf;
  cursor: pointer;
  padding: 0;
}
.vc-tool:hover:not(.is-disabled) { background: #3a3a3a; color: #fff; }
.vc-tool.is-active {
  background: #3a3a3a;
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}
.vc-tool.is-disabled { cursor: default; }
.vc-tool kbd {
  position: absolute;
  right: 2px;
  bottom: 0;
  font: 8px var(--font);
  color: #7c7c7c;
  background: none;
  padding: 0;
}
.vc-tool-grow { flex: 1; }
.vc-swatches {
  position: relative;
  width: 34px;
  height: 36px;
  margin: 6px 0 4px;
  flex: none;
}
.vc-swatch {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid #555;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  background: #fff;
}
.vc-swatch-fill { left: 0; top: 0; z-index: 2; }
.vc-swatch-stroke { right: 0; bottom: 0; background: transparent; }
.vc-screen-mode {
  font-size: 8.5px;
  color: #8c8c8c;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ---------- canvas + réguas ---------- */
.vc-canvasarea { position: relative; min-width: 0; min-height: 0; background: #2f2f2f; }
.vc-ruler-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #2b2b2b;
  border-right: 1px solid #3d3d3d;
  border-bottom: 1px solid #3d3d3d;
  z-index: 3;
}
.vc-ruler {
  position: absolute;
  display: block;
  background: #2b2b2b;
  z-index: 2;
  pointer-events: none;
}
.vc-ruler-corner { pointer-events: none; }
.vc-ruler-h {
  left: 20px;
  top: 0;
  right: 0;
  width: calc(100% - 20px);
  height: 20px;
  border-bottom: 1px solid #3d3d3d;
}
.vc-ruler-v {
  left: 0;
  top: 20px;
  bottom: 0;
  width: 20px;
  height: calc(100% - 20px);
  border-right: 1px solid #3d3d3d;
}
.vc-stage {
  position: absolute;
  left: 20px;
  top: 20px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #2f2f2f;
}
.vc-rulers-hidden .vc-ruler,
.vc-rulers-hidden .vc-ruler-corner { display: none; }
.vc-rulers-hidden .vc-stage { left: 0; top: 0; }
.vc-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
.vc-stage .text-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.vc-stage .canvas-blocker { position: absolute; inset: 0; z-index: 6; }
.vc-stage .zoom-hud {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 5;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #444;
  color: #bdbdbd;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---------- barra contextual ---------- */
.vc-contextbar {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  color: #e0e0e0;
}
.vc-contextbar[hidden] { display: none; }
.vc-ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #dcdcdc;
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}
.vc-ctx-btn:hover { background: #4a4a4a; color: #fff; }
.vc-ctx-color {
  width: 22px;
  height: 22px;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* ---------- dock direito ---------- */
.vc-sidebar {
  display: flex;
  min-height: 0;
  background: #2b2b2b;
  border-left: 1px solid #3a3a3a;
  overflow: hidden;
}
.vc-dockrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 28px;
  flex: none;
  padding: 5px 0;
  background: #262626;
  border-right: 1px solid #3a3a3a;
}
.vc-dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #a8a8a8;
  cursor: pointer;
  padding: 0;
}
.vc-dock-btn:hover { background: #3a3a3a; color: #fff; }
.vc-dock {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.vc-panel-tabs {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 29px;
  flex: none;
  padding: 0 4px;
  border-bottom: 1px solid #3a3a3a;
  background: #2b2b2b;
}
.vc-panel-tab {
  height: 23px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #a8a8a8;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.vc-panel-tab:hover { color: #e8e8e8; }
.vc-panel-tab.is-active { background: #3d3d3d; color: #f2f2f2; }
.vc-panel-tabs-grow { flex: 1; }
.vc-panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0;
}
.vc-panel-more:hover { background: #3d3d3d; color: #fff; }
.vc-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #2b2b2b;
}
.vc-sidebar-body[hidden] { display: none; }
.vc-sidebar-body[data-panel="props"] .panel-layers { display: none; }
.vc-sidebar-body[data-panel="layers"] .panel-props { display: none; }
.vc-library-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #2b2b2b;
  padding: 8px;
}
.vc-library-panel[hidden] { display: none; }
.vc-lib-section { margin-bottom: 14px; }
.vc-lib-section h3 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.vc-lib-note { margin: 0; color: #8c8c8c; font-size: 10.5px; line-height: 1.5; }
.vc-swatches-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.vc-lib-swatch {
  aspect-ratio: 1;
  border: 1px solid #444;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.vc-lib-swatch:hover { outline: 1px solid #fff; outline-offset: 1px; }

/* painéis existentes ficam compactos e cinzentos */
.vc-sidebar .panel-section {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #3a3a3a;
  border-radius: 0;
  background: #2b2b2b;
}
.vc-sidebar .panel-head { height: 26px; padding: 0 8px; background: #303030; }
/* A aba "Propriedades" já faz de cabeçalho; evita duplicar o título. */
.vc-sidebar .panel-props > .panel-head { display: none; }
.vc-sidebar .panel-title { font-size: 10.5px; letter-spacing: 0.02em; }
.vc-sidebar .panel-icon { color: #9a9a9a; }
.vc-sidebar .panel-badge { background: #3d3d3d; color: #bdbdbd; font-size: 9.5px; }
.vc-sidebar .panel-body,
.vc-sidebar .props-body,
.vc-sidebar .layers-body { padding: 6px 8px; }
.vc-sidebar .selection-head { margin: -2px 0 6px; padding-bottom: 5px; border-bottom: 1px solid #3a3a3a; }
.vc-sidebar .selection-title { font-size: 11px; }
.vc-sidebar .panel-section .num-input,
.vc-sidebar .panel-section input,
.vc-sidebar .panel-section select {
  background: #3a3a3a;
  border: 1px solid #474747;
  color: #e6e6e6;
  border-radius: 2px;
}
.vc-sidebar .panel-section .field-name,
.vc-sidebar .panel-section .props-label { font-size: 10px; color: #a8a8a8; }
.vc-sidebar .panel-section .btn,
.vc-sidebar .panel-section button { border-radius: 3px; }
.vc-sidebar .panel-note { font-size: 10.5px; }
.vc-sidebar .layer-row { height: 25px; font-size: 11px; }

/* ---------- barra de estado ---------- */
.vc-statusbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--vc-status-h);
  flex: none;
  padding: 0 8px;
  background: #1e1e1e;
  border-top: 1px solid #3a3a3a;
  color: #a8a8a8;
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
}
.vc-status-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.vc-status-grow { flex: 1; }
.vc-status-sep {
  width: 1px;
  height: 12px;
  background: #3d3d3d;
  flex: none;
}
.vc-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}
.vc-status-btn:hover { background: #3a3a3a; color: #fff; }
.vc-status-btn.is-active { color: var(--accent); }
.vc-zoom-value { min-width: 46px; }
.vc-status-mode,
.vc-status-tool,
.vc-status-conn { color: #bdbdbd; }
.vc-status-conn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  color: #bdbdbd;
  cursor: pointer;
}
.vc-status-conn:hover { background: #3a3a3a; }
.vc-status-render { color: #7c7c7c; margin-left: 2px; }

/* ---------- banners ---------- */
.vc-editor .banner {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 4px 10px;
  font-size: 11px;
}

/* ---------- menus flutuantes ---------- */
.vc-editor + .menu,
body > .menu {
  background: #333;
  border-color: #4a4a4a;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}
body > .menu .menu-item { border-radius: 2px; font-size: 11.5px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  :root { --vc-dock-w: 252px; }
}
@media (max-width: 860px) {
  :root { --vc-dock-w: 220px; }
  .vc-doc-meta { display: none; }
  .vc-menus .vc-menu-btn:nth-child(n + 6) { display: none; }
}
