*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
height:100vh;
overflow:hidden;
background:linear-gradient(135deg,#ff6b6b,#6c5ce7,#00cec9);
background-size:400% 400%;
animation:bgMove 15s ease infinite;
}

@keyframes bgMove{
0%{
background-position:0% 50%;
}
50%{
background-position:100% 50%;
}
100%{
background-position:0% 50%;
}
}

.app{
display:flex;
height:100vh;
width:100%;
overflow:hidden;
backdrop-filter:blur(10px);
}

.sidebar{
width:280px;
background:rgba(255,255,255,0.12);
backdrop-filter:blur(20px);
padding:25px;
display:flex;
flex-direction:column;
gap:15px;
border-right:1px solid rgba(255,255,255,0.15);
}

.logo-area{
text-align:center;
margin-bottom:10px;
}

.logo{
width:90px;
height:90px;
margin:auto;
border-radius:50%;
background:linear-gradient(135deg,#ff7675,#fd79a8,#6c5ce7);
display:flex;
justify-content:center;
align-items:center;
font-size:30px;
font-weight:700;
color:white;
box-shadow:0 10px 30px rgba(0,0,0,0.25);
animation:float 3s ease-in-out infinite;
}

@keyframes float{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-10px);
}
100%{
transform:translateY(0);
}
}

.logo-area h2{
margin-top:15px;
font-size:24px;
color:white;
}

.logo-area p{
font-size:13px;
color:#f1f5f9;
margin-top:5px;
}

.sidebar button{
padding:15px;
border:none;
border-radius:18px;
background:rgba(255,255,255,0.12);
backdrop-filter:blur(15px);
color:white;
font-size:15px;
cursor:pointer;
transition:0.3s;
font-weight:600;
}

.sidebar button:hover{
transform:translateY(-3px) scale(1.02);
background:rgba(255,255,255,0.2);
}

.about{
margin-top:auto;
background:rgba(255,255,255,0.1);
padding:20px;
border-radius:22px;
color:white;
line-height:1.7;
backdrop-filter:blur(15px);
}

.main-chat{
flex:1;
display:flex;
flex-direction:column;
}

.header{
padding:20px 25px;
display:flex;
justify-content:space-between;
align-items:center;
background:rgba(255,255,255,0.08);
backdrop-filter:blur(15px);
border-bottom:1px solid rgba(255,255,255,0.1);
}

.header h1{
font-size:32px;
color:white;
}

.header p{
font-size:14px;
color:#f1f5f9;
margin-top:5px;
}

.online-status{
display:flex;
align-items:center;
gap:8px;
font-size:15px;
color:white;
}

.online-status span{
width:10px;
height:10px;
background:#00ff88;
border-radius:50%;
box-shadow:0 0 10px #00ff88;
}

.chat-box{
flex:1;
padding:20px;
overflow-y:auto;
display:flex;
flex-direction:column;
gap:18px;
scroll-behavior:smooth;
}

.chat-box::-webkit-scrollbar{
width:5px;
}

.chat-box::-webkit-scrollbar-thumb{
background:white;
border-radius:20px;
}

.message{
padding:16px 18px;
max-width:75%;
border-radius:22px;
font-size:14px;
line-height:1.8;
animation:messageIn 0.3s ease;
word-wrap:break-word;
backdrop-filter:blur(10px);
}

@keyframes messageIn{
from{
opacity:0;
transform:translateY(10px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.user{
align-self:flex-end;
background:linear-gradient(135deg,#6c5ce7,#00cec9);
color:white;
border-bottom-right-radius:8px;
box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.bot{
align-self:flex-start;
background:rgba(255,255,255,0.14);
color:white;
border-bottom-left-radius:8px;
border:1px solid rgba(255,255,255,0.1);
}

.typing-area{
padding-left:20px;
padding-bottom:10px;
}

.typing{
display:flex;
gap:6px;
padding:12px 15px;
width:75px;
border-radius:15px;
background:rgba(255,255,255,0.14);
}

.typing span{
width:8px;
height:8px;
background:white;
border-radius:50%;
animation:typing 1s infinite;
}

.typing span:nth-child(2){
animation-delay:0.2s;
}

.typing span:nth-child(3){
animation-delay:0.4s;
}

@keyframes typing{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-5px);
}
100%{
transform:translateY(0);
}
}

.input-area{
padding:20px;
display:flex;
gap:10px;
background:rgba(255,255,255,0.08);
backdrop-filter:blur(15px);
}

.input-area input{
flex:1;
padding:17px;
border:none;
outline:none;
border-radius:18px;
background:rgba(255,255,255,0.15);
color:white;
font-size:15px;
}

.input-area input::placeholder{
color:#f1f5f9;
}

.input-area button{
padding:16px 24px;
border:none;
border-radius:18px;
background:linear-gradient(135deg,#ff7675,#6c5ce7);
color:white;
font-weight:700;
cursor:pointer;
transition:0.3s;
}

.input-area button:hover{
transform:scale(1.05);
}

.footer{
padding:12px;
text-align:center;
font-size:12px;
background:rgba(255,255,255,0.08);
color:white;
}

@media(max-width:900px){

.app{
flex-direction:column;
}

.sidebar{
width:100%;
padding:15px;
gap:10px;
}

.logo{
width:70px;
height:70px;
font-size:24px;
}

.logo-area h2{
font-size:22px;
}

.header{
padding:15px;
}

.header h1{
font-size:24px;
}

.chat-box{
padding:15px;
}

.message{
max-width:92%;
font-size:14px;
}

.input-area{
padding:15px;
}

.input-area input{
padding:15px;
font-size:14px;
}

.input-area button{
padding:15px 18px;
font-size:14px;
}

.about{
font-size:13px;
}

}