/* General styles for dark mode */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2ecc71; /* Green accent */
}

h2 {
    color: #2ecc71;
    margin-top: 30px;
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Input section styles */
.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
}

input[type="text"], input[type="number"] {
    width: 80%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #ffffff;
}

input[type="text"]::placeholder, input[type="number"]::placeholder {
    color: #888;
}

.input-group {
    position: relative;
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-group input[type="text"] {
    width: 100%;
    margin-bottom: 0;
}

.clear-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-button:hover {
    background-color: #c0392b;
}

/* Mood options styles */
.mood-options {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mood-button {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: bold;
}

/* Mood button colors */
#unsure,#worried,#nervous, #afraid{
    background-color: #f1c40f; /* Yellow */
}

#happy,#focus,#productive,#active,#motivated {
    background-color: #2ecc71; /* Green */
}

#angry, #annoyed, #anxious, #grumpy {
    background-color: #e74c3c; /* Red */
}

#sick,#depressed,#tired,#sad,#lazy {
    background-color: #3498db; /* Blue */
}
#bored, #normal, #uneventfull, #average {
    background-color: #e67e22; /* Orange */
}

.mood-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

#generate-playlist {
    background-color: #2ecc71;
    color: #121212;
    padding: 12px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#generate-playlist:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
}

/* Playlist results styling */
.playlist-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.ready {
    color: #2ecc71;
    font-weight: bold;
}

#playlist-results {
    text-align: left;
    margin-top: 20px;
}

.mood-feedback {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    border-left: 4px solid #2ecc71;
    background-color: #1e1e1e;
}

.songs-list {
    list-style: none;
    padding: 0;
}

.songs-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #252525;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.songs-list li:hover {
    background-color: #2e2e2e;
    transform: translateX(5px);
}

.songs-list li strong {
    color: #2ecc71;
}

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 5px solid rgba(46, 204, 113, 0.2);
    border-radius: 50%;
    border-top: 5px solid #2ecc71;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-message {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

.spotify-button {
    display: block;
    background-color: #1DB954; /* Spotify green */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    margin: 20px auto;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
}

.spotify-button i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.spotify-button:hover {
    background-color: #1ED760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.spotify-button:active {
    transform: translateY(0);
}

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    input[type="text"], input[type="number"] {
        width: 90%;
    }
    
    #loading-message {
        font-size: 16px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
}
