/* ESTILOS GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* CONTROLES */
.compositor-controls {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

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

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.control-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 16px;
}

.control-slider {
    width: 100%;
    margin: 10px 0;
}

/* BOTÕES */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* SEQUENCER GRID */
.sequencer-section {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.sequencer-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.step {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.step.active {
    background: #4CAF50;
    transform: scale(1.1);
    border-color: #2e7d32;
}

.step:hover {
    background: rgba(255,255,255,0.3);
}

.step.current {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

/* VISUALIZAÇÃO */
.visualization {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

#waveform {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-bottom: 15px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    width: 0%;
    transition: width 0.1s ease;
}

.status {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    font-size: 1.1em;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .sequencer-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

