/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:Arial,sans-serif;
    background:#f3f4f6;
    color:#111827;
}

/* =========================================
   CONTAINER
========================================= */

.container{
    max-width:1400px;
    margin:auto;
    padding:30px;
}

/* =========================================
   GRID
========================================= */

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    align-items:start;
}

/* =========================================
   CARD
========================================= */

.card{
    background:#fff;
    padding:35px;
    border-radius:30px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

/* =========================================
   TITLE
========================================= */

.title{
    font-size:42px;
    font-weight:800;
    margin-bottom:10px;
    line-height:1.2;
}

.subtitle{
    color:#6b7280;
    margin-bottom:35px;
    font-size:17px;
    line-height:1.7;
}

.result-title{
    font-size:32px;
    font-weight:700;
    margin-bottom:25px;
}

/* =========================================
   FORM
========================================= */

.form-group{
    margin-bottom:22px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    font-size:15px;
    font-weight:700;
}

/* =========================================
   INPUT
========================================= */

.form-control{
    width:100%;
    padding:16px 18px;
    border:1px solid #d1d5db;
    border-radius:18px;
    font-size:16px;
    outline:none;
    transition:0.3s;
    background:#fff;
}

.form-control:focus{
    border-color:#ff5a1f;
    box-shadow:
        0 0 0 5px rgba(255,90,31,0.12);
}

/* =========================================
   TEXTAREA
========================================= */

textarea.form-control{
    resize:none;
    min-height:130px;
    line-height:1.7;
}

/* =========================================
   FILE INPUT
========================================= */

input[type=file]{
    cursor:pointer;
}

/* =========================================
   BUTTON
========================================= */

.btn{
    width:100%;
    border:none;
    background:#111827;
    color:#fff;
    padding:18px;
    border-radius:22px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* =========================================
   PREVIEW
========================================= */

.preview-box{
    background:#f9fafb;
    border:2px dashed #d1d5db;
    border-radius:22px;
    padding:25px;
    text-align:center;
    overflow:hidden;
}

.preview-box p{
    color:#6b7280;
    line-height:1.7;
}

#previewImage{
    width:100%;
    max-height:350px;
    object-fit:cover;
    border-radius:20px;
}

/* =========================================
   RESULT IMAGE
========================================= */

.result-image{
    width:100%;
    display:block;
    border-radius:25px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);
}

/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-btn{
    display:inline-block;
    margin-top:25px;
    background:#16a34a;
    color:#fff;
    padding:16px 28px;
    border-radius:20px;
    text-decoration:none;
    font-weight:700;
    transition:0.3s;
}

.download-btn:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* =========================================
   ALERT
========================================= */

.alert{
    padding:18px;
    border-radius:18px;
    margin-bottom:20px;
    font-weight:600;
}

.alert-success{
    background:#dcfce7;
    color:#166534;
}

.alert-error{
    background:#fee2e2;
    color:#991b1b;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f3f4f6;
}

::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:20px;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media(max-width:992px){

    .container{
        padding:20px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .card{
        padding:30px;
    }

    .title{
        font-size:36px;
    }

    .subtitle{
        font-size:16px;
    }

}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

    body{
        background:#f3f4f6;
    }

    .container{
        padding:15px;
    }

    .grid{
        gap:20px;
    }

    .card{
        padding:22px;
        border-radius:25px;
    }

    .title{
        font-size:30px;
        line-height:1.3;
    }

    .subtitle{
        font-size:15px;
        margin-bottom:25px;
    }

    .result-title{
        font-size:26px;
    }

    .form-group{
        margin-bottom:18px;
    }

    .form-group label{
        font-size:14px;
    }

    .form-control{
        padding:14px 16px;
        font-size:15px;
        border-radius:16px;
    }

    textarea.form-control{
        min-height:110px;
    }

    .btn{
        padding:16px;
        font-size:16px;
        border-radius:18px;
    }

    .download-btn{
        width:100%;
        text-align:center;
        padding:16px;
        font-size:16px;
        border-radius:18px;
    }

    .preview-box{
        padding:18px;
        border-radius:18px;
    }

    #previewImage{
        max-height:250px;
        border-radius:16px;
    }

    .result-image{
        border-radius:18px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px){

    .container{
        padding:12px;
    }

    .card{
        padding:18px;
        border-radius:20px;
    }

    .title{
        font-size:26px;
    }

    .subtitle{
        font-size:14px;
    }

    .form-control{
        font-size:14px;
        padding:13px 14px;
    }

    .btn{
        font-size:15px;
        padding:15px;
    }

    .download-btn{
        font-size:15px;
        padding:15px;
    }

    .preview-box{
        padding:15px;
    }

    #previewImage{
        max-height:220px;
    }

}