/**
 * Frontend Styles for Multiple Chatbots Manager
 */
.mflchb-chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.mflchb-chatbot-header {
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.mflchb-chatbot-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mflchb-chatbot-instructions {
    background-color: #f0f8ff;
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.mflchb-chatbot-messages {
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mflchb-user-message,
.mflchb-assistant-message,
.mflchb-error-message,
.mflchb-welcome-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.mflchb-user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.mflchb-assistant-message,
.mflchb-welcome-message {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 4px;
}

.mflchb-error-message {
    align-self: center;
    background-color: #ffebee;
    color: #d32f2f;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    width: 90%;
    text-align: center;
}

.mflchb-welcome-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
}

.mflchb-chatbot-input-container {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.mflchb-chatbot-form {
    display: flex;
    gap: 10px;
}

.mflchb-chatbot-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    min-height: 40px;
    max-height: 120px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    overflow-y: auto;
}

.mflchb-chatbot-send {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mflchb-chatbot-send:hover {
    background-color: #0056b3;
}

.mflchb-chatbot-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Typing indicator */
.mflchb-typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mflchb-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

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

.mflchb-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.mflchb-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 600px) {
    .mflchb-chatbot-messages {
        height: 300px;
    }
    
    .mflchb-user-message,
    .mflchb-assistant-message {
        max-width: 90%;
    }
}

#tophead{
    display: flex;
    flow-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 0;
  
  }
  .flex_l{
  width: 78%;
}
.flex_r{
  width: 20%;
  font-size: 0.6em;
  text-align: right;
}