* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: linear-gradient(135deg, #0f172a, #111827);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1rem;
}

.upload-box {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s ease;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.03);
}

.upload-box:hover {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.08);
}

input[type="file"] {
    margin-top: 15px;
    color: white;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

button:active {
    transform: scale(0.98);
}

.result {
    margin-top: 30px;
    text-align: center;
}

.result img {
    width: 100%;
    border-radius: 18px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#downloadLink {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    border-radius: 12px;
    background: #10b981;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

#downloadLink:hover {
    background: #059669;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
