:root {
    --canvas-width: 1050px;
    --canvas-height: 600px;
}

.canvas {
    /* flex: 1; */
    background: white;
    position: relative;
    overflow: visible;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: var(--canvas-width);
    height: var(--canvas-height);
}

.background-image {
    width: var(--canvas-width);
    height: var(--canvas-height);
    object-fit: cover;
    display: block;
}

.no-background {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 16px;
}

.placed-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 4px 2px;
    border-radius: 4px;
    color: #ccc;
    transition: width 0.1s ease, height 0.1s ease;
}

.placed-item:hover {
    cursor: grab;
}

.placed-item.dragging {
    cursor: grabbing;
}

.placed-item img {
    /* width: 12px;
    height: 20px; */
    width: 100%;
    height: 100%;
}
.placed-item-label {
    font-size: 7px;
    color: #f2eeee;
    font-weight: 600;
    text-align: center;
    max-width: 80px;
}
.canal-item-label {
    font-size: 11px;
    color: #464444;
    font-weight: 600;
    text-align: center;
    /* max-width: 80px; */
}
.canal-wrapper {
    background-color: #fff;
    display: flex;
    align-content: center;
    vertical-align: center;
    padding: 4px 8px;
    border-radius: 10px;
}

.resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    right: -12px;
    bottom: -10px;
    background: #0d6efd;
    border: 2px solid white;
    border-radius: 4px;
    cursor: se-resize;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
    z-index: 999;
    visibility: hidden;
}

.placed-item:hover .resize-handle {
    background: #0056b3;
    transform: scale(1.2);
    visibility: visible;
}

.resize-handle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 4px 0 0 white, 0 4px 0 white, 4px 4px 0 white;
    border-radius: 50%;
}

body:not(.editor-mode) .resize-handle {
    display: none;
}

.placed-item:hover {
    cursor: pointer !important;
}
