﻿#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: Arial, sans-serif;
}

#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #5cb85c; /* Green color, change as needed */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    #chat-button:hover {
        background-color: #4cae4c; /* Slightly darker green on hover */
    }


#chat-box {
    width: 300px;
    height: 400px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chat-message {
    display: flex;
    align-items: flex-start; /* Align items to the top of the container */
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

    .chat-message strong {
        color: #007bff; /* Blue color for the chatbot's name */
        margin-right: 5px; /* Space between the label and content */
        color: var(--StratinoBlue);
    }

#chat-input {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

#send-chat {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
}

.typing-dots-container {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 50px; /* Width to accommodate the typing dots */
    margin-left: 5px; /* Space between the text and the dots */
    height: 1em; /* Height to match the line height of the text */
    transform: translateY(-4px); /* Move the container up by 4px */
}

.typing-dots {
    font-size: 30px; /* Size of the dots */
    color: #000; /* Color of the dots */
    line-height: 1; /* Ensuring the line height is consistent */
}

    .typing-dots::after {
        content: '';
        display: inline-block; /* Inline-block for proper alignment */
        animation: typing 2s steps(3, end) infinite;
    }

@keyframes typing {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }
}

.unread-indicator {
    position: absolute;
    top: -5px; /* Adjust as needed */
    right: -5px; /* Adjust as needed */
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    text-align: center;
    line-height: 20px; /* Adjust to match height for vertical centering */
    font-size: 12px; /* Adjust as needed */
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}