/* Mobile-first base styles */
    body { 
      font-family: Arial, sans-serif; 
      margin: 0;
      padding: 0;
    }
    
    /* Chatbot container - mobile first */
    #hotel-chatbot-container {
      position: fixed; 
      bottom: 20px; 
      right: 20px; 
      z-index: 1000;
    }
    
    #chatbot-window {
      display: none; 
      width: 90vw; 
      max-width: 350px;
      height: 500px; 
      background: white; 
      border-radius: 10px; 
      box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
      flex-direction: column; 
      overflow: hidden; 
      margin-bottom: 10px; 
      border: 1px solid #e0e0e0;
    }
    
    #chatbot-header {
      background: linear-gradient(to right, #1a73e8, #4285f4); 
      color: white; 
      padding: 15px; 
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      border-top-left-radius: 10px; 
      border-top-right-radius: 10px;
    }
    
    #chatbot-header h3 {
      margin: 0; 
      font-family: Arial, sans-serif; 
      font-weight: 500; 
      font-size: 1.1em;
    }
    
    #audio-control {
      margin-right: 15px; 
      cursor: pointer; 
      font-size: 18px;
    }
    
    #chatbot-close {
      cursor: pointer; 
      font-size: 20px; 
      font-weight: bold;
    }
    
    #chatbot-messages {
      flex: 1; 
      overflow-y: auto; 
      padding: 10px; 
      background-color: #ffffff; 
      height: 350px; 
      font-family: Arial, sans-serif;
    }
    
    .message {
      margin-bottom: 15px; 
      padding: 10px 15px; 
      border-radius: 20px; 
      background-color: #f1f8ff; 
      max-width: 80%; 
      float: left; 
      clear: both; 
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .message.bot-message {
      background-color: #f1f8ff;
    }
    
    .message.user-message {
      background: #007bff;
      color: #fff;
      margin-left: auto;
      float: right;
    }
    
    .message .sender {
      font-weight: bold; 
      margin-bottom: 5px; 
      color: #1a73e8;
    }
    
    .message.user-message .sender {
      color: #fff;
    }
    
    #chatbot-input-container {
      display: flex; 
      padding: 10px; 
      border-top: 1px solid #e0e0e0; 
      background-color: white;
    }
    
    #chatbot-input {
      flex: 1; 
      padding: 12px; 
      border: 1px solid #ddd; 
      border-radius: 20px; 
      margin-right: 10px; 
      font-family: Arial, sans-serif; 
      font-size: 14px;
    }
    
    #chatbot-send {
      background: linear-gradient(to right, #1a73e8, #4285f4); 
      color: white; 
      border: none; 
      border-radius: 20px; 
      padding: 10px 15px; 
      cursor: pointer; 
      font-family: Arial, sans-serif; 
      font-weight: 500;
    }
    
    /* Original chatbox styles */
    #chatbox {
      width: 90vw;
      max-width: 350px;
      height: 520px;
      border: 1px solid #ccc;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #fff;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      z-index: 2001;
    }

    /* Floating chat toggle button */
    .chat-toggle {
      position: fixed;
      right: 20px;
      bottom: 20px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg,#1a73e8,#4285f4);
      color: white;
      border: none;
      box-shadow: 0 6px 18px rgba(0,0,0,0.2);
      font-size: 24px;
      z-index: 2000;
      cursor: pointer;
    }

    /* Chat header inside #chatbox */
    #chatbox .chat-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px;
      background: linear-gradient(90deg,#1a73e8,#4285f4);
      color: #fff;
    }

    #chatbox .chat-header .chat-title { font-weight: 600; }

    #chatbox .chat-header .chat-controls .chat-minimize {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
    }

    /* Collapsed state: hide the chatbox but keep toggle visible */
    #chatbox.collapsed {
      display: none;
    }

    /* Open state: ensure visible and mobile fullscreen */
    #chatbox.open {
      display: flex;
    }

    /* Fullscreen on small screens */
    @media (max-width: 767px) {
      #chatbox.open {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        z-index: 2001;
      }
    
      #input-area {
    	position: fixed;
    	bottom: 0;
    	left: 0;
    	right: 0;
      }
    }
    
    #messages {
      flex: 1;
      padding: 12px;
      overflow-y: auto;
    }
    
    .msg {
      margin: 8px 0;
      padding: 10px 14px;
      border-radius: 12px;
      max-width: 80%;
      line-height: 1.5em;
      word-wrap: break-word;
      white-space: pre-wrap;
    }

    /* Small, subtle system messages (status / info) */
    .msg.system {
      display: block;
      margin: 6px auto;
      padding: 6px 10px;
      background: transparent;
      color: #666;
      font-size: 12px;
      line-height: 1.2;
      border-radius: 8px;
      max-width: 90%;
      text-align: center;
      box-shadow: none;
      opacity: 0.95;
    }
    
    .user {
      background: #007bff;
      color: #fff;
      margin-left: auto;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    
    .bot {
      background: #f1f1f1;
      color: #222;
      margin-right: auto;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    #input-area {
      display: flex;
      border-top: 1px solid #ddd;
    }
    
    #input {
      flex: 1;
      padding: 12px;
      border: none;
      outline: none;
      font-size: 14px;
    }
    
    #send {
      background: #007bff;
      color: white;
      border: none;
      padding: 0 18px;
      cursor: pointer;
      font-size: 14px;
      transition: 0.2s;
    }
    
    #send:hover { background: #0056b3; }
    
    a {
      color: #007bff;
      text-decoration: none;
    }
    
    a:hover { text-decoration: underline; }
    
    /* Tablet and desktop styles */
    @media (min-width: 768px) {
      #chatbot-window {
        width: 350px;
      }
      
      #chatbox {
        width: 350px;
      }
      
      #chatbot-header h3 {
        font-size: 1.2em;
      }
    }