/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 /* Floating Chat Container */
/*======================================*/
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-box {
    background: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    flex-direction: column;
}

.chat-inline {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
}

.chat-inline .chat-box {
    display: block !important;
    width: 100%;
}
.messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 10px;
    font-size: 14px;
    display: flex;
flex-direction: column;
align-items: flex-start; /* Default alignment: left */
}

.input-message {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    outline: none;
    width: calc(100% - 60px);
    color:black !important;
}

.send-btn {
    padding: 12px;
    background-color: #FF9E0D;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
}

.chat-btn {
    background-color: #007bff;
    color: white;
    font-size: 30px;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fix chat button position */
bottom: 20px; /* Keep it at the bottom */
right: 20px; /* Keep it on the right */
z-index: 1000; /* Ensure it stays above other elements */
}

.chat-btn:focus {
    outline: none;
}

/* Animation for message appearance */
.user-message, .bot-message {
    border-radius: 20px;
    margin: 5px 0;
    padding: 10px;
    max-width: 70%;
    word-wrap: break-word;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.user-message {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-end;
    margin-left: 30px;
}

.bot-message {
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    align-self: flex-start;
    margin-right: 30px;
}

/* Animation for fading in messages */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Typing animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    background-color: #404040;
    border-radius: 50%;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Source Button */
.source-button {
    background-color: #FF9E0D;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    margin-top: 5px;
    width: 100%;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.source-button:hover {
    background-color: #0056b3;
}