#imgtxt .container{
    max-width: 480px;
    width: 100%;
    animation: fadeIn 0.6s ease-in-out;
    margin: 0 auto;
}
#imgtxt h1{
    color: #222;
    margin: 30px 0 8px;
}
#imgtxt p.subtitle{
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
}
#imgtxt form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#imgtxt label{
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}
#imgtxt .file-input{
    padding: 10px;
    border: 2px dashed #cfd6df;
    border-radius: 12px;
    background: #fbfdff;
    transition: 0.28s;
}
#imgtxt .file-input:hover{
    border-color: #0078ff;
    background: #f0f8ff;
}
#imgtxt input[type=file]{
    width: 100%;
}
#imgtxt button{
    background: linear-gradient(135deg, #0078ff, #00b4ff);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,120,255,0.12);
}
#imgtxt button:hover{
    transform: translateY(-2px);
}
#imgtxt .result{
    margin-top: 30px;
    background: #fff;
    animation: fadeIn 0.6s ease-in-out;
}
#imgtxt .result h2{
    text-align: center;
    color: #0078ff;
    margin-bottom: 12px;
}
#imgtxt .lang-tag{
    display: inline-block;
    background: #e8f3ff;
    color: #0078ff;
    border: 1px solid #cfe4ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto 18px;
    text-align: center;
}
#imgtxt pre{
    background: #f8fbff;
    border: 1px solid #e6eefc;
    padding: 18px;
    border-radius: 12px;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 60vh;
    overflow: auto;
    color: #222;
    font-size: 0.95rem;
}
#imgtxt .back-btn{
    display: inline-block;
    margin-top: 18px;
    background: #0078ff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
}
#imgtxt .error{
    background: #fff6f6;
    border: 1px solid #ffd6d6;
    padding: 12px;
    border-radius: 10px;
    color: #8b1b1b;
    margin-top: 14px;
}
@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}