*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    height:100vh;
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    display:flex;
    justify-content:center;
    align-items:center;
}

/* Chat Container */
.chatbox{
    width:95%;
    max-width:420px;
    height:90vh;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius:20px;
    padding:15px;
    box-shadow:0 20px 40px rgba(0,0,0,0.4);
    display:flex;
    flex-direction:column;
}

.chatbox h4{
    text-align:center;
    color:white;
    margin-bottom:10px;
}

/* Messages */
.messages{
    flex:1;
    overflow-y:auto;
    padding:10px;
    border-radius:15px;
    background: rgba(255,255,255,0.08);
}

/* Message bubbles */
.user{
    align-self:flex-end;
    background: linear-gradient(135deg,#00c6ff,#0072ff);
    color:white;
    padding:10px 15px;
    border-radius:20px 20px 0 20px;
    margin:8px 0;
    max-width:75%;
}

.bot{
    align-self:flex-start;
    background: linear-gradient(135deg,#56ab2f,#a8e063);
    color:black;
    padding:10px 15px;
    border-radius:20px 20px 20px 0;
    margin:8px 0;
    max-width:75%;
}

/* Typing Animation */
.typing{
    font-style:italic;
    opacity:0.7;
    animation: blink 1s infinite;
}

@keyframes blink{
    0%{opacity:0.3;}
    50%{opacity:1;}
    100%{opacity:0.3;}
}

/* Input Section */
.input-section{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.input-section input{
    flex:1;
    padding:10px;
    border-radius:20px;
    border:none;
    outline:none;
}

.input-section button{
    padding:10px 15px;
    border-radius:20px;
    border:none;
    background:linear-gradient(135deg,#00c6ff,#0072ff);
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.input-section button:hover{
    transform:scale(1.05);
}

/* Mobile Adjustments */
@media(max-width:480px){
    .chatbox{
        height:100vh;
        border-radius:0;
    }
}