.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    flex-direction: column;
}
.chat-header {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}
.chat-box {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}
.user-message {
    background-color: #dcedc8;
    text-align: left;
}
.bot-message {
    background-color: #ffccbc;
    text-align: left;
}
.error-message {
    background-color: #ffcdd2;
    text-align: left;
}
.input-container {
    display: flex;
    padding: 10px;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
}
.input-container input {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 10px;
}
.input-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
}
.open-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1001;
}
.typing-indicator {
    font-style: italic;
    color: #888;
    animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 768px) {
    .chat-widget {
        width: 100%;
        bottom: 0;
    }
    .open-chat-button {
        right: 10px;
        bottom: 10px;
    }
}
