body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: 
        linear-gradient(135deg, #e0e7ef 0%, #b3c6e6 100%),
        url('bg.jpg') center/cover no-repeat;
    /* 3D effet */
    background-blend-mode: lighten;
    background-image:
        url('bg.jpg'),
        radial-gradient(circle at 20% 20%, #eaf6ff 0%, transparent 70%),
        radial-gradient(circle at 80% 80%, #d1e3fa 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-top: 3rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

h1 {
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.upload-label {
    display: inline-block;
    background: #e0e7ef;
    color: #2563eb;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: background 0.2s;
}
.upload-label:hover {
    background: #d1e3fa;
}
.upload-label input[type="file"] {
    display: none;
}

#remove-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: background 0.2s;
}
#remove-btn:hover {
    background: #1e40af;
}

.result {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.result img {
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    background: #fff;
}

.download-btn {
    background: #22d3ee;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #0891b2;
}

footer {
    margin-top: 3rem;
    padding: 1.2rem 0;
    background: rgba(255,255,255,0.8);
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    position: fixed;
    left: 0;
    bottom: 0;
}

.footer-icon img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-left: 0.5rem;
    filter: grayscale(0.2);
    transition: filter 0.2s;
}
.footer-icon img:hover {
    filter: grayscale(0) brightness(1.2);
}

#selected-image-preview {
    margin: 1.2rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.selected-label {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.07rem;
    letter-spacing: 0.5px;
}

.selected-img-frame {
    border: 2.5px solid #2563eb;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.10);
    padding: 6px;
    background: #f1f5fa;
    max-width: 220px;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-img-frame img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    display: block;
}

.loading-bar-container {
    width: 220px;
    height: 10px;
    background: #e0e7ef;
    border-radius: 6px;
    margin-top: 0.7rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(37,99,235,0.07);
    display: flex;
    align-items: center;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 40%, #60a5fa 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s;
}

@media (max-width: 600px) {
    .container {
        padding: 1.2rem 0.5rem;
        margin-top: 1.5rem;
    }
    .result img {
        max-width: 95vw;
    }
    footer {
        font-size: 0.95rem;
        gap: 0.7rem;
    }
}
