/* Custom styles for Spotify Org Player */

.now-playing-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--spotify-green, #1db954);
  color: var(--text-dark, #121212);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.now-playing-widget.not-playing {
  background: var(--bg-card-header, #333);
  color: var(--text-primary, #fff);
}

.now-playing-widget .album-art {
  width: 50px;
  height: 50px;
  border-radius: 4px;
}

.now-playing-widget .track-info {
  flex: 1;
}

.now-playing-widget .track-name {
  font-weight: bold;
  margin-bottom: 2px;
}

.now-playing-widget .track-artist {
  opacity: 0.8;
  font-size: 0.9em;
}

.now-playing-widget .progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.now-playing-widget .progress-bar .progress {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 1s linear;
}

.search-results .track-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-color, #333);
  gap: 15px;
}

.search-results .track-item:hover {
  background: var(--bg-hover, #2d2d2d);
}

.search-results .track-item .album-art {
  width: 50px;
  height: 50px;
  border-radius: 4px;
}

.search-results .track-item .track-info {
  flex: 1;
}

.search-results .track-item .track-name {
  font-weight: 500;
  color: var(--text-primary, #fff);
}

.search-results .track-item .track-artist {
  color: var(--text-muted, #727272);
  font-size: 0.9em;
}

.playlist-track {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border-color, #333);
  gap: 10px;
}

.playlist-track:hover {
  background: var(--bg-hover, #2d2d2d);
}

.playlist-track .track-number {
  width: 30px;
  text-align: center;
  color: var(--text-muted, #727272);
}

.playlist-track .track-info {
  flex: 1;
}

.playlist-track .start-time {
  width: 100px;
}

.playlist-track .actions {
  display: flex;
  gap: 5px;
}

.spotify-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
  background: var(--bg-card-header, #252525);
}

.spotify-status.connected {
  background: rgba(29, 185, 84, 0.15);
  color: var(--spotify-green, #1db954);
  border: 1px solid var(--spotify-green, #1db954);
}

.spotify-status.disconnected {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger, #e74c3c);
  border: 1px solid var(--color-danger, #e74c3c);
}

/* Add padding at bottom for now-playing widget */
body.has-player {
  padding-bottom: 80px;
}

.btn-spotify {
  background-color: var(--spotify-green, #1db954);
  border-color: var(--spotify-green, #1db954);
  color: var(--text-dark, #121212);
  font-weight: 600;
}

.btn-spotify:hover {
  background-color: var(--spotify-green-hover, #1ed760);
  border-color: var(--spotify-green-hover, #1ed760);
  color: var(--text-dark, #121212);
}

/* Album art placeholder */
.album-art-placeholder {
  width: 50px;
  height: 50px;
  background: var(--bg-card-header, #252525);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #727272);
}

/* Time input styling */
.time-input {
  font-family: 'Courier New', monospace;
  text-align: center;
  max-width: 80px;
}
