body{

    background:#f5f7fb;

}
.sidebar{
    background: linear-gradient(180deg,#1e3a8a,#1d4ed8);
    color:#fff;
    height:100vh;
    padding:25px;
    display:flex;
    flex-direction:column;
    box-shadow:5px 0 20px rgba(0,0,0,.15);
}

.sidebar-header{
    margin-bottom:30px;
}

.sidebar-header h4{
    font-weight:700;
    letter-spacing:.5px;
}

.profile-box{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#fff;
    color:#1d4ed8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:bold;
}

.menu-item{

    color:white;

    text-decoration:none;

    padding:14px 18px;

    border-radius:12px;

    margin-bottom:10px;

    display:flex;

    align-items:center;

    gap:12px;

    transition:.3s;

    font-size:17px;

}

.menu-item:hover{

    background:rgba(255,255,255,.18);

    color:white;

    transform:translateX(5px);

}

.chat-header{

    background:white;

    padding:20px;

    border-bottom:1px solid #ddd;

}

.chat-body{

    flex:1;

    overflow-y:auto;

    padding:25px;

}

.bot-message{

    display:flex;

    margin-bottom:20px;

}

.bubble{

    background:white;

    padding:18px;

    border-radius:18px;

    max-width:500px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.chat-footer{

    background:white;

    padding:20px;

    border-top:1px solid #ddd;

}

/* ===========================
   CHAT MESSAGE
=========================== */

.message{

    display:flex;

    margin-bottom:20px;

    animation:fade .3s ease;

}

.message.user{

    justify-content:flex-end;

}

.message.bot{

    justify-content:flex-start;

}

.message img{

    width:42px;

    height:42px;

    border-radius:50%;

}

.message.user img{

    order:2;

    margin-left:10px;

}

.message.bot img{

    margin-right:10px;

}

.bubble{

    max-width:70%;

    padding:16px 20px;

    border-radius:18px;

    word-break:break-word;

    line-height:1.6;

}

.message.user .bubble{

    background:#2563eb;

    color:white;

    border-bottom-right-radius:5px;

}

.message.bot .bubble{

    background:white;

    border-bottom-left-radius:5px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
.emotion-card{

    background:white;

    border-radius:15px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.typing{

    display:flex;

    align-items:center;

    gap:5px;

}

.typing span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#999;

    animation:typing 1s infinite;

}

.typing span:nth-child(2){

    animation-delay:.2s;

}

.typing span:nth-child(3){

    animation-delay:.4s;

}

@keyframes typing{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-5px);

    }

    100%{

        transform:translateY(0);

    }

}
