/* Simple modern styling for the app */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2em auto;
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding-bottom: 6em; /* space for fixed footer */
}

#wrapper {
    display: flex;
    gap: 2em;
}

#uploadColumn, #filesColumn {
    flex: 1;
}

#dropArea {
    width: 100%;
    min-height: 180px;
    border: 2px dashed #888;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    cursor: pointer;
}

#dropArea.highlight {
    background-color: #eef;
}

#fileList,
#existingList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fileList li {
    font-size: 0.9em;
}

#existingList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25em;
}

li.audio::before {
    content: "\1F3B5"; /* musical note */
    margin-right: 0.4em;
}

.delete {
    color: red;
    text-decoration: none;
    margin-left: 0.5em;
}
.edit {
    color: #007bff;
    text-decoration: none;
    margin-left: 0.5em;
}

form input,
form button {
    padding: 0.5em;
    font-size: 1em;
    margin-top: 0.5em;
}

form button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

#editWrapper {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

#coverPreview img {
    max-width: 200px;
    display: block;
}

/* 🎵 Gestylede vaste audioplayer onderaan */
footer#player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.7);
    z-index: 999;
    gap: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
}

#playerLeft {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

#playerCover {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: none;
}

#trackMeta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 120px;
    max-width: 220px;
    white-space: normal;
}

#trackTitle {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
    word-break: break-word;
}

#trackArtist {
    font-size: 0.95rem;
    color: #b3b3b3;
    word-break: break-word;
}

#playerControls {
    flex: 2;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-controls {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.control-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 300px;
    color: #b3b3b3;
    font-size: 0.8rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.volume-bar {
    width: 100px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 100%;
}

#audioPlayer {
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    outline: none;
    appearance: none;
    display: none;
}

#playerInfo {
    flex: 1;
    font-size: 0.9rem;
    color: #b3b3b3;
    padding-left: 1rem;
    border-left: 1px solid #333;
}
