/* Reset básico */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #1a1a1a;
    overflow: hidden;
}

.viewer-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: #2b2b2b;
}

/* PAINEL AJUSTADO: Agora os grupos ficam lado a lado */
.controls-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column; /* Instrução em cima */
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 400px;
}

.instruction {
    color: #aaa;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Container dos grupos de botões LADO A LADO */
.main-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px; /* Espaço entre o grupo de cores e o de escala */
}

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Label para identificar os grupos */
.group-label {
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 5px;
}

button {
    background: #444;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

button:hover {
    background: #666;
    transform: translateY(-2px);
}

/* Cores específicas dos botões de madeira */
.btn-cafe { border-bottom: 3px solid #4a3222; }
.btn-cinza { border-bottom: 3px solid #8B8680; }