@font-face {
    font-family: poppins;
    src: url("../fonts/poppins/Poppins-Regular.otf") format("opentype");
}

#chat-box, #popup-mitha, input[type="text"], button {
    font-family: 'Poppins', sans-serif;
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#chat-toggle #chat-notif{
    display: none;
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
}

#chat-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#chat-popup #popup-mitha {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 10px;
    padding: 8px;
    background-color: #f1f1f1;
    border-radius: 8px;
}

#chat-popup #popup-mitha img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

#chat-popup #popup-mitha strong {
    flex-grow: 1;
    line-height: 1;
}

#chat-popup #popup-mitha span {
    float:right;
    cursor:pointer;
    font-size: 20px;
}

#chat-popup #chat-box{
    flex: 1; overflow-y: auto;
    font-size: 12px;
    color: rgb(68, 68, 68);
    padding: 10px;
    background-color: #f9f9f9;
    height: 250px;
}

#chat-popup #chat-box .chat-box{
    padding: 8px;
    color: rgb(68, 68, 68);
    border-top: 1px solid #ddd;
}

.chat-box #user-input{
    width: 75%;
    padding: 6px;
    font-size: 12px;
    color: rgb(68, 68, 68);
}

.chat-box input[type="text"] {
    width: 80%;
    padding: 5px;
}

.chat-box button{
    padding: 6px 10px;
    font-size: 12px;
}

.user-msg, .bot-msg {
    margin: 8px 0;
    padding: 6px 10px;
    border-radius: 5px;
    max-width: 90%;
}

.user-msg {
    background-color: #90dee7;
    text-align: right;
    margin-left: auto;
}

.bot-msg {
    background-color: #d3e5e3;
    text-align: left;
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bot-msg .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
