:root {
            --primary-color: #4a6fa5;
            --primary-light: #6a8cc9;
            --primary-dark: #345284;
            --accent-color: #ff9800;
            --accent-light: #ffb74d;
            --accent-dark: #f57c00;
            --text-dark: #333;
            --text-light: #f8f9fa;
            --bg-light: #f8f9fa;
            --bg-dark: #212529;
            --gray-100: #f8f9fa;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-400: #ced4da;
            --gray-500: #adb5bd;
            --gray-600: #6c757d;
            --gray-700: #495057;
            --gray-800: #343a40;
            --gray-900: #212529;
            --border-radius: 8px;
            --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        /* Basic Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
        }

        /* ChatBot Button */
        .chatbot-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--primary-color);
            color: var(--text-light);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            box-shadow: var(--box-shadow);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: var(--transition);
        }

        .chatbot-button:hover {
            background-color: var(--primary-dark);
            transform: scale(1.05);
        }

        /* Chatbot popup */
        .chatbot-popup {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 350px;
            height: 450px;
            background: white;
            box-shadow: var(--box-shadow);
            border-radius: var(--border-radius);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 999;
            transition: var(--transition);
        }

        /* Chatbot header */
        .chatbot-header {
            background: var(--primary-color);
            color: var(--text-light);
            padding: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
        }

        /* Logo section */
        .chatbot-logo {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--text-light);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chatbot-logo i {
            color: var(--primary-color);
            font-size: 16px;
        }

        /* Close button */
        .close-btn {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 18px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: var(--transition);
        }

        .close-btn:hover {
            color: var(--gray-300);
        }

        /* Chatbot Info */
        .chatbot-info {
            background: var(--gray-200);
            padding: 10px;
            text-align: center;
            font-size: 12px;
            border-bottom: 1px solid var(--gray-300);
        }

        .info-link {
            margin-top: auto;
            color: var(--primary-color);
            text-decoration: none;
        }

        .info-link:hover {
            text-decoration: underline;
        }

        /* Chatbot Body */
        .chatbot-body {
            padding: 15px;
            height: 280px;
            overflow-y: auto;
            font-size: 14px;
            background: var(--gray-100);
            display: flex;
            flex-direction: column;
        }

        /* Chat Message */
        .chat-message {
            display: flex;
            align-items: flex-start;
            margin-bottom: 10px;
            max-width: 80%;
        }

        /* Avatar Bot */
        .chat-avatar {
          width: 35px;
          height: 35px;
          border-radius: 50%;
          margin-right: 10px;
          background-color: var(--primary-light);
          display: flex;
          align-items: center;
          justify-content: center;
          color: var(--text-light);
          font-size: 16px;
          overflow: hidden;
          flex-shrink: 0;
          position: relative;
          box-sizing: border-box;
      }
              
      .chat-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          /* Added to ensure image fills circle properly */
          position: absolute;
          top: 0;
          left: 0;
      }

        /* Chat Bubble */
        .chat-bubble {
            background: var(--gray-300);
            padding: 12px 16px;
            border-radius: var(--border-radius);
            font-size: 14px;
            word-wrap: break-word;
            position: relative;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* Style for chatbot (messages from AI) */
        .chat-message.chatbot {
            flex-direction: row;
        }

        .chat-message.chatbot .chat-bubble {
            background: var(--gray-300);
            color: var(--text-dark);
            border-top-left-radius: 0;
        }

        /* Style for user (messages from user) */
        .chat-message.user {
            justify-content: flex-end;
            align-self: flex-end;
        }

        .chat-message.user .chat-bubble {
            background: var(--primary-color);
            color: var(--text-light);
            border-top-right-radius: 0;
        }

        /* Quick Replies */
        .quick-replies {
            display: flex;
            flex-wrap: wrap;
            margin-top: 10px;
            gap: 5px;
        }

        .quick-reply {
            background: var(--primary-light);
            color: var(--text-light);
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            border: none;
            transition: var(--transition);
        }

        .quick-reply:hover {
            background: var(--primary-dark);
        }

        /* Chatbot Footer */
        .chatbot-footer {
            display: flex;
            border-top: 1px solid var(--gray-300);
            padding: 12px;
            background: white;
            align-items: center;
        }

        .chatbot-footer input {
            flex: 1;
            padding: 10px;
            border: 1px solid var(--gray-400);
            border-radius: var(--border-radius);
            font-size: 14px;
        }

        .chatbot-footer input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .chatbot-footer button {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            margin-left: 8px;
            cursor: pointer;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            transition: var(--transition);
        }

        .chatbot-footer button:hover {
            background: var(--primary-dark);
            transform: scale(1.05);
        }

        /* Responsive Styling */
        @media (max-width: 400px) {
            .chatbot-popup {
                width: 90%;
                right: 5%;
            }
        }
