body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    margin: 0;
    padding-top: 5vh; /* Add some padding at the top */
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

#download-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#url-input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.8rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#progress, #results, #preview-container {
    margin-top: 1.5rem;
    text-align: left;
}

.result-item {
    background-color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item a {
    text-decoration: none;
    color: #2980b9;
    font-weight: 500;
}

/* Preview Styles */
.preview-item {
    display: flex;
    align-items: center;
    background-color: #f8f9f9;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    padding: 1rem;
}

.preview-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 1rem;
    object-fit: cover;
}

.preview-details {
    flex-grow: 1;
}

.preview-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

.preview-artist {
    color: #7f8c8d;
}

.preview-track-list {
    list-style-type: none;
    padding: 0;
    margin-top: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.preview-track-list li {
    padding: 0.25rem 0;
}

#confirm-download-btn {
    margin-top: 1rem;
    width: 100%;
    background-color: #27ae60;
}

#confirm-download-btn:hover {
    background-color: #229954;
}