/* Chatbot Window Styles */
:root {
    --chat-primary: #BFF747;
    --chat-bg: #111111;
    --chat-text: #ffffff;
    --chat-secondary-text: #c2c2c2;
    --chat-accent: #1B1B1B;
}

.chatbot-container {
    position: fixed;
    bottom: 140px;
    right: 30px;
    width: 380px;
    max-width: 90vw;
    height: 600px;
    max-height: 70vh;
    background: var(--chat-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    font-family: 'DM Sans', sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

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

/* Header */
.chatbot-header {
    background: var(--chat-accent);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-logo {
    width: 40px;
    height: 40px;
    background: var(--chat-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-logo img {
    width: 25px;
    filter: brightness(0);
}

.chatbot-header-text h3 {
    font-size: 16px;
    margin: 0;
    color: #ffffff;
    font-family: 'Boldonse', sans-serif;
    letter-spacing: 1px;
}

.chatbot-header-text p {
    font-size: 12px;
    margin: 0;
    color: var(--chat-primary);
    font-weight: 500;
}

.close-chatbot {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.close-chatbot:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Chat Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--chat-primary) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--chat-primary);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: var(--chat-accent);
    color: var(--chat-text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-message {
    background: var(--chat-primary);
    color: #000000;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    font-weight: 500;
}

/* Options/Buttons */
.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-self: flex-start;
}

.option-btn {
    background: rgba(191, 247, 71, 0.1);
    border: 1px solid var(--chat-primary);
    color: var(--chat-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: var(--chat-primary);
    color: #000000;
}

/* Footer / Input Area */
.chatbot-input-area {
    padding: 15px 20px;
    background: var(--chat-accent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

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

.send-btn {
    background: var(--chat-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn img {
    width: 18px;
    filter: brightness(0);
}

/* Typing Indicator */
.typing {
    font-size: 12px;
    color: var(--chat-primary);
    margin-bottom: 5px;
    display: none;
}

@media (max-width: 480px) {
    .chatbot-container {
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        bottom: 110px;
    }
}