:root {
    --primary-color: #00f2ff;
    --bg-color: #050505;
    --panel-bg: rgba(20, 20, 30, 0.8);
    --text-color: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

#output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to canvas if needed, but we need interaction on panel */
}

.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 280px;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.panel:hover {
    transform: translateY(-2px);
}

h1 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff0055, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #aaa;
}

select, button, input[type="color"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

select:hover, button:hover {
    background: rgba(255, 255, 255, 0.2);
}

select:focus, button:focus {
    outline: 2px solid var(--primary-color);
}

button {
    background: linear-gradient(45deg, #ff0055, #ff5500);
    font-weight: bold;
    margin-bottom: 10px;
}

#fullscreen-btn {
    background: linear-gradient(45deg, #00f2ff, #0055ff);
}

.status {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: white;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#loading.active {
    opacity: 1;
}
