:root {
    --bg-color: #faf8f5;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --text-color: #333;
    --chord-color: #e74c3c;
    --border-color: #ddd;
    --accent-color: #3498db;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 320px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 10;
}

#sidebar-header {
    padding: 20px;
    background-color: #1a252f;
}

#sidebar-header h2 { font-size: 1.2rem; margin-bottom: 15px; }

/* Kereső és legördülők formázása */
#searchInput, #titleSelect, #artistSelect {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    background-color: #34495e;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

#searchInput::placeholder { color: #aaa; }
select option { background-color: #2c3e50; }

#songList {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
}

#songList li {
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    cursor: pointer;
    transition: background-color 0.2s;
}

#songList li:hover { background-color: #34495e; }

#songList li.active {
    background-color: var(--accent-color);
    border-left: 4px solid #fff;
}

.song-title-list { font-weight: bold; margin-bottom: 3px; }
.song-artist-list { font-size: 0.85em; color: #bdc3c7; }

#main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

#songContainer { max-width: 900px; margin: 0 auto; width: 100%; }

.song-header { margin-bottom: 40px; text-align: center; border-bottom: 2px solid var(--border-color); padding-bottom: 20px; }
.song-title { font-size: 2.5rem; color: #2c3e50; margin-bottom: 10px; }
.song-artist { font-size: 1.2rem; color: #7f8c8d; font-weight: bold; }

.lyric-line {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    line-height: 1.2;
}

.lyric-line:empty { height: 20px; }

.chord-pair {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-right: 2px;
}

.chord {
    font-weight: 700;
    color: var(--chord-color);
    font-size: 0.95em;
    min-height: 1.2em;
    margin-bottom: 2px;
    font-family: monospace;
}

.lyric {
    font-size: 1.2rem;
    white-space: pre;
}

.directive-comment {
    font-style: italic;
    color: #7f8c8d;
    background-color: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

#chordDiagramsSection {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px dashed var(--border-color);
}

#chordDiagramsSection h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.diagrams-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.chord-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.chord-diagram-name { font-weight: bold; margin-bottom: 5px; font-size: 1.2rem; }

svg { background: #fff; border-radius: 4px; padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
/* --- MOBIL NÉZET ÉS HAMBURGER MENÜ --- */

/* A gomb alapból rejtve van (asztali nézet) */
.menu-toggle {
    display: none;
    background-color: var(--sidebar-bg);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mobilon megjelenik a gomb */
    }

    #sidebar {
        position: fixed;
        left: -320px; /* Mobilon elrejtjük balra */
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    /* Ezt az osztályt fogja a JS rátenni, ha nyitva van */
    #sidebar.open {
        left: 0;
    }

    #main {
        padding: 0; /* A fő paddingot levesszük, hogy a gomb kitöltse a tetejét */
    }

    #songContainer {
        padding: 20px; /* A dalnak adunk külön paddingot */
    }
}