html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.animate-charcter{
  background-image: linear-gradient(117deg, #ff47b5 16%, #3aef3c 100%, #5045ea);
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s ease infinite;
  display: block;
}
@keyframes textclip {
  to { background-position: 200% center; }
}

.title-bar {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 2;
  font-family: sans-serif;
  font-size: 1em;
  user-select: none;
}
.menu-root {
  position: relative;
  margin-left: 16px;
  display: flex;
  align-items: center;
}
.menu-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 1em;
  cursor: pointer;
  color: #222;
  position: relative;
}
.menu-btn[disabled] {
  color: #aaa;
  cursor: default;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 140px;
  z-index: 10;
}
.menu-dropdown.show {
  display: block;
}
.menu-dropdown button {
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1em;
}
.menu-dropdown button:hover {
  background: #f0f0f0;
}
.submenu-root {
  position: relative;
}
.submenu-btn::after {
  content: "▶";
  float: right;
  font-size: 0.8em;
  margin-left: 8px;
}
.submenu-dropdown {
  left: 100%;
  top: 0;
  min-width: 140px;
}
.submenu-dropdown.show {
  display: block;
}
.split-container {
  flex: 1 1 auto;
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.panel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.2s, flex-basis 0.2s;
}
#panel-input[hidden] {
  display: none !important;
}
#mermaid-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 16px;
  resize: none;
  border: none;
  outline: none;
  padding: 8px;
  background: #fff;
}
#mermaid-render {
  width: 100%;
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 8px;
  background: #fafafa;
}
.divider {
  width: 6px;
  background: #ddd;
  cursor: col-resize;
  user-select: none;
  z-index: 1;
  transition: background 0.2s;
}
.divider:hover {
  background: #bbb;
}
.divider[hidden] {
  display: none !important;
}
