/* Mode toggle button group and Song Notes notepad view (lyrics + sargam notation line pairs). */

/* Mode toggle (header) */
.modeToggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.modeToggleBtn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.modeToggleBtn:hover {
    color: var(--text);
}

.modeToggleBtn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(22, 34, 55, 0.12);
}

/* Song Notes mode (notebook-style lyrics + sargam notation) */
.songNotesSection {
    padding: 12px 0 40px;
}

#songNotesContainer {
    display: flex;
    flex-direction: column;
}

.songLinePair {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 116px 12px 4px;
    border-bottom: 1px solid var(--border);
}

.songLineLyrics,
.songLineNotes {
    width: 100%;
    min-height: 30px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    line-height: 1.4;
}

.songLineLyrics {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.songLineNotes {
    font-family: var(--notation-font-family), sans-serif;
    font-size: var(--matra-font-size, 27px);
    font-variant-ligatures: normal;
    letter-spacing: 1px;
    color: var(--accent);
}

.songLineLyrics:empty::before,
.songLineNotes:empty::before {
    content: attr(data-placeholder);
    color: #98a2b3;
    pointer-events: none;
}

.songLineActions {
    position: absolute;
    top: 10px;
    right: 4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.songLinePair:hover .songLineActions,
.songLinePair:focus-within .songLineActions {
    opacity: 1;
}

