
/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(38, 123, 41);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: #267b29;
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.chatbot-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgb(38, 123, 41);
    color: white;
    border-radius: 12px 12px 0 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
    font-size: 14px;
}

.chatbot-message.bot {
    background: #f0f8f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-message.user {
    background: rgb(38, 123, 41);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-category-btn {
    background: white;
    border: 2px solid rgb(38, 123, 41);
    color: rgb(38, 123, 41);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.chatbot-category-btn:hover {
    background: rgb(38, 123, 41);
    color: white;
}

.chatbot-questions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.chatbot-question-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.chatbot-question-btn:hover {
    background: #e9f7ef;
    border-color: rgb(38, 123, 41);
}

.chatbot-back-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.chatbot-back-btn:hover {
    background: #5a6268;
}

.chatbot-action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.chatbot-action-btn.primary {
    background: rgb(38, 123, 41);
    border: none;
    color: white;
}

.chatbot-action-btn.primary:hover {
    background: #267b29;
}

.chatbot-action-btn.secondary {
    background: white;
    border: 2px solid rgb(38, 123, 41);
    color: rgb(38, 123, 41);
}

.chatbot-action-btn.secondary:hover {
    background: rgb(38, 123, 41);
    color: white;
}

.chatbot-input {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chatbot-input input:focus {
    border-color: rgb(38, 123, 41);
}

.chatbot-input button {
    background: rgb(38, 123, 41);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.chatbot-input button:hover {
    background: #267b29;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chatbot-window {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        height: 60vh;
        max-height: 400px;
    }

    .chatbot-toggle {
        right: 10px;
        bottom: 10px;
    }
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}
