/* Reutilizar estilos base del modal de acordes para consistencia */
    .scale-container {
        background: rgba(45, 55, 72, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Reutilizar estilos del modal de acordes para consistencia */
    .form-select {
        background: rgba(45, 55, 72, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        color: white;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        width: 100%;
    }

    .form-select:focus {
        outline: none;
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
        background: rgba(45, 55, 72, 1);
    }

    .form-select option {
        background-color: #2d3748;
        /* Solid hex color for better browser compatibility */
        color: white;
    }

    .form-label {
        color: #e2e8f0;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
        font-size: 0.9rem;
    }

    .form-select.compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .action-button {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 0.75rem;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
        border: none;
        text-decoration: none;
    }

    .action-button.primary {
        background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    }

    .action-button.primary:hover {
        background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(49, 130, 206, 0.4);
    }

    .action-button.compact {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .results-display {
        background: rgba(26, 32, 44, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    .instrument-card {
        background: rgba(55, 65, 81, 0.8);
        border: 1px solid rgba(75, 85, 99, 0.6);
        border-radius: 0.75rem;
        padding: 1rem;
        transition: all 0.3s ease;
    }

    .instrument-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        color: white;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Estilos para el mástil horizontal de guitarra en escalas */
    .horizontal-fretboard-container {
        position: relative;
        width: 100%;
        height: 280px;
        background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
        border-radius: 1rem;
        overflow: visible;
        margin: 1rem 0;
        padding: 15px;
        border: 2px solid rgba(139, 69, 19, 0.3);
    }

    /* Números de trastes en la parte superior */
    .horizontal-fret-numbers {
        position: absolute;
        top: 0;
        left: 20px;
        right: 20px;
        height: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .horizontal-fret-number {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Container principal de las cuerdas horizontales */
    .horizontal-guitar-strings {
        position: absolute;
        top: 40px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    /* Cada fila de cuerda horizontal */
    .horizontal-string-row {
        position: relative;
        height: 40px;
        display: flex;
        align-items: center;
    }

    /* Línea de cuerda horizontal */
    .horizontal-guitar-string {
        position: absolute;
        left: 20px;
        right: 0;
        top: 50%;
        height: 2px;
        background: linear-gradient(90deg, #C0C0C0 0%, #808080 100%);
        transform: translateY(-50%);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    /* Grosor de cuerdas de arriba a abajo (agudo a grave) */
    .horizontal-string-row:nth-child(1) .horizontal-guitar-string {
        height: 1.5px;
    }

    /* E agudo */
    .horizontal-string-row:nth-child(2) .horizontal-guitar-string {
        height: 2px;
    }

    /* B */
    .horizontal-string-row:nth-child(3) .horizontal-guitar-string {
        height: 2.5px;
    }

    /* G */
    .horizontal-string-row:nth-child(4) .horizontal-guitar-string {
        height: 3px;
    }

    /* D */
    .horizontal-string-row:nth-child(5) .horizontal-guitar-string {
        height: 3.5px;
    }

    /* A */
    .horizontal-string-row:nth-child(6) .horizontal-guitar-string {
        height: 4px;
    }

    /* E grave */

    /* Container de trastes para cada cuerda */
    .horizontal-frets-for-string {
        position: absolute;
        left: 20px;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        z-index: 2;
    }

    /* Cada espacio de traste */
    .horizontal-fret-space {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Líneas verticales de trastes */
    .horizontal-fret-line {
        position: absolute;
        left: 0;
        top: -10px;
        bottom: -10px;
        width: 3px;
        background: linear-gradient(180deg, #FFD700 0%, #DAA520 100%);
        box-shadow: 1px 0 3px rgba(0, 0, 0, 0.4);
        border-radius: 1px;
    }

    /* Marcadores de notas horizontales */
    .horizontal-note-marker {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 10px;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.3);
        cursor: pointer;
        position: relative;
        z-index: 3;
    }

    /* Estilo especial para cuerdas al aire (traste 0) */
    .horizontal-note-marker.open-string {
        border: 3px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
        animation: openStringGlow 2s infinite alternate;
    }

    /* Estilo para notas presionadas (trastes 1-12) */
    .horizontal-note-marker.fretted-note {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    /* Animación sutil para las cuerdas al aire */
    @keyframes openStringGlow {
        0% {
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), inset 0 0 5px rgba(255, 255, 255, 0.2);
        }

        100% {
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.4);
        }
    }

    .horizontal-note-marker:hover {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
    }

    /* Inlays decorativos */
    .horizontal-fret-inlays {
        position: absolute;
        top: 40px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        pointer-events: none;
        z-index: 1;
    }

    .horizontal-single-inlay {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .horizontal-double-inlay {
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .inlay-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Leyenda cromática */
    .chord-degrees-legend {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(45, 55, 72, 0.8);
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .legend-title {
        color: white;
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .legend-items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.6rem;
        justify-content: center;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.3rem 0.6rem;
        background: rgba(55, 65, 81, 0.6);
        border-radius: 0.5rem;
        border: 1px solid rgba(75, 85, 99, 0.4);
    }

    .legend-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }

    .legend-text {
        color: white;
        font-size: 0.8rem;
        font-weight: 500;
    }

    /* Estilos para el piano grande con colores cromáticos */
    .large-piano-container {
        position: relative;
        width: 100%;
        height: 300px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border-radius: 1rem;
        overflow: visible;
        margin: 1rem 0;
        padding: 20px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .piano-visual {
        position: relative;
        width: 490px;
        height: 220px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .large-piano-key {
        transition: all 0.3s ease;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .large-piano-key:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    .large-piano-key.white-key:hover {
        border-color: #999 !important;
    }

    .large-piano-key.black-key:hover {
        border-color: #666 !important;
    }

    .large-piano-key.active {
        transform: translateY(0);
        animation: pianoKeyGlow 2s infinite alternate;
    }

    @keyframes pianoKeyGlow {
        0% {
            transform: scale(1);
            filter: brightness(1);
        }

        100% {
            transform: scale(1.05);
            filter: brightness(1.2);
        }
    }

    /* Responsive design para piano grande */
    @media (max-width: 768px) {
        .large-piano-container {
            height: 250px;
            padding: 15px;
        }

        .piano-visual {
            width: 350px;
            height: 180px;
            padding: 8px;
        }

        .large-piano-key.white-key {
            width: 45px !important;
            height: 160px !important;
            font-size: 14px !important;
            padding-bottom: 12px !important;
        }

        .large-piano-key.black-key {
            width: 28px !important;
            height: 105px !important;
            font-size: 11px !important;
            padding-bottom: 8px !important;
        }
    }

    @media (max-width: 480px) {
        .large-piano-container {
            height: 200px;
            padding: 10px;
        }

        .piano-visual {
            width: 280px;
            height: 140px;
            padding: 5px;
        }

        .large-piano-key.white-key {
            width: 35px !important;
            height: 120px !important;
            font-size: 12px !important;
            padding-bottom: 8px !important;
        }

        .large-piano-key.black-key {
            width: 22px !important;
            height: 80px !important;
            font-size: 9px !important;
            padding-bottom: 5px !important;
        }
    }
