/* --- Zoom Controls --- */
.zoom-controls-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.zoom-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-btn[title="自适应大小"] {
    font-size: 12px;
    width: auto;
    padding: 0 5px;
}

#zoom-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Ensure wrapper scales from center */
.canvas-wrapper-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Hide scrollbars, let zoom handle view */
    background-color: #1e1e1e;
    /* Fixed dark workspace background */
    position: relative;
    width: 100%;
    flex: 1;
}

/* The element Fabric creates */
.canvas-container {
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}

/* Checkerboard when transparent */
.canvas-container.transparent-bg {
    /* Background handled by inline style in renderer.js */
}