:root {
    --bg: #050505;
    --dock-bg: rgba(20, 20, 20, 0.6);
    --dock-border: rgba(255, 255, 255, 0.1);
    --accent: #fff;
    --text-muted: #666;
    --font: 'Inter', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg);
    font-family: var(--font);
    color: var(--accent);
    cursor: crosshair;
    /* Artistic feel */
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.1s;
}

/* Minimal Dock Bar */
.ui-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dock-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dock-border);
    border-radius: 50px;
    /* Capsule shape */
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: all 0.3s ease;
}

.ui-panel:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Text Input */
#text-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    padding: 8px 12px;
    outline: none;
    text-align: center;
    width: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: width 0.3s, background 0.3s;
}

#text-input:focus {
    width: 140px;
    background: rgba(255, 255, 255, 0.1);
}

/* Separator */
.sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    width: 80px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Color Picker & Thickness */
#color-picker,
#bg-color-picker {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

#color-picker::-webkit-color-swatch-wrapper,
#bg-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

#color-picker::-webkit-color-swatch,
#bg-color-picker::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}


/* Audio Controls */
.audio-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon-btn.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.dock-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

/* Presets */
.audio-presets {
    display: flex;
    gap: 4px;
}

.preset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.preset-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.effects-list {
    display: flex;
    gap: 4px;
}

.effect-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.effect-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.effect-btn.active {
    background: #fff;
    color: #000;
    font-weight: 700;
}