/* RESET – isolate from WordPress theme */
#svg-tool-app,
#svg-tool-app * {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

#svg-tool-app {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* HEADER */
.svg-header {
  background: #4f46e5;
  color: #fff;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
}

/* MAIN CONTAINER */
.svg-container {
  display: flex;
  height: 650px;
}

/* LEFT */
.svg-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
}

/* ACTION BAR */
.svg-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.svg-actions button {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.svg-actions button:hover {
  background: #4338ca;
}

.svg-actions input {
  margin-left: auto;
  font-size: 13px;
}

/* TEXTAREA */
#svgInput {
  flex: 1;
  border: none;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  resize: none;
  outline: none;
  background: #ffffff;
}

/* DIVIDER */
#divider {
  width: 6px;
  cursor: col-resize;
  background: #e5e7eb;
}

/* RIGHT */
.svg-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}

/* TABS */
.svg-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.svg-tabs button {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  color: #374151;
}

.svg-tabs button.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}

/* OUTPUT */
.svg-output {
  flex: 1;
  padding: 20px;
  overflow: auto;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EXPORT BAR */
.svg-export {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.svg-export button {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.svg-export button:hover {
  background: #4338ca;
}

/* PRE */
.svg-output pre {
  width: 100%;
  white-space: pre-wrap;
  font-size: 13px;
}
/* MAIN LAYOUT */
.svg-main {
  display: flex;
  height: 700px;
}

/* SIDEBAR */
.svg-sidebar {
  width: 48px;
  background: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
}

.svg-sidebar button {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}

.svg-sidebar button:hover {
  color: #ffffff;
}

/* CONTENT */
.svg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.svg-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
}

.svg-topbar .tool {
  cursor: pointer;
  color: #374151;
}

.svg-topbar .tool:hover {
  color: #4f46e5;
}

.svg-topbar .size {
  margin-left: auto;
  color: #6b7280;
}
/* SVG ICONS */
.svg-sidebar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sidebar button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.svg-sidebar button:hover {
  background: rgba(255, 255, 255, 0.08);
}


