/* PROGRESS MAP - WIDE OCTAVES STYLE */

.progress-map-container-styled {
    display: flex;
    flex-direction: column;
    /* Stack octaves vertically */
    gap: 16px;
    width: 100%;
}

.octave-row {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    /* Force full width */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.octave-label {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    /* Much lighter for readability */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 8px;
    border-left: 3px solid #fbbf24;
    /* Accent mark (Amber to match UI) */
    line-height: 1;
}

.octave-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 12 notes wide */
    gap: 6px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
}

.progress-note {
    width: 100%;
    /* Responsive width based on grid */
    aspect-ratio: 1;
    /* Keep circular */
    border-radius: 50%;
    background: #334155;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: none;
    display: block;
    min-width: 8px;
}

/* Hide text */
.progress-note {
    text-indent: -9999px;
    overflow: hidden;
}

/* Remove leftovers styling */
.white-key-style,
.black-key-style {
    background: #334155;
    color: transparent;
    height: auto;
    margin: 0;
    z-index: 1;
    border: none;
}

/* When colored (played) */
.progress-note[style] {
    box-shadow: none;
    border: none !important;
}

.mastered-glow {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6) !important;
    animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
    from {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
    }

    to {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    }
}

.progress-note:hover {
    transform: scale(1.4);
    z-index: 100 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.progress-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* MODAL STYLES (Restored) */
.note-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.note-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.note-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #f1f5f9;
}

.note-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.note-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    color: #94a3b8;
}

.stat-value {
    color: white;
    font-weight: bold;
}