/* Label Editor Styles */
.editor-panel {
    display: flex;
    flex-direction: column;
}

.editor-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.label-canvas {
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Scale will be handled by JS */
    transform-origin: center;
}

.canvas-element {
    position: absolute;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default center, but internal style may override */
    overflow: hidden;
    line-height: 1.2;
}

.canvas-element:hover {
    outline: 1px dashed #999;
}

.canvas-element.selected {
    outline: 2px solid var(--primary-color);
    z-index: 10;
}

/* Resize handles could be added later, for now we assume prop input */

.prop-row {
    margin-bottom: 10px;
}

.prop-row label {
    font-size: 11px;
    margin-bottom: 2px;
}

.prop-row select,
.prop-row input {
    width: 100%;
    padding: 4px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Simulate barcode bars */
.barcode-placeholder {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    background: repeating-linear-gradient(90deg,
            #000,
            #000 2px,
            #fff 2px,
            #fff 4px);
    position: relative;
}

.barcode-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    font-size: 10px;
}