/* Estilos gerais */
body {
    background-color: #282c34;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

h1 {
    margin-bottom: 0.5em;
}

p {
    margin-top: 0;
    color: #aaa;
}

/* Controles de BPM e botões */
.controls {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.metrics {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.1em;
}

.mobile-click-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

#mobile-click-btn {
    padding: 16px 32px;
    font-size: 1.2em;
    border-radius: 8px;
    background-color: #61dafb;
    color: #282c34;
    border: none;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#mobile-click-btn:active {
    background-color: #4fa8c5;
}

.mobile-hint {
    color: #aaa;
    font-size: 0.95em;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .controls,
    .metrics {
        flex-direction: column;
        gap: 10px;
    }

    .visualizer-container {
        flex-direction: column;
        gap: 20px;
    }

    .square {
        width: 90vw;
        max-width: 220px;
        height: 90vw;
        max-height: 220px;
        font-size: 1em;
    }

    .mobile-click-container {
        display: flex;
    }
}

#reset-metrics-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    background-color: #e67e22;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

#reset-metrics-btn:hover {
    background-color: #ca6c1e;
}

#bpm-input {
    width: 60px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: white;
    font-size: 1em;
    text-align: center;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #61dafb;
    color: #282c34;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #4fa8c5;
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Container dos quadrados */
.visualizer-container {
    display: flex;
    gap: 30px;
    /* Espaço entre os quadrados */
}

/* Estilo base dos quadrados */
.square {
    width: 150px;
    height: 150px;
    background-color: #444;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.1s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.label {
    opacity: 0.7;
}

/* Classes de estado para o Metrônomo */
.beat-1 {
    background-color: #2ecc71;
    /* Verde */
}

.beat-other {
    background-color: #3498db;
    /* Azul */
}

/* Classes de estado para o Feedback */
.feedback-correct {
    background-color: #27ae60;
    /* Verde mais forte */
}

.feedback-wrong {
    background-color: #e74c3c;
    /* Vermelho */
}