/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #2C5F2D;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44, 95, 45, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(44, 95, 45, 0.6);
}

.chatbot-toggle.active {
    background: #8B4513;
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #D4A574;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, #2C5F2D, #1a3a1b);
    color: #fff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.chatbot-header-content i {
    font-size: 1.3rem;
    color: #D4A574;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #FAF8F3;
}

.bot-message,
.user-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: #2C5F2D;
    color: #D4A574;
}

.user-message .message-avatar {
    background: #D4A574;
    color: #fff;
}

.message-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 70%;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: #2C5F2D;
    color: #fff;
}

.chatbot-questions {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #E5E5E5;
    max-height: 150px;
    overflow-y: auto;
}

.question-btn {
    display: block;
    width: 100%;
    background: #FAF8F3;
    border: 1px solid #E5E5E5;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #333;
}

.question-btn:hover {
    background: #2C5F2D;
    color: #fff;
    border-color: #2C5F2D;
    transform: translateX(5px);
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #E5E5E5;
    border-radius: 0 0 15px 15px;
}

.chatbot-input input {
    flex: 1;
    border: 2px solid #E5E5E5;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #2C5F2D;
}

.chatbot-input button {
    background: #2C5F2D;
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: #1a3a1b;
    transform: scale(1.1);
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar,
.chatbot-questions::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track,
.chatbot-questions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb,
.chatbot-questions::-webkit-scrollbar-thumb {
    background: #2C5F2D;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover,
.chatbot-questions::-webkit-scrollbar-thumb:hover {
    background: #1a3a1b;
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
        height: 500px;
    }

    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }
}