/* Chatbot Styles */
:root {
    --chat-primary-color: #4893ae;
    --chat-secondary-color: ;
    --chat-text-color: #ffffff;
    --chat-header-text: #ffffff;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--chat-primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1050;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #1a368d;
}

.chat-toggle-btn .chat-icon-close {
    display: none;
}

.chat-toggle-btn.active .chat-icon-open {
    display: none;
}

.chat-toggle-btn.active .chat-icon-close {
    display: block;
}

.chat-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: #242726;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
    z-index: 1049;
}

.chat-container.active {
    transform: scale(1);
}

.chat-header {
    background-color: var(--chat-primary-color);
    color: var(--chat-header-text);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chat-header h5 {
    margin: 0;
    font-weight: 600;
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--chat-header-text);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chat-log {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--chat-secondary-color);
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message p {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message {
    align-items: flex-end;
}

.user-message p {
    background-color: var(--chat-primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-items: flex-start;
}

.bot-message p {
    background-color: #252c2a;
    color: var(--chat-text-color);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background-color: #4893AE;
}

.chat-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--chat-primary-color);
}

.chat-send-btn {
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--chat-primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background-color: #1a368d;
}