:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --background: #f8fafc;
}

.navbar {
    background: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 6rem auto 2rem;
    padding: 0 1rem;
    background: var(--background);
}

.container {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.upload-box {
    border: 2px dashed #cbd5e1;
    padding: 3rem 1rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    background: #f8fafc;
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

#file-input {
    display: none;
}

button {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.progress-bar {
width: 100%;
height: 25px;
background: #f0f0f0;
border-radius: 15px;
margin: 1.5rem 0;
overflow: hidden;
display: none;
position: relative;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress {
width: 0%;
height: 100%;
background: linear-gradient(135deg, var(--primary), #7c3aed);
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
border-radius: 15px;
}

.progress::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(to right, 
rgba(255,255,255,0.3) 0%,
rgba(255,255,255,0.1) 50%,
rgba(255,255,255,0.3) 100%);
animation: shine 2s infinite;
}

@keyframes shine {
0% { background-position: -200px 0; }
100% { background-position: 200px 0; }
}

.progress-percent {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: white;
font-weight: 600;
font-size: 0.9rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Add completion animation */
@keyframes completePulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.progress.complete {
animation: completePulse 0.5s ease-in-out;
}

#download-link {
    display: none;
    margin-top: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

#download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-hover), #6d28d9);
}

#download-link:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(99, 102, 241, 0.2);
}

#download-link i {
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.file-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.file-info b {
    color: #1e293b;
}

.quality-control {
margin: 1.5rem 0;
display: flex;
flex-direction: column;
gap: 0.8rem;
}

.quality-control label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: #1e293b;
}

.quality-control-inner {
display: flex;
align-items: center;
gap: 1rem;
}

.progress-bar {
width: 100%;
height: 20px;
background-color: #eee;
border-radius: 10px;
margin: 1rem 0;
overflow: hidden;
display: none;
position: relative;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    body {
        margin-top: 70px;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .upload-box {
        padding: 2rem 1rem;
    }
}
