
/* Spotify Playlist Generator – angepasstes Feedback-Design */

/* Erfolgsmeldung */
.success-message {
    color: #1DB954;
    background-color: #E8F5E9;
    border: 1px solid #1DB954;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Fehlermeldung */
.error-message {
    color: #FF4C4C;
    background-color: #FDECEA;
    border: 1px solid #FF4C4C;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Button Hover (optional angepasst) */
#add-to-playlist:hover {
    background: #18a348;
}

/* Spotify-Link */
.spotify-link {
    background: #FFD700;
    color: #000 !important;
}
.spotify-link:hover {
    background: #e6c200;
}

/* Benutzerdefinierte Button-Farben */
button,
#add-to-playlist,
#load-playlist-songs {
    background-color: #d0ac70 !important;
    color: #000 !important;
    border: none;
}

button:hover,
#add-to-playlist:hover,
#load-playlist-songs:hover {
    background-color: #c19a60 !important;
}

/* Eingabefelder */
input[type="text"],
input[type="search"],
textarea,
#song-search {
    background-color: #000 !important;
    border: 1px solid #d0ac70 !important;
    color: #d0ac70 !important;
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
#song-search::placeholder {
    color: #d0ac70 !important;
    opacity: 0.7;
}

/* Suchcontainer auf volle Seitenbreite */
.search-container {
    width: 100vw;
	height: 15px; /* zwischen 15 und 20px */
    max-width: 100%;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

/* Eingabefeld */
#song-search {
    width: 100%;
    height: 25px; /* zwischen 15 und 20px */
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 50%;
    background-color: #000;
    color: #d0ac70;
    border: 1px solid #d0ac70;
}

/* Senden-Button */
#add-to-playlist {
    font-size: 10px; /* 4px größer als Standard */
    border-radius: 50%;
    padding: 5px 24px;
}
/* Button */
#spg-search-button,
#spg-reload-playlist {
    font-size: 14px; /* 4px größer als Standard */
    border-radius: 5px;
    padding: 5px 24px;
}	

/*Button Song hinzufügen (js)*/
#spg-add-suggestion{
    font-size: 14px; /* 4px größer als Standard */
    border-radius: 5px;
    padding: 3px 3px;
}	
	
/* Vorschlagsliste ganz nach vorne bringen */
.search-results {
    position: absolute;
    z-index: 9999; /* Sehr weit vorn */
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    padding: 4px 0;
    border-radius: 50%;
    width: 40%;
    max-height: 300px;
    /*overflow-y: auto;*/
}


/* Einzeilige Items mit geringerer Höhe */
.search-result-item {
    background-color: rgb(40, 40, 40);
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 10px;
    line-height: 1.2;
    font-size: 14px;
    color: #d0ac70;
}

/* Songinfo (Interpret – Titel) nebeneinander */
.song-info {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover-Effekt leicht dunkler */
.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Symbol (Add) */
.add-song {
    margin-left: 10px;
    flex-shrink: 0;
    background: #d0ac70;
    color: #000;
    width: 20px;
    height: 10px;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container der ausgewählten Songs auf volle Breite */
.existing-songs-container {
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Songliste */
.existing-songs {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}
/* Playlist-Item einzeilig */
.existing-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #111;
    color: #d0ac70;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    gap: 12px;
}

.song-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-song {
    flex-shrink: 0;
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
