.channel-svg,
.layer-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 0;
    min-height: 0;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: white;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* First layer should have white background and border */
.layer-svg:first-child {
    background: white;
    border: 2px solid #ecf0f1;
}

/* Overlay layers are transparent */
.layer-svg:not(:first-child) {
    background: none !important;
    border: none;
}

.apply-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 8px;
}

.apply-btn:hover {
    background: #d35400;
}

.layer-control-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
}

.layer-control-group h4 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.layer-control-group .input-row {
    margin-bottom: 6px;
}

.layer-control-group label {
    min-width: 80px;
    font-size: 12px;
}

.layer-control-group input[type="number"] {
    width: 60px;
    font-size: 12px;
}

.layer-control-group input[type="range"] {
    min-width: 100px;
}

.layer-control-group input[type="color"] {
    width: 30px;
    height: 25px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
}

.add-layer-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.add-layer-btn:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.delete-layer-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-layer-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}