/* javascript/css/controls.css`
Contém: Inputs, Botões, Mixer Popup e Header App Title.*/

/* Header Layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.app-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 159, 67, 0.4));
}

.app-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.app-title .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.6);
}

/* Controls Grid/Flex */
.controls-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.c-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 80px;
}

.c-group label {
    font-size: 0.65rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

select, input[type="range"], button.action-btn {
    height: 36px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

button.action-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#btn-play {
    background: linear-gradient(135deg, var(--accent-color), #e58e26);
    color: #111;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    flex: 0 0 auto;
    min-width: 100px;
}
#btn-play.playing { background: #ff3838; color: white; }

#btn-mixer {
    flex: 0 0 auto;
    width: 40px;
    background: #333;
    color: #ddd;
    font-size: 1.2rem;
}
#btn-mixer.active { background: #444; border-color: #666; color: #fff; }

/* Mixer Popup */
.mixer-popup {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s;
    max-height: 80vh;
    overflow-y: auto;
}
.mixer-popup.show { display: block; opacity: 1; }

.mixer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.close-btn { background: none; border: none; color: #888; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0 5px; }
.close-btn:hover { color: #fff; }

.mixer-section-title { font-size: 0.7rem; color: #888; text-transform: uppercase; font-weight: bold; margin-bottom: 8px; border-bottom: 1px solid #333; padding-bottom: 4px; }
.mixer-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mixer-label { width: 90px; font-size: 0.8rem; color: #ccc; font-weight: 600; }
.mixer-slider { flex: 1; }
.mixer-val { width: 30px; font-size: 0.75rem; color: #888; text-align: right; }

/* Toggle & Switches */
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.toggle-label { font-size: 0.8rem; color: #ccc; }

.switch { position: relative; display: inline-block; width: 36px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #444; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked+.slider { background-color: var(--accent-color); }
input:checked+.slider:before { transform: translateX(18px); }
.switch.compact { width: 30px; height: 16px; }
.switch.compact .slider:before { height: 10px; width: 10px; left: 3px; bottom: 3px; }
.switch.compact input:checked+.slider:before { transform: translateX(14px); }

input[type=range] { -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #333; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -6px; height: 16px; width: 16px; border-radius: 50%; background: #ccc; }
