/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}

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

.chatbot {
    position: fixed;
    bottom: 240px;
    right: 30px;
    width: 300px;
    height: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot.open {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #277696 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.user {
    background: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.bot {
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: white;
}

#chatInput {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
}

#chatInput:focus {
    border-color: #667eea;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    margin-left: 0.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.send-btn:hover {
    background: #764ba2;
}

@media (max-width: 768px) {
    .chatbot {
        width: 90%;
        right: 5%;
        bottom: 150px;
    }
    
    .chatbot-toggle {
        bottom: 80px;
        right: 20px;
    }
}
