:root {
    --accent-color: #94A378;
    --bg-dark: #161616;
    --text-white: #ededed;
}

/* Floating Trigger Button */
#chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    color: black;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Chat Window */
#chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-color);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    border-bottom-left-radius: 2rem;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

#chatbot-header {
    background: var(--accent-color);
    padding: 1.5rem;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
}

#close-chat {
    background: transparent;
    border: none;
    color: black;
    font-size: 2rem;
    cursor: pointer;
}

#chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.4rem;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message {
    background: #222;
    color: var(--text-white);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--accent-color);
    color: black;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

/* Typing Animation */
.typing {
    display: flex;
    gap: 4px;
    padding: 1rem 1.5rem;
    background: #222;
    border-radius: 1.5rem;
    align-self: flex-start;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

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

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

@keyframes blink {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

/* Suggestions */
#chatbot-suggestions {
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

#chatbot-suggestions span {
    padding: 0.5rem 1rem;
    background: rgba(148, 163, 120, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 1.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

#chatbot-suggestions span:hover {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 10px var(--accent-color);
}

#chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 120, 0.2);
    display: flex;
    gap: 1rem;
}

#chatbot-input {
    flex: 1;
    background: #000;
    border: 1px solid var(--accent-color);
    border-radius: 2rem;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1.4rem;
}

#send-btn {
    background: var(--accent-color);
    border: none;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    #chatbot-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
        height: 400px;
    }
}