/* ============================================================================
   MELODY NOTATION - Scoped Styles
   ============================================================================ */

.melody-notation {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.melody-notation .card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.melody-notation .card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.melody-notation header h2 {
    margin-bottom: 5px;
}

.melody-notation #recordingStatus {
    font-size: 0.95em;
}

.melody-notation #recordingStatus.recording {
    color: #dc3545;
    animation: pulse 1s infinite;
}

.melody-notation #recordingStatus.ready {
    color: #28a745;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.melody-notation input[type="number"],
.melody-notation select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.melody-notation input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.melody-notation #notationContainer {
    overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .melody-notation .card {
        padding: 15px;
    }

    .melody-notation #recordingStatus {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 10px;
    }
}

button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

button:disabled:hover,
.button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}