:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    height: 100vh;
    overflow: auto;
}

/* .song-list{
    margin-left: 10pt;
} */

.song-list-container {
    /* height: 100vh; */
    /* overflow-y: auto; */
    background-color: white;
    border-right: 1px solid #dee2e6;
    /* padding: .5rem;  */
}

.song-detail-container {
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
}

.song-list-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-list-item:hover {
    background-color: #f0f5ff;
}

.song-list-item.active {
    background-color: #bfd8fd;
}

.song-title {
    font-weight: 600;
    color: var(--dark);
}

.song-artist {
    color: #6c757d;
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 3px 10px;
    margin-right: 5px;
    font-size: 0.8rem;
}

.instrument-badge {
    background-color: #dee2e6;
    color: #495057;
}

.visibility-badge {
    font-size: 0.8rem;
}

.chord {
    font-weight: bold;
    color: var(--primary);
    position: relative;
    top: -0.5em;
    font-size: 0.85em;
}

.lyrics-line {
    line-height: 2.5em;
    white-space: pre-wrap;
    font-family: monospace;
    margin-bottom: 0.5em;
}

.capo-circle,
.capo-circle-alt {
    display: inline-flex;
    justify-content: center;
    align-items: center; /* <-- vertical centering */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 6px;
    vertical-align: middle;
    font-family: system-ui, sans-serif; 
    line-height: 1;
}

.capo-circle {
    background-color: var(--primary);
    color: white;
}

.capo-circle-muted {
    background-color: #e0e0e0; 
    color: #333; 
    font-weight: normal;
}

.capo-circle-alt {
    background-color: #9b7ecd; 
    color: #fff; 
}




.search-box {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
}

.song-header {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.song-meta {
    margin-bottom: 20px;
}

.song-content {
    background-color: white;
    padding: 20px;
    /* border-radius: 10px; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Per-user song display font (user_settings.php "Song display font"). Each
   .song-font-<key> stack must match its SONG_FONT_STACKS entry in
   js/song_render.js exactly, since that inline style takes over once JS
   renders (see renderProportionalInto) - these rules are just the pre-JS/
   no-JS fallback so the font doesn't visibly flip right after load. */
.song-font-monospace {
    font-family: monospace;
}

.song-font-calibri {
    font-family: Calibri, 'Segoe UI', Candara, Verdana, sans-serif;
}

.song-font-corbel {
    font-family: Corbel, Candara, 'Segoe UI', Calibri, sans-serif;
}

.song-font-candara {
    font-family: Candara, Corbel, 'Segoe UI', Calibri, sans-serif;
}

.song-font-arial {
    font-family: Arial, Helvetica, sans-serif;
}

.song-font-verdana {
    font-family: Verdana, Geneva, sans-serif;
}

.song-font-georgia {
    font-family: Georgia, 'Times New Roman', serif;
}

.song-font-times {
    font-family: 'Times New Roman', Times, serif;
}

/* Built by renderSongProportional() in js/chord_font_layout.js - each
   chord/lyric line pair from the original space-aligned text becomes one of
   these two row types instead of relying on monospace + literal whitespace
   for alignment. */
.chord-row {
    position: relative;
    height: 1.2em;
}

.chord-row .chord-token {
    position: absolute;
    top: 0;
    line-height: 1.2; /* matches .chord-row's own height, so it can't overflow into the lyric row below */
    font-weight: bold;
    white-space: nowrap;
}

/* No wrapping, ever - a wrapped continuation would no longer line up with
   the chord-row above it, which was positioned assuming one unbroken line.
   Long lines are instead handled by shrinking font-size to fit
   (adjustFontSizeToFitWidth() in song_render.js, called after this renders). */
.lyric-row {
    white-space: pre;
}

/* ® chorus-marker glyph - see chord_font_layout.js's renderChordRow/
   renderLyricRow (isMarkerToken). No font-size here deliberately: how much
   bigger ® needs to render varies per font (Calibri's native ® is tiny and
   needs a big boost; Verdana's is already large and needs none), so that's
   set as an inline style per-instance instead (markerScaleStyle,
   SONG_FONT_MARKER_SCALE in song_render.js) - this rule only carries the
   parts that don't vary by font. vertical-align below doesn't actually do
   the centering (that glyph is positioned manually via
   top:50%/translateY(-50%), same technique as a real chord token - see
   renderChordRow/renderLyricRow) but is left in place as a harmless default
   for wherever this class is used without that wrapper. */
.chorus-marker-symbol,
.chord-token-marker {
    line-height: 1;
    vertical-align: middle;
}

#content {
    font-family: monospace;
    width: 100%;
    min-height: 200px;
    height: 500px;
    resize: none; /* Disable manual resize handle */
}


.tag-success {
    background-color: #198754; /* Bootstrap btn-success */
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 0.5em;
}

.tag-warning {
    background-color: #ffc107;
    color: black;
}

.tag-danger {
    background-color: #dc3545;
    color: white;
}

.tag-secondary {
    background-color: #6c757d;
    color: white;
}
