body {
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #eee;
    font-family: sans-serif;
    overflow: hidden;
}

#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

#glCanvas {
    width: 70vw;
    height: 70vw;
    max-height: 95vh;
    max-width: 95vh;
    flex-shrink: 0;
    background-color: #000;
    cursor: crosshair;
}

#controls {
    width: 280px;
    min-width: 200px;
    background-color: #1a1a1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 2px solid #333;
    overflow-y: auto;
    flex-shrink: 1;
}

.section-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 6px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    font-weight: bold;
    color: #aaa;
}

input[type="range"], select {
    width: 100%;
    cursor: pointer;
}

/* Hide default file input, show styled label instead */
input[type="file"] {
    display: none;
}

.file-label {
    display: block;
    padding: 10px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.file-label:hover {
    background-color: #3a3a3a;
}

button {
    padding: 10px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #3a3a3a;
}

/* Active state for mic button */
button.active {
    background-color: #5a1a1a;
    border-color: #e05050;
    color: #ff8080;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { border-color: #e05050; }
    50%       { border-color: #ff2020; }
}

/* VU / spectrum canvas */
#vuCanvas {
    width: 100%;
    height: 48px;
    border-radius: 3px;
    background: #111;
    border: 1px solid #2a2a2a;
}

.audio-status {
    font-size: 12px;
    color: #e0a040;
    text-align: center;
    margin: 0;
    min-height: 16px;
}

.hint {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin: 0;
}
