body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.player-box, .management-box {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 25px;
    flex: 1;
    min-width: 300px;
}

.player-box {
    flex-basis: 400px;
}

.management-box {
    flex-basis: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    display: none;
}

h1 {
    text-align: center;
    color: #1c1e21;
    width: 100%;
    margin-bottom: 10px;
}

h2 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
}

h3 {
    margin-top: 0;
    color: #333;
}

.form-section {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

select, input[type="text"], input[type="file"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

#audio-player {
    width: 100%;
    margin-top: 15px;
}

#now-playing {
    margin-top: 10px;
    font-style: italic;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#now-playing span {
    font-weight: bold;
    color: #000;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.controls button {
    background-color: #6c757d;
}
.controls button:hover {
    background-color: #5a6268;
}

.status-message {
    margin-top: 10px;
    font-size: 0.9em;
}
.status-message.success {
    color: green;
}
.status-message.error {
    color: red;
}

/* Toggle Switch CSS */
.toggle-label {
    font-weight: normal;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.toggle-switch .checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}
.label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.label .inner {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.checkbox:checked + .label {
    background-color: #007bff;
}
.checkbox:checked + .label .inner {
    transform: translateX(22px);
}

/* ... at the end of style.css ... */

.song-list-container {
    margin-top: 20px;
}

.song-list-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

#song-list {
    max-height: 280px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fdfdfd;
}

.song-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background-color: #f5f5f5;
}

.song-item input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
    /* Make the radio button easier to click */
    transform: scale(1.1); 
}

.song-item label {
    display: inline; /* Keep it next to the radio */
    font-weight: normal; /* Override the default bold label style */
    cursor: pointer;
    vertical-align: middle;
    /* Prevent text selection when clicking */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.empty-list-message {
    display: block;
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}