/* soundlab.css */

.soundlab-container {
    padding: 15px;
    padding-bottom: 140px; /* Space for floating actions + nav */
    overflow-y: auto;
    height: 100%;
}

/* MODE SWITCHER */
.mode-selector {
    display: flex;
    background: var(--card-bg-color);
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(100,100,100,0.2);
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* EDITORS */
.editor-section { display: none; animation: fadeIn 0.3s; }
.editor-section.active { display: block; }
@keyframes fadeIn { from{opacity:0; transform:translateY(5px);} to{opacity:1; transform:translateY(0);} }

.card-box {
    background: var(--card-bg-color);
    border: 1px solid rgba(100,100,100,0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

/* INPUTS */
label {
    display: block;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: bold;
    display: flex; justify-content: space-between;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid #444;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1em;
    margin-bottom: 20px;
    outline: none;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
    accent-color: var(--secondary-color);
}

.val-badge {
    color: var(--secondary-color);
    font-family: monospace;
}

.hint-text {
    font-size: 0.8em;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -10px;
}

/* KIT GRID */
.kit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kit-pad-row {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}
.kit-pad-label {
    font-size: 0.75em; color: var(--text-muted); margin-bottom: 5px; display: block;
}
.kit-pad-select {
    width: 100%; padding: 5px; font-size: 0.85em; margin: 0;
}

/* FLOATING ACTIONS */
.floating-actions {
    position: fixed;
    bottom: 70px; /* Above Bottom Nav */
    left: 0; right: 0;
    max-width: 600px; margin: 0 auto;
    padding: 15px;
    background: linear-gradient(to top, var(--bg-color) 80%, transparent);
    z-index: 90;
    display: flex; flex-direction: column; gap: 10px;
}

.btn-row { display: flex; gap: 10px; }

.test-btn {
    background: #333; color: #fff; flex: 1; border: 1px solid #555;
}
.save-btn {
    background: var(--secondary-color); color: #000; flex: 2;
}

.status-toast {
    text-align: center; font-size: 0.8em; color: var(--primary-color);
    height: 20px; opacity: 0; transition: opacity 0.3s;
}
