:root {
    --bg-color: #121212;
    --card-bg: #181818;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --spotify-green: #1DB954;
    --spotify-green-hover: #1ed760;
    --error-red: #E22134;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #282828;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.centered-box {
    text-align: center;
    margin-top: 20vh;
}

.input-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #333;
    background: #282828;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--spotify-green);
}

button, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 500px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, background-color 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--spotify-green);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--spotify-green-hover);
    transform: scale(1.04);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: scale(1.04);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

#user-profile button {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Loading animations */
#loading {
    margin-top: 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--spotify-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.stats p {
    color: var(--text-primary);
    margin: 0;
}

#missing-tracks {
    text-align: left;
    background: #282828;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.warning-text {
    color: #ffb86c;
    margin-bottom: 0.5rem;
}

#missing-list {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-secondary);
}
