body {
    margin: 0; padding: 0; background-color: #000; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: white; 
    /* Fix for VS Code warning: Added both webkit and standard properties */
    -webkit-user-select: none; 
    user-select: none;
}

#input_video {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    object-fit: cover; transform: scaleX(-1);
    z-index: 1; opacity: 0.35; /* Darker video so neon colors pop more */
    transition: opacity 0.3s ease;
}

#output_canvas {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2;
}

#ui-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10;
}

/* UI Panels */
#status-bar {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 15, 20, 0.6); backdrop-filter: blur(12px);
    padding: 10px 25px; border-radius: 40px; font-size: 16px; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 10px; color: #eee;
}

.panel {
    background: rgba(18, 18, 22, 0.7); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    padding: 24px; pointer-events: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

#controls { position: absolute; top: 80px; left: 24px; width: 220px; }
#instructions { position: absolute; top: 80px; right: 24px; width: 260px; }

.header { font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; margin-bottom: 16px; }

label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #bbb; margin-top: 18px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;}

/* Custom Sliders */
input[type="range"] { 
    width: 100%; margin-top: 5px; accent-color: #00ffcc; cursor: pointer; height: 4px; background: #333; border-radius: 2px; outline: none; 
    /* Fix for VS Code warning: Added standard appearance next to webkit */
    -webkit-appearance: none; 
    appearance: none; 
}
input[type="range"]::-webkit-slider-thumb { 
    /* Fix for VS Code warning: Added standard appearance next to webkit */
    -webkit-appearance: none; 
    appearance: none; 
    width: 16px; height: 16px; background: #fff; border-radius: 50%; cursor: pointer; 
}

/* Exact Color Palette Buttons */
#color-palette { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.color-btn {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    cursor: pointer; transition: all 0.2s; opacity: 0.5;
}
.color-btn:hover { opacity: 0.8; transform: scale(1.1); }
.color-btn.active { opacity: 1; border: 2px solid white; transform: scale(1.15); }

/* Custom Toggle */
.toggle-box { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 12px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: #00ffcc; cursor: pointer; }

/* Buttons */
#clear-btn { width: 100%; padding: 12px; margin-top: 16px; background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.2s; }
#clear-btn:hover { background: rgba(255, 51, 102, 0.8); border-color: transparent; }

/* Instruction List */
ul { padding: 0; list-style: none; margin: 0; }
li { display: flex; align-items: center; margin-bottom: 16px; gap: 14px; }
.emoji { font-size: 24px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 12px; }
.text-block strong { display: block; font-size: 15px; color: #fff; }
.text-block .subtext { display: block; font-size: 12px; color: #888; margin-top: 2px; }

#lets-go { text-align: center; margin-top: 24px; font-weight: 800; color: #00ffcc; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 0 10px rgba(0, 255, 204, 0.5); }
