/* Général */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: white;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#app {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Header */
header {
    margin-bottom: 30px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #1db954;
    text-shadow: 0px 4px 10px rgba(29, 185, 84, 0.5);
}

#login {
    padding: 12px 24px;
    background-color: #1db954;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#login:hover {
    background-color: #1aa34a;
    transform: scale(1.05);
}

#login:active {
    transform: scale(0.95);
}

/* Main Container */
main {
    background-color: #282828;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Stats Container */
#stats-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#stats, #top-tracks, #top-albums {
    flex: 1 1 30%;
    background-color: #333;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

#stats:hover, #top-tracks:hover, #top-albums:hover {
    transform: scale(1.02);
    background-color: #3d3d3d;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1db954;
}

select {
    margin: 10px 0 20px 0;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: none;
    background-color: #444;
    color: white;
    font-size: 1rem;
    outline: none;
}

/* List Containers */
#artist-list, #track-list, #album-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1db954 transparent;
}

#artist-list::-webkit-scrollbar,
#track-list::-webkit-scrollbar,
#album-list::-webkit-scrollbar {
    width: 8px;
}

#artist-list::-webkit-scrollbar-thumb,
#track-list::-webkit-scrollbar-thumb,
#album-list::-webkit-scrollbar-thumb {
    background-color: #1db954;
    border-radius: 4px;
}

/* Cards */
.artist-card, .track-card, .album-card {
    display: flex;
    align-items: center;
    background-color: #444;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
}

.artist-card:hover, .track-card:hover, .album-card:hover {
    transform: scale(1.02);
    background-color: #555;
}

.artist-image, .track-cover, .album-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid #1db954;
}

.artist-info, .track-info, .album-info {
    flex-grow: 1;
    text-align: left;
}

.artist-name, .track-name, .album-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.artist-followers, .track-artist, .album-artist {
    font-size: 0.9rem;
    color: #ccc;
}

/* Charts Panel */
#charts-panel {
    margin-top: 40px;
    padding: 30px;
    background-color: #282828;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#charts-panel h2 {
    font-size: 2rem;
    color: #1db954;
    margin-bottom: 20px;
}

#charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#charts-container section {
    flex: 1 1 45%;
    max-width: 500px;
    background-color: #333;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

#charts-container section:hover {
    transform: scale(1.02);
    background-color: #3d3d3d;
}

#charts-container section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1db954;
}

/* SVG for Charts */
svg {
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    #stats-container {
        flex-direction: column;
    }

    #stats, #top-tracks, #top-albums {
        flex: 1 1 100%;
    }

    #charts-container section {
        flex: 1 1 100%;
    }
}

#user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  #profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1db954;
    object-fit: cover;
  }
  
  #username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
  }

  
  #logout {
    padding: 8px 16px;
    margin-left: 10px;
    background-color: #d32f2f;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #logout:hover {
    background-color: #b71c1c;
  }
  
  .hidden {
    display: none !important;
}

#logout {
    margin-bottom: 50px;
}
  

  