#plantae-chat-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    font-family: inherit;
  }
  #plantae-chat-toggle:hover {
    background: #157347;
  }
  #plantae-chat-box {
    display: none;
    flex-direction: column;
    width: 600px;
    max-width: 98vw;
    height: 700px;
    max-height: 92vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
  }
  #plantae-chat-box.open {
    display: flex;
  }
  #plantae-chat-header {
    background: #198754;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #plantae-chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
  }
  #plantae-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
  }
  #plantae-chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f8f9fa;
  }
  #plantae-chat-footer {
    background: #f8f9fa;
    padding: 10px 12px;
    border-top: 1px solid #e9ecef;
  }
  #plantae-chat-footer .input-group {
    display: flex;
    gap: 6px;
  }
  #plantae-chat-footer textarea {
    flex: 1;
    border-radius: 16px;
    border: 1.5px solid #d1e7dd;
    box-shadow: 0 1px 4px rgba(25,135,84,0.07);
    padding: 16px 18px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    min-height: 30px;
    max-height: 60px;
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.5;
  }
  #plantae-chat-footer textarea:focus {
    border: 1.5px solid #198754;
    box-shadow: 0 2px 8px rgba(25,135,84,0.13);
  }
  #plantae-chat-footer input[type="file"] {
    display: none;
  }
  #plantae-clear-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    margin-left: 8px;
    cursor: pointer;
  }
  @media (max-width: 600px) {
    #plantae-chat-box {
      width: 98vw;
      height: 80vh;
      right: 1vw;
      bottom: 1vw;
    }
  }
  
  #imageBtn, #sendBtn, #voiceBtn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
  }
  #imageBtn:hover, #sendBtn:hover, #voiceBtn:hover {
    background: transparent !important;
  }
  #sendBtn img, #voiceBtn img {
    width: 26px;
    height: 26px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    display: block;
  }
  #imageBtn img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    display: block;
  }
  #image-preview {
    position: relative;
    display: inline-block;
  }
  #image-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    margin-right: 8px;
    display: block;
  }
  #remove-image-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #dc3545;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    z-index: 2;
    padding: 0;
  }
  #remove-image-btn:hover {
    background: #ffeaea;
  }
  
  #imageBtn:focus, #sendBtn:focus, #voiceBtn:focus {
    outline: none;
    box-shadow: none;
  }
  
  #plantae-chat-toggle {
    background: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10002;
  }
  #plantae-chat-toggle img {
    width: 42px;
    height: 42px;
    display: block;
    margin: auto;
    /* border-radius: 50%; */
    /* box-shadow: 0 1px 4px rgba(25,135,84,0.13); */
  }
  #plantae-chat-toggle:hover {
    /* box-shadow: 0 4px 24px rgba(25,135,84,0.25); */
    background: #ffffff;
  }
  
  
  /* Tooltip styling */
  .help-tooltip {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: #198754;
    color: #fff;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(25,135,84,0.18);
    opacity: 1;
    pointer-events: none; /* Prevent tooltip from blocking button clicks */
    transition: opacity 0.2s;
    z-index: 10002;
  }
  .help-tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #198754;
  }
  #plantae-chat-toggle:hover + .help-tooltip,
  #plantae-help-tooltip {
    opacity: 1;
  }
  #plantae-chat-toggle:focus + .help-tooltip {
    opacity: 1;
  }
  #plantae-chat-toggle.open + .help-tooltip {
    opacity: 0;
  }