/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

/* Chat Toggle Button */
#chatbot-toggle {
    background: linear-gradient(135deg, #ef3893, #6a38ef);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 56, 147, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 56, 147, 0.6);
}

/* Chat Window */
#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #0f1016;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0);
    visibility: hidden;
}

#chat-window.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* Header */
.chat-header {
    background: rgba(22, 23, 34, 0.95);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef3893, #6a38ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#close-chat {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

#close-chat:hover {
    color: white;
}

/* Body (Messages) */
#chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #0f1016;
    scrollbar-width: thin;
    scrollbar-color: #2c2f3f #0f1016;
}

#chat-body::-webkit-scrollbar {
    width: 6px;
}

#chat-body::-webkit-scrollbar-thumb {
    background-color: #2c2f3f;
    border-radius: 3px;
}

.message {
    margin-bottom: 12px;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background-color: #1a1b26;
    color: #e6f1ff;
    border-top-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
    background: linear-gradient(135deg, #ef3893, #6a38ef);
    color: white;
    margin-left: auto;
    border-top-right-radius: 2px;
}

/* Footer (Input) */
.chat-footer {
    padding: 15px;
    background: rgba(22, 23, 34, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: #0f1016;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

#chat-input:focus {
    border-color: #ef3893;
}

#send-btn {
    background: none;
    border: none;
    color: #ef3893;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

#send-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    #chatbot-container {
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    #chat-window {
        width: 300px;
        bottom: 80px; 
        right: 0;
    }
}
