* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 顶部工具栏 */
#toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    color: #ffffff;
}

.project-title {
    font-size: 15px;
    font-weight: 600;
    color: #e94560;
}

.toolbar-center {
    flex: 1;
    text-align: center;
}

#workflow-name {
    background: transparent;
    border: 1px solid transparent;
    color: #e0e0e0;
    font-size: 14px;
    text-align: center;
    padding: 4px 12px;
    border-radius: 4px;
    width: 240px;
}

#workflow-name:hover {
    border-color: #0f3460;
}

#workflow-name:focus {
    border-color: #e94560;
    outline: none;
}

.toolbar-right {
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    padding: 6px 16px;
    border: 1px solid #0f3460;
    background: #16213e;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.toolbar-btn:hover {
    background: #0f3460;
}

.btn-primary {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #c73650;
}

/* 画布 */
#main-canvas {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 28px;
}

/* 右侧属性面板 */
#properties-panel {
    position: fixed;
    top: 48px;
    right: 0;
    width: 320px;
    bottom: 28px;
    background: #16213e;
    border-left: 1px solid #0f3460;
    z-index: 50;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.panel-hidden {
    transform: translateX(100%);
}

.panel-visible {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #0f3460;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
}

.panel-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 20px;
    cursor: pointer;
}

.panel-close:hover {
    color: #fff;
}

#panel-content {
    padding: 16px;
}

/* 底部状态栏 */
#statusbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #0f3460;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    color: #a0a0a0;
    z-index: 100;
}
