/* assets/css/chatbot.css - Chatbot floating widget styles */

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    background: #E63946;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    right: 0;
}
.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    background: #1D3557;
    color: #fff;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #F8F9FA;
    max-height: 300px;
}
.chatbot-messages .message {
    margin-bottom: 0.8rem;
    max-width: 80%;
    clear: both;
}
.chatbot-messages .message.bot {
    float: left;
}
.chatbot-messages .message.bot p {
    background: #fff;
    padding: 0.6rem 1rem;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    color: #333;
    font-size: 0.9rem;
}
.chatbot-messages .message.user {
    float: right;
}
.chatbot-messages .message.user p {
    background: #E63946;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 12px 12px 0 12px;
    font-size: 0.9rem;
}

.chatbot-quick-replies {
    padding: 0.5rem 1rem;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    border-top: 1px solid #eee;
}
.chatbot-quick-replies .quick-reply {
    background: #1D3557;
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-quick-replies .quick-reply:hover {
    background: #E63946;
    transform: scale(1.02);
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem;
    background: #fff;
}
.chatbot-input input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
}
.chatbot-input button {
    background: #E63946;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-input button:hover {
    background: #c5303e;
}

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

@media (max-width: 480px) {
    .chatbot-panel {
        width: 300px;
        right: -10px;
    }
}