body {
    overflow: hidden; /* 防止整个页面滚动 */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.litegraph-editor .content {
    overflow: hidden;
}
input.value.rounded {
    font-size: 20px;
}

/* 顶部工具栏样式 */
.toolbar {
    height: 50px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 主内容区域样式 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 50px);
}

#main {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* 最小宽度，防止被压得太小 */
    min-width: 200px; 
}

/* 拖拽条样式 */
#resizer {
    width: 5px;
    background-color: #ddd;
    cursor: col-resize;
    z-index: 10;
    transition: background-color 0.2s;
}

#resizer:hover, #resizer.active {
    background-color: #aaa;
}

#right {
    width: 400px;
    /* 最小宽度，防止完全消失 */
    min-width: 150px;
    max-width: 80%;
    border-left: 1px solid #ddd;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* 右侧工具栏（新增） */
.right-toolbar {
    height: 30px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: flex-end;
    font-size: 12px;
}

.right-toolbar label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.right-toolbar input[type="checkbox"] {
    margin-right: 5px;
}

#output {
    flex: 1;
    width: 100%;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    resize: none;
    font-family: monospace;
    background-color: #f8f8f8;
    font-size: 14px;
    line-height: 1.5;
}

/* 换行控制类 */
#output.wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

#output.nowrap {
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
}

/* Dropdown 样式优化 */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* 节点工具栏样式 */
.node-category h4 {
    margin: 5px 0;
    padding: 5px;
    background: #eee;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
.node-item {
    margin: 2px 0 2px 10px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: grab;
    font-size: 12px;
}
.node-item:hover {
    background: #f0faff;
    border-color: #007acc;
}
.node-item.dragging {
    opacity: 0.5;
}
