:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --text-light: #F9FAFB;
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, sans-serif; }
body { margin: 0; overflow: hidden; background-color: #000; }

#ui-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 10;
    pointer-events: none;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--text-light);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

#size-label { font-size: 1.1rem; font-weight: 700; color: #34D399; }

.compact-select {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 4px;
    font-size: 0.75rem;
    outline: none;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.control-row label { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: #34D399; cursor: pointer; margin-top: -7px; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; }

.actions-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.icon-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-btn.highlight { background: var(--primary); border: none; }
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.icon-btn.highlight:hover { background: var(--primary-hover); }

#logo-upload { display: none; }
