/* ========================================== */
/*      PLAYLIST DOWNLOAD MODAL STYLES        */
/* ========================================== */

#playlist-download-modal .modal-card {
    min-width: 500px;
}

.download-modal-intro {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.download-list-container {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

.download-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-s);
    transition: background-color var(--transition-fast);
}

.download-list-item:hover {
    background-color: var(--color-surface-hover);
}

.download-list-item .sound-name {
    flex-grow: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-list-item .remove-sound-btn {
    background: transparent !important;
    border: none !important;
    color: var(--color-text-tertiary) !important;
    cursor: pointer;
    padding: 0.5rem;
}

.download-list-item .remove-sound-btn:hover {
    color: var(--color-danger) !important;
}

.download-progress-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.download-progress-container .progress {
    background-color: var(--color-surface-2) !important;
}

.download-progress-container .progress::-webkit-progress-value {
    background-color: var(--color-accent) !important;
}

.download-list-item.is-skeleton {
    height: 40px;
    background-color: var(--color-surface-2);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-s);
}

#playlist-download-modal .modal-card-foot .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-list-item.is-importing {
    background-color: var(--color-surface-hover);
    border-left: 2px solid var(--color-accent);
    padding-left: calc(0.5rem - 2px);
}