/* Chatbot Button */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.chatbot-toggle i {
    width: 30px;
    height: 30px;
}

/* Chatbot Sidebar/Container */
.chatbot-container {
    position: fixed;
    top: 0;
    right: -400px; /* Initially hidden */
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 3100;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.chatbot-container.active {
    right: 0;
}

.chatbot-header {
    padding: 1.5rem;
    background: #007bff;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-bot {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}

.message-user {
    align-self: flex-end;
    background: #007bff;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chatbot-input-area {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.chatbot-send {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Typing indicator */
.typing {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: none;
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 100%;
        right: -100%;
    }
}
