/* [Acert] 主容器 */
.acert-app-container {
    display: flex;
    height: 95vh;
    overflow: hidden;
}
/* [Acert] 左侧侧边栏 */
.acert-sidebar {
    width: 220px;
    background: #fff;
    /*border-right: 1px solid #e4e7ed;*/
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: flex-basis 0.3s;
    padding: 15px;
}

.acert-header {
    margin-bottom: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
    font-size: 15px;
    color: #303133;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.acert-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /*padding: 10px;*/
}

.acert-item {
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    font-size: 13px;
}
.acert-item:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.acert-item.active { border: 1px solid #66b1ff; background: #ecf5ff; }
.acert-item-info { flex: 1; overflow: hidden; margin-right: 8px; }
.acert-item-name { font-weight: 500; color: #303133; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.acert-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* [Acert] 中间主区域 */
.acert-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #444;
    position: relative;
}

.acert-toolbar {
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 5;
    flex-shrink: 0;
}

.acert-canvas-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    background-image: linear-gradient(45deg, #e0e4e8 25%, transparent 25%), linear-gradient(-45deg, #e0e4e8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e4e8 75%), linear-gradient(-45deg, transparent 75%, #e0e4e8 75%);
    background-size: 20px 20px;
}
.acert-canvas {
    background: #eeeeee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* [Acert] 右侧属性面板 */
.acert-props {
    width: 300px;
    background: #fff;
    border-left: 1px solid #e4e7ed;
    padding: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.acert-props-title {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
    flex-shrink: 0;
}

.acert-props-form-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.acert-compact-form .el-form-item { margin-bottom: 10px; }
.acert-compact-form .el-form-item__label { font-size: 12px; font-weight: bold; color: #606266; margin-bottom: 4px; line-height: 1.2; padding: 0; }
.acert-compact-form .el-input__inner { height: 28px; line-height: 28px; padding: 0 8px; font-size: 13px; text-align: center; }
.acert-compact-form .el-radio-group { display: flex; width: 100%; }
.acert-compact-form .el-radio-button__inner { padding: 5px 8px; font-size: 12px; flex: 1; text-align: center; }

.acert-empty-tip { text-align: center; color: #909399; margin-top: 40px; font-size: 13px; }

/* [Acert] 覆盖层元素 */
.acert-overlay-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 20;
}

.acert-name-tag {
    position: absolute;
    transform: translate(-50%, -140%);
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    font-size: 12px;
    padding: 2px 6px;
}

.acert-move-area {
    position: absolute;
    cursor: move;
    pointer-events: auto;
    z-index: 25;
    background: rgba(103, 194, 58, 0.05);
    border: 1px dashed rgba(103, 194, 58, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.acert-move-area::after {
    content: 'move';
    font-size: 16px;
    color: rgba(103, 194, 58, 0.6);
    opacity: 0;
    transition: opacity 0.2s;
}
.acert-move-area:hover::after { opacity: 1; }

.acert-control-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border: 2px solid #67c23a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 30;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.acert-control-point:hover {
    transform: translate(-50%, -50%) scale(1.4);
    background: #67c23a;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .acert-sidebar { flex-basis: 200px; min-width: 180px; }
    .acert-props { flex-basis: 200px; min-width: 180px; }
    .acert-toolbar { padding: 0 10px; gap: 5px; }
    .acert-toolbar .el-input { width: 150px !important; }
    .acert-toolbar .el-alert { display: none; }
}