* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.assistant-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #1db954, #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #b3b3b3;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.input-section {
    margin-bottom: 30px;
}

#moodInput {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

#moodInput::placeholder {
    color: #999;
}

#generateBtn, #speakBtn {
    background: linear-gradient(45deg, #1db954, #1ed760);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px;
}

#generateBtn:hover, #speakBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4);
}

.result-section {
    margin-top: 30px;
}

.track-info h3 {
    font-size: 1.5em;
    margin: 15px 0;
    color: #1db954;
}

.spotify-embed {
    margin: 20px 0;
}

.message-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

#motivationalMsg {
    font-style: italic;
    margin-bottom: 15px;
    color: #ddd;
    line-height: 1.6;
}

.loading, .error {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(29, 185, 84, 0.3);
    border-top: 4px solid #1db954;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error p {
    color: #ff4444;
    font-size: 16px;
}

.disclaimer {
    font-size: 12px;
    color: #666;
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    line-height: 1.4;
}

.hidden {
    display: none;
}

.spotify-widget {
    border-radius: 12px;
    width: 100%;
    height: 152px;
}