#chat-container {
    position: fixed;
    bottom: 80px;  /* Positioned above the help button */
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;  /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

#chat-container.active {
    display: flex;
}

#chatbox {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

#chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #dee2e6;
    background-color: white;
}

#chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 14px;
}

#send-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#send-button:hover {
    background-color: #333333;
}

/* Message styles */
.chat-message {
    margin-bottom: 10px;
    max-width: 80%;
}

.user-message {
    margin-left: auto;
    background-color: #000000;
    color: white;
    padding: 8px 12px;
    border-radius: 15px 15px 0 15px;
}

.bot-message {
    margin-right: auto;
    background-color: #e9ecef;
    color: #212529;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 0;
}

/* Chat header */
#chat-header {
    padding: 15px;
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

#chat-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    padding: 8px;
    gap: 4px;
    opacity: 0.7;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: typing-animation 1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Scrollbar styles */
#chatbox::-webkit-scrollbar {
    width: 6px;
}

#chatbox::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chatbox::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#chatbox::-webkit-scrollbar-thumb:hover {
    background: #555;
} 