/* 
 * Copyright 2011-2025, The Trustees of Indiana University and Northwestern
 *   University.  Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 *   under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 *   CONDITIONS OF ANY KIND, either express or implied. See the License for the
 *   specific language governing permissions and limitations under the License.
 * ---  END LICENSE_HEADER BLOCK  ---
*/

.playlist-details-headline-wrapper {
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;

  .headline {
    margin: 0;
  }
}

.playlist-title {
  display: flex;
  align-items: center;

  .page-title {
    display: inline-block;
    margin: 0;
  }
  // Assuming this span is an icon
  span {
    font-size: 2rem;
    padding: 0 1rem 0 0;
  }
}

.playlist-title-wrapper {
  width: 100%;
  margin: 20px 0 10px;
}

.playlist-action-button-row.col-sm-4 {
  padding-left: 0.75rem;
  padding-right: 0px;
}

.playlist-autoplay-wrapper {
  .playlist-autoplay-label {
    font-weight: bold;
    margin-right: 1rem;
  }
}

.playlist_actions {
  textarea {
    resize: vertical;
  }
}

.playlist_item_edit {
  border: 2pt solid $gray;
  border-top: 1pt solid $gray;
  border-left: 1pt solid $gray;
  border-right: 1pt solid $gray;
  border-radius: 5pt;
  background-color: $lightgray;
  padding: 10pt;
  margin-top: 2pt;
  margin-bottom: 10pt;

  label {
    text-align: right;
    margin-top: 2pt;
  }

  input,
  textarea {
    margin-bottom: 4pt;
  }

  textarea {
    resize: vertical;
  }
}

/* Playlist edit page */
.manage-playlist-item {
  margin-top: 20px;
  padding-right: 0;

  .dropdown {
    float: right;
    padding-right: 5px;
  }

  #delete_selected_playlist_items {
    margin-right: 5px;
  }

  label {
    padding-left: 20px;
    float: right;
  }
}

.playlist-description {
  margin-top: 0.6em;
  margin-bottom: 0.4em;
}

.playlist_item_denied {
  color: gray;
}

.show_playlist_player_denied_title {
  display: block;
}

.side-playlist {
  padding-left: 2rem;

  li {
    margin-top: 0.2em;
    margin-left: 21px;
    float: left;
    width: 100%;

    &.now_playing:before {
      @include current-stream-indicator(-16px, -24px);
    }

    i {
      margin-right: 3px;
    }
  }

  a {
    cursor: pointer;
  }
}

.playlist_item_edit {
  label.col-form-label {
    font-weight: bold;
  }
}

#playlist_edit_div .form-check {
  padding-left: 0;
}

/* Playlist show page */
.queue {
  opacity: 0.8;

  &:hover {
    opacity: 1;
  }
}

/* Playlist index page */
@media (min-width: 768px) {
  #Playlists_info {
    float: left;
  }
}

#Playlists_length {
  display: inline-block;
}

#Playlists_paginate {
  float: right;
  z-index: 10;
}

/* Playlist copy modal */
#playlist_title:invalid {
  border-color: $danger;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px $danger;
}

/* Add focus ring to edit details icon for playlist and playlist items */
.edit-details-icon-btn:focus-visible {
  outline: none;
  box-shadow: rgba(74, 110, 114, 0.5) 0px 0px 0px 3.5px; // Use Bootstrap's focus ring color
}
