/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7ff;
    color:#333;
}

/* ===========================
   HEADER
=========================== */

header{
    background:#0b1033;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    flex-wrap:wrap;
}

.logo h1{
    font-size:42px;
    font-weight:700;
}

.logo span{
    color:#ffb400;
}

.logo p{
    font-size:15px;
    color:#ddd;
    margin-top:5px;
}

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:15px;
}

.top-links{
    display:flex;
    gap:20px;
}

.top-links a{
    color:white;
    text-decoration:none;
    font-weight:600;
}

.top-links a:hover{
    color:#ffb400;
}

.search-box{
    display:flex;
}

.search-box input{
    width:250px;
    padding:12px;
    border:none;
    outline:none;
    border-radius:8px 0 0 8px;
}

.search-box button{
    padding:12px 22px;
    border:none;
    cursor:pointer;
    color:white;
    font-weight:600;
    border-radius:0 8px 8px 0;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

/* ===========================
   NAVBAR
=========================== */

.navbar{
    background:#16215f;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.navbar a{
    color:white;
    text-decoration:none;
    padding:16px 30px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

/* ===========================
   TITLE
=========================== */

.title{
    text-align:center;
    padding:40px 20px;
}

.title h2{
    color:#1f2a7d;
    font-size:40px;
    margin-bottom:10px;
}

.title p{
    color:#666;
}

/* ===========================
   FORM CONTAINER
=========================== */

.form-container{
    width:80%;
    max-width:900px;
    margin:30px auto 60px;
    background:white;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* ===========================
   FORM
=========================== */

#problemForm{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.input-box{
    display:flex;
    flex-direction:column;
}

.full{
    grid-column:1/3;
}

label{
    font-weight:600;
    margin-bottom:8px;
    color:#1f2a7d;
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #d9d9d9;
    border-radius:10px;
    outline:none;
    font-size:15px;
    transition:.3s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#6d45ff;
    box-shadow:0 0 8px rgba(109,69,255,.25);
}

textarea{
    resize:none;
}

/* ===========================
   FILE INPUT
=========================== */

input[type=file]{
    padding:12px;
    background:#f5f7ff;
}

/* ===========================
   PASTE BOX
=========================== */

.paste-box{
    grid-column:1/3;
    text-align:center;
}

#pasteArea{
    margin-top:15px;
    border:3px dashed #6d45ff;
    border-radius:15px;
    background:#faf9ff;
    padding:40px;
    color:#777;
    cursor:pointer;
    transition:.3s;
}

#pasteArea:hover{
    background:#f1eeff;
}

/* ===========================
   IMAGE PREVIEW
=========================== */

.preview{
    grid-column:1/3;
    text-align:center;
}

.preview img{
    display:none;
    margin-top:20px;
    width:350px;
    max-width:100%;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

/* ===========================
   BUTTONS
=========================== */

.buttons{
    grid-column:1/3;
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:20px;
}

.buttons button{
    border:none;
    padding:14px 35px;
    font-size:16px;
    font-weight:600;
    color:white;
    cursor:pointer;
    border-radius:10px;
    transition:.3s;
}

.buttons button:first-child{
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

.buttons button:last-child{
    background:#16215f;
}

.buttons button:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

    header{
        flex-direction:column;
        text-align:center;
        gap:20px;
    }

    .header-right{
        align-items:center;
    }

    .search-box{
        width:100%;
    }

    .search-box input{
        width:100%;
    }

    .navbar{
        flex-direction:column;
    }

    .navbar a{
        text-align:center;
        border-bottom:1px solid rgba(255,255,255,.1);
    }

    .form-container{
        width:95%;
        padding:25px;
    }

    #problemForm{
        grid-template-columns:1fr;
    }

    .full,
    .paste-box,
    .preview,
    .buttons{
        grid-column:1;
    }

    .buttons{
        flex-direction:column;
    }

    .buttons button{
        width:100%;
    }
}

@media(max-width:600px){
    header{
        padding:18px 16px;
    }

    .logo h1{
        font-size:clamp(24px, 7vw, 32px);
    }

    .logo p{
        font-size:13px;
    }

    .top-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .title{
        padding:25px 15px;
    }

    .title h2{
        font-size:clamp(24px, 6vw, 32px);
    }

    .form-container{
        width:96%;
        padding:20px 14px;
        border-radius:14px;
    }

    .buttons{
        gap:12px;
        margin-top:15px;
    }

    .buttons button{
        padding:12px 20px;
        font-size:15px;
    }
}