/* Chatbot Container and Toggle Button */
#mac-chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#mac-chat-toggle-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

#mac-chat-toggle-btn:hover {
    background-color: #005a87;
}

/* Main Chat Widget */
#mac-chat-widget {
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: bottom right;
}

#mac-chat-widget.mac-hidden {
    transform: scale(0);
    opacity: 0;
    height: 0;
    width: 0;
}

/* Chat Header */
.mac-chat-header {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mac-chat-header h3 {
    margin: 0;
    font-size: 1.1em;
}

#mac-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Chat Body (Message Area) */
.mac-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.mac-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.mac-message p {
    margin: 0;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.mac-bot-message {
    align-items: flex-start;
}
.mac-bot-message p {
    background-color: #e5e5ea;
    color: #000;
    border-bottom-left-radius: 4px;
}

.mac-user-message {
    align-items: flex-end;
}
.mac-user-message p {
    background-color: #0073aa;
    color: white;
    border-bottom-right-radius: 4px;
}

/* Chat Footer (Input Form) */
.mac-chat-footer {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

#mac-chat-form {
    display: flex;
}

#mac-chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1em;
    outline: none;
}

#mac-chat-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}
/* Add this to the end of assets/css/chatbot.css */
.mac-agent-message {
    align-items: flex-start;
}
.mac-agent-message p {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-bottom-left-radius: 4px;
}

/* Add this to the end of assets/css/chatbot.css */

.mac-loader-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}
.mac-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}