/* General Styles */
body {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    background-color: #000;    /* Black background for dark theme */
    color: #00ffff;            /* Cyan text for both themes */
    transition: background 0.3s ease-in-out, color 0.3s;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    animation: backgroundGlow 8s infinite alternate ease-in-out;
}

@keyframes backgroundGlow {
    0% { background-color: #000; }      /* Black */
    100% { background-color: #1a1a2e; } /* Slightly lighter black */
}

.light-mode {
    background-color: #fff;   /* White background for light theme */
    color: #00ffff;           /* Cyan text for both themes */
}

/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #1e90ff, #007bff); /* Blue for dark theme */
    color: #00ffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 0 10px #1e90ff, 0 0 20px #007bff;
    transition: all 0.3s;
}

.light-mode #theme-toggle {
    background: linear-gradient(135deg, #ff4500, #ff6347); /* Red for light theme */
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff6347;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #007bff;
}

/* Music Player */
.music-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.9);  /* Transparent black for dark theme */
    border-radius: 15px;
    box-shadow: 0 0 30px #1e90ff, 0 0 50px #007bff;
    border: 2px solid #1e90ff;
    text-align: center;
    animation: containerPulse 4s infinite ease-in-out;
    transition: background 0.3s, box-shadow 0.3s;
}

.light-mode .music-container {
    background: rgba(255, 255, 255, 0.9);  /* Transparent white for light theme */
    box-shadow: 0 0 30px #ff4500, 0 0 50px #ff6347;
    border: 2px solid #ff4500;
}

@keyframes containerPulse {
    0%, 100% { box-shadow: 0 0 20px #1e90ff, 0 0 40px #007bff; }
    50% { box-shadow: 0 0 40px #1e90ff, 0 0 80px #007bff; }
}

/* Player Controls */
.player-controls button {
    background: linear-gradient(135deg, #007bff, #1e90ff); /* Blue for dark theme */
    border: none;
    color: #00ffff;
    padding: 12px 18px;
    margin: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 0 10px #1e90ff, 0 0 20px #007bff;
}

.light-mode .player-controls button {
    background: linear-gradient(135deg, #ff6347, #ff4500); /* Red for light theme */
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff6347;
}

.player-controls button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #007bff;
}

/* Waveform Animation */
.wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin: 20px 0;
    overflow: hidden;
}

.bar {
    width: 10px;
    height: 30px;
    margin: 0 4px;
    background: linear-gradient(180deg, #1e90ff, #007bff); /* Blue */
    animation: wave-animation 1.2s infinite ease-in-out;
    border-radius: 5px;
    box-shadow: 0 0 10px #00ffff;
}

.light-mode .bar {
    background: linear-gradient(180deg, #ff4500, #ff6347); /* Red */
    box-shadow: 0 0 10px #00ffff;
}

@keyframes wave-animation {
    0%, 100% { height: 15px; }
    50% { height: 50px; }
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background: #222;  /* Dark gray */
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1e90ff, #007bff);
    transition: width 0.3s ease;
}

.light-mode .progress-bar {
    background: linear-gradient(90deg, #ff6347, #ff4500);
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Playlist Buttons */
.song-item button {
    background: linear-gradient(135deg, #007bff, #1e90ff);
    color: #00ffff;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px #1e90ff;
    font-weight: bold;
}

.light-mode .song-item button {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    box-shadow: 0 0 10px #ff4500;
}

.song-item button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #007bff;
  }
