/* Add your CSS styles here */
body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  padding: 20px;
  color: #333;
}

h1 {
    text-align: center;
    color: #4a4a4a;
}

p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.compatibility-selector {
    text-align: center;
    margin-bottom: 30px;
}

.compatibility-selector label {
    margin-right: 10px;
}

.compatibility-selector select {
    padding: 5px;
    border-radius: 4px;
}

#app-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Styles specific to compatibility - add more as needed */
/* .compatibility-iphone { border: 2px solid blue; } */
/* .compatibility-android { border: 2px solid green; } */
/* .compatibility-computer { border: 2px solid grey; } */


#upload-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#upload-section input[type="file"] {
    display: block;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#loading-indicator {
    text-align: center;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

#player-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls button:hover {
    background-color: #0056b3;
}

.controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Basic Toggle Switch for Shuffle */
.shuffle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
}

.shuffle-label input[type="checkbox"] {
    opacity: 0; /* Hide the default checkbox */
    width: 0;
    height: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Width of the switch */
    height: 20px; /* Height of the switch */
    background-color: #ccc;
    border-radius: 20px; /* Make it rounded */
    transition: background-color 0.3s;
    margin-left: 8px;
}

/* The sliding circle */
.toggle-switch::before {
    content: "";
    position: absolute;
    width: 16px; /* Size of the circle */
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px; /* Position inside the switch */
    left: 2px; /* Start position */
    transition: transform 0.3s;
}

/* When checkbox is checked, change background and move circle */
.shuffle-label input[type="checkbox"]:checked + .toggle-switch {
    background-color: #28a745; /* Green background when on */
}

.shuffle-label input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(20px); /* Move circle to the right */
}


#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

#playlist li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#playlist li:last-child {
    border-bottom: none;
}

#playlist li:hover {
    background-color: #f0f0f0;
}

#playlist li.current {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.hidden {
    display: none !important;
}