.filter-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.cd-cover {
    transition: transform 0.2s;
}

.cd-cover:hover {
    transform: scale(1.05);
}

.file-list {
    max-height: 250px; /* Adjusted for better visibility */
}

.file {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.file:last-child {
    margin-bottom: 0;
}

.file h4 {
    margin: 0 10px 0 0;
    flex: 1;
}

.file audio {
    flex: 2;
}

.file button.download {
    margin-left: 10px;
    font-size: 14px;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
}

.file button.download:hover {
    color: var(--audija-bg);
}

.file button.purchase {
    margin-left: 10px;
    font-size: 14px;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    color: #fff;
    background-color: var(--mdb-info);
    border: none;
}

/* Scrollbar Styling (optional) */
.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: var(--mdb-purple);
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Only apply within modals whose id starts with 'preset-modal-' */
div[id^="preset-modal-"] .modal-content {
    position: relative; /* Creates positioning context */
}

div[id^="preset-modal-"] .next,
div[id^="preset-modal-"] .previous {
    position: absolute;
    top: 50%;                /* Position 50% from the top */
    transform: translateY(-50%); /* Center vertically */
}

div[id^="preset-modal-"] .next {
    right: 5%;  /* 10% from the right border */
}

div[id^="preset-modal-"] .previous {
    left: 5%;   /* 10% from the left border */
}