.light-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let events pass through to canvas container, or handle them directly */
}

.light-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: grab;
    pointer-events: auto; /* Re-enable pointer events for the indicator itself */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 2px black;
    transition: background-color 0.2s, transform 0.1s;
}

.light-indicator:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.light-indicator.active {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px var(--primary);
}

.light-indicator:active {
    cursor: grabbing;
}

/* Sidebar Customizations */
.mode-toggle {
    display: flex;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: var(--primary);
    color: white;
}

.light-panel {
    background: var(--panel-bg);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.light-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    user-select: none;
}

.light-panel-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.light-color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.light-panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.remove-light-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-light-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    color: var(--text-color);
}

.light-panel.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.light-panel-content {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.light-panel.collapsed .light-panel-content {
    display: none;
}

/* Adjust standard controls to look good inside panels */
.light-panel-content .control-group {
    margin-bottom: 12px;
}

.light-panel-content .control-group:last-child {
    margin-bottom: 0;
}