/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#chatbot-container.active {
    display: flex;
}

#chatbot-header {
    background-color: #0F1A2B;
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

#chatbot-header p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

#chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #F5F7FA;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatbot-message.bot {
    background-color: #ffffff;
    color: #1F2937;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chatbot-message.user {
    background-color: #1CAF5D;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#chatbot-input-area {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 10px;
}

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

#chatbot-input:focus {
    border-color: #1CAF5D;
}

#chatbot-send {
    background-color: #1CAF5D;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#chatbot-send:hover {
    background-color: #159C50;
}

#chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#chatbot-send:disabled {
    background-color: #A7F3D0;
    cursor: not-allowed;
}

/* Toggle Button */
#chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #1CAF5D;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatbot-toggle:hover {
    transform: scale(1.1);
}

#chatbot-toggle svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Typing Indicator */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #9CA3AF;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    #chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 2000;
    }

    #chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}