/*------------------------------------------------------------
#chatbot
--------------------------------------------------------------*/
.chatbot-container {
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 1000;
}

.chatbot-button {
    width: 45px;
    height: 45px;
    background-color: #1e40af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    width: 380px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-window.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    background-color: #1e40af;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header h3 {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.chatbot-messages {
    height: 400px;
    overflow-y: auto;
    padding: 16px;
    background-color: #f8fafc;
}

.message {
    margin-bottom: 12px;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.bot {
    background-color: #e0f2fe;
    color: #1e40af;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background-color: #1e40af;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-container {
    display: flex;
    margin-bottom: 8px;
}

.message.bot-container {
    justify-content: flex-start;
}

.message.user-container {
    justify-content: flex-end;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    background-color: white;
    border-top: 1px solid #e2e8f0;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
}

.chatbot-input button {
    background-color: #1e40af;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button svg {
    width: 18px;
    height: 18px;
}

.typing-indicator {
    display: none;
    padding: 8px 16px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.typing-indicator.active {
    display: flex;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #64748b;
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.6;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

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

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.suggestion-chip {
    background-color: #e0f2fe;
    color: #1e40af;
    border: 1px solid #bae6fd;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background-color: #bae6fd;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 320px;
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
}