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

/* Floating Action Button (FAB) */
#chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1c2228 0%, #2a3139 100%);
    border: 2px solid #d8b65d;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounceIn 1s ease;
}

#chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216, 182, 93, 0.4);
}

#chatbot-toggle-btn i {
    color: #d8b65d;
    font-size: 28px;
    transition: transform 0.3s;
}

/* Chat Window */
#chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Header */
.chat-header {
    background: #1c2228;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #d8b65d;
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #d8b65d;
}

.chat-title h3 {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-title span {
    color: #d8b65d;
    font-size: 12px;
}

.chat-close-btn {
    color: #ffffff;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.chat-close-btn:hover {
    color: #d8b65d;
    transform: rotate(90deg);
}

/* Messages Area */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: #ffffff;
    color: #1c2228;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    align-self: flex-start;
    border: 1px solid #e9ecef;
}

.user-message {
    background: #1c2228;
    color: #d8b65d;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

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

.chat-option-btn {
    background: #ffffff;
    border: 1px solid #d8b65d;
    color: #1c2228;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: #d8b65d;
    color: #ffffff;
}

/* Animations */
@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scrollbar */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.chat-body::-webkit-scrollbar-thumb {
    background: #d8b65d;
    border-radius: 10px;
}
