/* Chatbot UI */
.chatbot-toggle {
    position: fixed;
    bottom: 100px;
    /* Above bottom nav */
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold-bg);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    z-index: 2147483647;
    /* Max z-index to stay on top */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    /* Flex to center icon */
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.chatbot-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient-gold-bg);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: 700;
    font-family: var(--font-heading);
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #111;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background: var(--gold-dark);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.chatbot-input-area {
    padding: 15px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.chatbot-input-area input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 20px;
    color: #fff;
}

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

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