/* 
   Kea Chatbot - Stylesheet
   Created: May 2025
*/

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    background-color: var(--dark-color);
    transform: scale(1.05);
}

.chatbot-button i {
    color: #ffffff;
    font-size: 24px;
}

.chatbot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-box.active {
    display: flex;
}

.chatbot-header {
    background-color: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chatbot-close {
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.1);
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f7f9;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    line-height: 1.5;
}

.bot-message {
    background-color: #e6f2ff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: var(--primary-color);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message.greeting {
    margin-top: 10px;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--primary-color);
}

.chatbot-send {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background-color: var(--dark-color);
}

.chatbot-send i {
    font-size: 16px;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: #e6f2ff;
    border-radius: 15px;
    margin-bottom: 15px;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    width: fit-content;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #90a4ae;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typing 1s infinite ease-in-out;
}

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

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

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

@keyframes typing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 5px;
}

.quick-reply {
    background-color: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 15px;
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}
