/* Gaya Umum */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #f0f6f1, #544141);
    color: #000000;
    margin: 0;
    padding: 20px;
}

/* Header */
h1, h2 {
    color: #544141;
    font-style: italic;
    text-align: left;
}

/* Daftar Lagu */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: linear-gradient(to right, #f0f6f1, #544141);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

li:hover {
    background-color: #f8bfbf;
}

/* Gambar Lagu */
li img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 15px;
    object-fit: cover;
}

/* Detail Lagu */
.song-details {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

/* Link */
a {
    color: #ffffff;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    font-weight: normal;
}

a:hover {
    text-decoration: underline;
}

/* Tombol Audio */
audio {
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
}

/* Form Upload */
form {
    background-color: rgb(217, 217, 217);
    padding: 0px;
    border-radius: 30px;
    max-width: 400px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 16px;
    border: none;
    border-radius: 20px;
    background-color: #544141;
    color: #f8bfbf;
    font-weight: bold;
}

input[type="submit"] {
    background-color: #544141;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #faacac;
}

/* Placeholder */
input[type="text"]::placeholder {
    color: #ffffff;
}

/* Tombol login/daftar di pojok kanan */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 14px;
}

.auth-buttons a {
    color: #544141;
    text-decoration: none;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    form {
        width: 100%;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
    }

    li img {
        margin-bottom: 10px;
    }
}
/* Sidebar permanen */
    #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 83vh; /* ⬅️ agar tingginya penuh layar */
    overflow-y: auto; /* ⬅️ ini yang membuat scroll muncul jika kontennya melebihi */
    background-color:rgb(217, 217, 217); /* atau warna sesuai tema */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    margin-top: 90px;
}


    #sidebar h2 {
        color: #544141;
        margin-top: 5px;
            
    }

    #sidebar ul {
        list-style-type: none;
        padding-left: 0;
    }

    #sidebar ul li {
        margin: 5px 0;
    }

    #sidebar ul li a {
        color: rgb(0, 0, 0);
        text-decoration: none;
    }

    /* Main content bergeser ke kanan */
    main {
        margin-left: 240px;
        padding: 20px;
    }
.logo-sidebar {
    width: 50px;            /* Sesuaikan ukuran */
    height: 50px;
    display: block;
    margin: 5px 0; /* Tengah + jarak dari atas dan tulisan */
}
#sidebar::-webkit-scrollbar {
    width: 3px;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: #373737;
    border-radius: 10px;
}
/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0px; /* sesuai dengan lebar sidebar */
    right: 0;
    height: 90px;
    background-color: rgb(214, 214, 214); /* warna hitam */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #9d9d9d;
    padding: 6px 12px;
    border-radius: 30px;
    max-width: 300px;
    width: 100%;
    margin-right: 1060px
}

.search-bar input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 6px;
    flex: 1;
}

.search-bar input[type="submit"] {
    background-color: #f8bfbf;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 6px 14px;
    background-color: #f8bfbf;
    color: black;
    border-radius: 999px;
    font-weight: bold;
}

/* Untuk mendorong konten ke bawah agar tidak tertutup header */
main {
    margin-bottom: 100px;
    margin-left: 240px;
    padding: 100px 20px 20px 20px; /* top ditambah supaya tidak tertutup header */
}
/* Footer Pemutar Musik */
.player-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8bfbf;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.player-footer .cover-section img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.player-footer .info-section {
    flex-grow: 1;
    margin-left: 15px;
    color: #000;
}

.player-footer .info-section h3,
.player-footer .info-section p {
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
}

.player-footer .audio-section {
    flex-basis: 400px;
}

.player-footer audio {
    width: 100%;
}