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

body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* --- SIDEBAR --- */
#sidebar {
    width: 320px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 100;
}

#sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

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

#sidebar input[type="text"],
#sidebar select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background-color: #34495e;
    color: white;
    font-size: 0.95rem;
}

#sidebar input::placeholder {
    color: #bdc3c7;
}

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

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

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

#songList li.active {
    background-color: #e74c3c;
    color: white;
}

.song-title-list {
    font-weight: bold;
    font-size: 1.05rem;
}

.song-artist-list {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-top: 3px;
}

#songList li.active .song-artist-list {
    color: #fadbd8;
}

/* --- MAIN CONTENT --- */
#main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    background-color: #ffffff;
}

.song-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
}

.song-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* --- DIRECTIVES & COMMENTS --- */
.directive-comment {
    background-color: #f1f2f6;
    color: #2f3640;
    padding: 8px 12px;
    margin: 15px 0 10px 0;
    border-left: 4px solid #3498db;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 0 4px 4px 0;
}

/* --- LYRICS & CHORDS --- */
.lyric-line {
    line-height: 2.5;
    white-space: pre-wrap;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.chord-pair {
    display: inline-flex;
    flex-direction: column;
    vertical-align: bottom;
    margin-right: 1px;
}

.chord {
    font-size: 1.15rem;
    font-weight: bold;
    color: #c0392b;
    line-height: 1.1;
    text-align: left;
}

.lyric {
    font-size: 1rem;
    line-height: 1.2;
    color: #2c3e50;
}

/* --- CHORD DIAGRAMS SECTION --- */
#chordDiagramsSection {
    margin-top: 40px;
    border-top: 2px solid #ecf0f1;
    padding-top: 20px;
}

#chordDiagramsSection h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.diagrams-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.chord-diagram {
    background: #fdfdfd;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chord-diagram-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

/* --- MOBIL NÉZET ÉS HAMBURGER MENÜ --- */
.menu-toggle {
    display: none;
    background-color: #2c3e50;
    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) {
    body {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    #sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    #sidebar.open {
        left: 0;
    }

    #main {
        padding: 20px;
        height: calc(100vh - 54px);
    }
}