:root { 
    --primary: #6366f1; 
    --bg: #0f172a; 
    --card: #1e293b; 
    --text: #f8fafc; 
    --success: #10b981;
}

* { 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    display: block; 
    min-height: 100vh; 
    margin: 0; 
    padding-top: 5vh; 
}

.container { 
    background: var(--card); 
    padding: 2rem; 
    border-radius: 1rem; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    width: 95%; 
    max-width: 900px; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    margin: 0 auto; 
}

h1 { 
    margin: 0; 
    color: #bb86fc; 
    text-align: center; 
    font-size: 1.5rem; 
}


.upload-area { 
    border: 2px dashed #475569; 
    padding: 1rem; 
    border-radius: 0.5rem; 
    cursor: pointer; 
    transition: 0.3s; 
    color: #94a3b8;
    
    min-height: 45vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 500;
    position: relative; 
    overflow: hidden;
}

.upload-area:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: rgba(99, 102, 241, 0.05); 
}

#preview-image {
    max-width: 100%;
    max-height: 40vh; 
    object-fit: contain; 
    border-radius: 0.25rem;
}


button, .download-btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0.8rem 1.5rem; 
    border-radius: 0.5rem; 
    cursor: pointer; 
    font-weight: bold; 
    width: 100%; 
    transition: 0.2s; 
    font-size: 1rem;
    text-decoration: none; 
    display: block;
    text-align: center;
}

button:disabled { 
    background: #475569; 
    cursor: not-allowed; 
    opacity: 0.7; 
}

button:hover:not(:disabled) { 
    filter: brightness(1.1); 
}

.download-btn { 
    background: var(--success); 
}

.download-btn:hover { 
    background: #059669; 
}


.secondary-btn {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6); 
    border: none;
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); 
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px); 
}


#stats { 
    padding: 1rem; 
    background: rgba(0,0,0,0.2); 
    border-radius: 0.5rem; 
    text-align: center; 
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
}


#upload { 
    display: none; 
}


.footer-links {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    padding-bottom: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-links:hover {
    opacity: 1;
}

.footer-links a {
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.footer-links a img {
    width: 30px; 
    transition: transform 0.2s;
}


.github-icon {
    filter: invert(1);
}

.footer-links a img:hover {
    transform: scale(1.1);
}

.seo-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1e293b;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
    color: #94a3b8;
    font-size: 0.85rem;
}
.seo-box h3 { color: var(--text); margin-top: 0; }

.back-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px; 
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    display: inline-block; 
    margin: 1.5rem auto;   
    transition: all 0.3s;
    width: auto;           
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}


.benefit-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.benefit-list img {
    flex-shrink: 0; 
}



.container > .seo-box {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


.container {
    gap: 0.8rem; 
}
