* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #1db954;
    margin-bottom: 24px;
    font-size: 2rem;
}

.status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 24px;
}

#loginStatus, #regionInfo {
    font-size: 14px;
    color: #b0b0b0;
}

.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

input[type="text"],
input[type="number"] {
    flex: 1;
    padding: 12px 16px;
    background: #1e1e1e;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #1db954;
}

button {
    padding: 12px 24px;
    background: #1db954;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

button:hover:not(:disabled) {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

#searchResults {
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background 0.3s;
}

.search-item:hover {
    background: #252525;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.search-item-artist {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 4px;
}

.search-item-details {
    font-size: 12px;
    color: #808080;
}

.download-section {
    background: #1e1e1e;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.download-section h3 {
    color: #1db954;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.download-section input {
    width: 100%;
    margin-bottom: 12px;
}

.info-section {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

#status {
    font-weight: 600;
    color: #1db954;
    margin-bottom: 12px;
    font-size: 16px;
}

/* PROGRESS BAR STYLING */
#progressBarContainer {
    margin: 16px 0;
}

#progressBar {
    width: 100%;
    height: 32px;
    background: #252525;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #1db954 0%, #1ed760 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.5);
}

#progressText {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
}

#progress {
    color: #b0b0b0;
    font-size: 14px;
    margin-top: 8px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #3a3a3a;
    margin-top: 24px;
}

.footer p {
    color: #808080;
    font-size: 13px;
    margin: 4px 0;
}

/* Scrollbar styling */
#searchResults::-webkit-scrollbar {
    width: 8px;
}

#searchResults::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .search-section {
        flex-direction: column;
    }

    .status-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
