/* ===============================
   PETRO AI PRO UI
=============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7fb;
    height:100vh;
    overflow:hidden;
}

/* MAIN PAGE */

.chat-page{
    width:100%;
    height:100vh;
    display:flex;
    flex-direction:column;
}

/* HEADER */

.chat-header-full{
    height:80px;
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.logo-section{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-section i{
    width:50px;
    height:50px;
    border-radius:12px;
    background:#108082;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
}

.logo-section h1{
    font-size:20px;
    color:#111827;
}

.logo-section span{
    font-size:12px;
    color:#6b7280;
}

.back-btn{
    text-decoration:none;
    background:#108082;
    color:white;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    transition:.3s;
}

.back-btn:hover{
    background:#0d6d6e;
}

/* CHAT AREA */

#messages{
    flex:1;
    overflow-y:auto;
    padding:40px;
    background:
    radial-gradient(circle at top right,
    rgba(16,128,130,.08),
    transparent 40%),
    #f8fafc;
}

/* MESSAGE */

.message{
    max-width:850px;
    margin-bottom:20px;
    padding:18px 22px;
    border-radius:18px;
    line-height:1.8;
    font-size:15px;
    animation:fadeIn .3s ease;
}

/* USER */

.message.user{
    margin-left:auto;
    background:#108082;
    color:white;
    border-bottom-right-radius:8px;
    max-width:700px;
}

/* BOT */

.message.bot{
    margin-right:auto;
    background:white;
    border:1px solid #e5e7eb;
    color:#111827;
    border-bottom-left-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

/* FOOTER */

.chat-footer{
    background:white;
    border-top:1px solid #e5e7eb;
    padding:20px;
    display:flex;
    gap:15px;
}

/* INPUT */

#messageInput{
    flex:1;
    height:60px;
    border:2px solid #e5e7eb;
    border-radius:15px;
    padding:0 20px;
    font-size:15px;
    outline:none;
}

#messageInput:focus{
    border-color:#108082;
}

/* BUTTON */

#sendBtn{
    width:60px;
    height:60px;
    border:none;
    border-radius:15px;
    background:#108082;
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

#sendBtn:hover{
    background:#0d6d6e;
    transform:translateY(-2px);
}

/* WELCOME CARD */

.welcome-card{
    max-width:850px;
    background:white;
    padding:30px;
    border-radius:20px;
    border:1px solid #e5e7eb;
    margin-bottom:30px;
}

.welcome-card h2{
    color:#111827;
    margin-bottom:10px;
}

.welcome-card p{
    color:#6b7280;
    margin-bottom:15px;
}

.quick-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.quick-actions button{
    border:none;
    background:#108082;
    color:white;
    padding:10px 15px;
    border-radius:10px;
    cursor:pointer;
}

/* SCROLLBAR */

#messages::-webkit-scrollbar{
    width:8px;
}

#messages::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

/* TYPING */

.typing{
    display:flex;
    gap:5px;
}

.typing span{
    width:8px;
    height:8px;
    background:#108082;
    border-radius:50%;
    animation:typing 1.2s infinite;
}

.typing span:nth-child(2){
    animation-delay:.2s;
}

.typing span:nth-child(3){
    animation-delay:.4s;
}

@keyframes typing{

    0%{
        opacity:.2;
        transform:translateY(0);
    }

    50%{
        opacity:1;
        transform:translateY(-4px);
    }

    100%{
        opacity:.2;
        transform:translateY(0);
    }

}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* MOBILE */

@media(max-width:768px){

    .chat-header-full{
        padding:0 15px;
    }

    #messages{
        padding:15px;
    }

    .message{
        max-width:95%;
    }

    .chat-footer{
        padding:15px;
    }

    #messageInput{
        height:50px;
    }

    #sendBtn{
        width:50px;
        height:50px;
    }

}