/* CHATBOT FLOATING BUTTON */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #111;
    border: 2px solid #39FF14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
}

/* Tooltip bubble */
.chatbot-tooltip {
    position: absolute;
    right: 80px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite ease-in-out;
    cursor: default;
    pointer-events: none;
    z-index: 9998;
}

/* Tooltip arrow */
.chatbot-tooltip::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.chatbot-tooltip strong {
    display: block;
    color: #000;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.chatbot-tooltip span {
    display: block;
    color: #666;
    font-size: 0.75rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

.chatbot-trigger svg {
    width: 30px;
    height: 30px;
    stroke: #39FF14;
}

/* CHATBOT WINDOW */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

/* HEADER */
.chatbot-header {
    background: #111;
    padding: 20px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #39FF14;
    border-radius: 50%;
    box-shadow: 0 0 8px #39FF14;
}

.chatbot-title span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.close-chatbot {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.close-chatbot:hover {
    color: #39FF14;
}

/* MESSAGES */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #39FF14 transparent;
}

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

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #39FF14;
    border-radius: 10px;
}

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

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

.message.bot {
    align-self: flex-start;
    background: #1a1a1a;
    color: #eee;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user {
    align-self: flex-end;
    background: #39FF14;
    color: #000;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* OPTIONS */
.chatbot-options {
    padding: 10px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.option-btn {
    background: transparent;
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39FF14;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: #39FF14;
    transform: scale(1.05);
}

/* INPUT */
.chatbot-input-area {
    padding: 20px;
    background: #111;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    background: #0d0d0d;
    border: 1px solid #222;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: #39FF14;
}

.send-msg {
    background: #39FF14;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.send-msg:hover {
    transform: scale(1.05);
}

/* TYPING INDICATOR */
.typing {
    font-style: italic;
    font-size: 0.8rem;
    color: #555;
    margin-left: 20px;
    display: none;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10001;
    }
    
    .chatbot-trigger {
        bottom: 20px;
        right: 20px;
    }
}
