/* public/css/style.css */

body {
    background-color: #121212; /* Fond très sombre */
    color: #ffffff; /* Texte blanc */
    font-family: 'Montserrat', sans-serif; /* Police similaire à Spotify */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #181818; /* Fond légèrement moins sombre */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #282828; /* Ligne de séparation sombre */
    margin-bottom: 30px;
}

header h1 {
    color: #1DB954; /* Vert Spotify */
    margin: 0;
    font-size: 1.8em;
}

.logout-button {
    background-color: #333;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #555;
}

.content h2 {
    color: #1DB954;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.content p {
    color: #b3b3b3; /* Gris clair */
    margin-bottom: 25px;
}

/* Style pour le message d'erreur */
.error-message {
    background-color: #53141F; /* Fond rouge sombre */
    color: #f7d7da; /* Texte rose clair */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #842029; /* Bordure rouge */
    text-align: center;
}


/* Style pour le bouton de connexion Spotify */
.spotify-login-button {
    display: inline-flex; /* Pour aligner logo et texte */
    align-items: center;
    background-color: #1DB954; /* Vert Spotify */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px; /* Complètement arrondi */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.spotify-login-button:hover {
    background-color: #1ed760; /* Vert plus clair au survol */
}
.spotify-login-button:active {
     transform: scale(0.98); /* Effet d'appui */
}

.spotify-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Style pour le formulaire de playlist */
.playlist-form {
    margin-top: 20px;
}

.playlist-form label {
    display: block;
    margin-bottom: 8px;
    color: #b3b3b3;
    font-weight: bold;
}

.playlist-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #282828; /* Fond sombre pour le select */
    color: #ffffff;
    border: 1px solid #535353; /* Bordure grise */
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    appearance: none; /* Supprimer l'apparence par défaut */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Flèche SVG blanche */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 10px;
}
.playlist-form select:focus {
    outline: none;
    border-color: #1DB954; /* Bordure verte au focus */
    box-shadow: 0 0 5px rgba(29, 185, 84, 0.5);
}

.submit-button {
    background-color: #1DB954;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-button:hover {
    background-color: #1ed760;
}

.submit-button:active {
     transform: scale(0.98);
}