/* Playlist List Styles */
.playlist-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.playlist-list {
    list-style-type: none;
    padding: 0;
}

.playlist-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.playlist-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.playlist-title {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.playlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.playlist-view-btn,
.playlist-rename-btn,
.playlist-delete-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.playlist-view-btn {
    background-color: #4CAF50;
    color: white;
}

.playlist-rename-btn {
    background-color: #2196F3;
    color: white;
}

.playlist-delete-btn {
    background-color: #f44336;
    color: white;
}

.playlist-song-list {
    list-style-type: none;
    padding-left: 0;
}

.playlist-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.playlist-song-item:last-child {
    border-bottom: none;
}

.playlist-song-item a {
    color: #333;
    text-decoration: none;
}

.playlist-song-remove-btn {
    background-color: #635f5f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.playlist-create-form {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.playlist-create-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.playlist-create-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.playlist-create-btn:hover {
    background-color: #45a049;
}

/* Individual Playlist View Styles */
.playlist-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.playlist-detail-title {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.playlist-detail-song-list {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.playlist-detail-song-item {
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playlist-detail-song-remove-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
}

/* Playlist Modal Styles */
#playlistModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#playlistModal .playlist-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

#playlistModal .playlist-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#playlistModal .playlist-modal-close:hover,
#playlistModal .playlist-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#playlistModal .playlist-modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#playlistModal .playlist-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#playlistModal .playlist-modal-btn-confirm {
    background-color: #4CAF50;
    color: white;
}

#playlistModal .playlist-modal-btn-cancel {
    background-color: #f44336;
    color: white;
}

#playlistModal .playlist-modal-btn-ok {
    background-color: #2196F3;
    color: white;
}

body {
    background-color: #f5f5f5;
    font-family: 'Arial', sans-serif;
}

h1 {
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
}

#playlist-select {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#add-to-playlist-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#add-to-playlist-btn:hover {
    background-color: #45a049;
}

/* Specific styles for song_detail page */
.song-detail-playlist-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.song-detail-playlist-actions #playlist-select {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.song-detail-playlist-actions #add-to-playlist-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.song-detail-playlist-actions #add-to-playlist-btn:hover {
    background-color: #45a049;
}

.pdf-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 141.4%; /* Aspect ratio for A4 paper (1 / 1.414) */
    position: relative;
    max-width: 800px; /* Adjust this value as needed */
    margin-left: auto;
    margin-right: auto;
}

.pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}