   /* Floating Chatbot Styles */
    .chatbot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        font-family: 'Nunito', sans-serif;
    }

    .chatbot-toggle {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #3F9EDD, #2A7BC4);
        border-radius: 50%;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(63, 158, 221, 0.4);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .chatbot-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(63, 158, 221, 0.6);
    }

    .chatbot-pulse {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(63, 158, 221, 0.3);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(1.4);
            opacity: 0;
        }
    }

    .chatbot-window {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 350px;
        height: 500px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .chatbot-window.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .chatbot-header {
        background: linear-gradient(135deg, #3F9EDD, #2A7BC4);
        color: white;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

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

    .chatbot-close {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s 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;
    }

    /* Admin chatbot specific styling */
    #adminChatbotMessages {
        padding: 0;
        max-height: calc(500px - 70px); /* Total height minus header */
    }

    #chatMessages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        min-height: 200px;
        max-height: calc(100% - 120px);
    }

    .message {
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
    }

    .message.user {
        flex-direction: row-reverse;
    }

    .message.bot .message-content {
        background: #f1f3f5;
        color: #333;
        border-radius: 18px 18px 18px 5px;
    }

    .message.user .message-content {
        background: linear-gradient(135deg, #3F9EDD, #2A7BC4);
        color: white;
        border-radius: 18px 18px 5px 18px;
        margin-right: 8px; /* Add margin since there's no avatar */
    }

    .message-content {
        max-width: 80%;
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin: 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }

    .message.bot .message-avatar {
        background: linear-gradient(135deg, #3F9EDD, #2A7BC4);
        color: white;
    }

    .message.user .message-avatar {
        background: #e9ecef;
        color: #495057;
    }

.chatbot-input-area {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    background: white;
    margin-top: auto;
    position: sticky;
    bottom: 0;
}    .chatbot-input {
        flex: 1;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 10px 15px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s ease;
    }

    .chatbot-input:focus {
        border-color: #3F9EDD;
    }

    .chatbot-send {
        background: linear-gradient(135deg, #3F9EDD, #2A7BC4);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(42, 123, 196, 0.3);
    }

    .chatbot-send:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(42, 123, 196, 0.4);
    }

    .chatbot-send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        background: #f1f3f5;
        border-radius: 18px 18px 18px 5px;
        margin-left: 40px;
    }

    .typing-dots {
        display: flex;
        gap: 4px;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: #999;
        border-radius: 50%;
        animation: typing 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .typing-dot:nth-child(2) { animation-delay: -0.16s; }

    @keyframes typing {
        0%, 80%, 100% {
            transform: scale(0);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .quick-action-btn {
        background: transparent;
        border: 1px solid #3F9EDD;
        color: #3F9EDD;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
        outline: none;
        display: inline-block;
        text-decoration: none;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        min-height: 32px;
        vertical-align: middle;
    }

    .quick-action-btn:hover {
        background: #3F9EDD;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(63, 158, 221, 0.3);
    }

    .quick-action-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(63, 158, 221, 0.3);
    }

    .quick-action-btn:focus {
        outline: 2px solid #3F9EDD;
        outline-offset: 2px;
    }

    @media (max-width: 768px) {
        .chatbot-window {
            width: 320px;
            height: 450px;
        }
        
        .chatbot-container {
            bottom: 15px;
            right: 15px;
        }
    }
