#chat-toggle{
  position:fixed;
  bottom:5px;
  right:10px;
  z-index:9999;
  background-color: #4CAF50;
  color:#fff;
  padding:14px 18px;
  border-radius:28px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  box-shadow:0 6px 16px rgba(0,0,0,0.25);
  font-family:Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}

#chat-toggle ion-icon {
    color: #ffd32a;
    width: 24px;
    height: 24px;
}

img.emoji {
    width: 2rem !important;
    height: 2rem !important;
}

#chat-box{
  display:none;
  position:fixed;
  bottom:70px;
  right:10px;
  width:95vw;
  max-width:520px;
  background-color:#fff;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  overflow:hidden;
  z-index:9999;
  font-family:Arial, Helvetica, sans-serif;
}

#chat-box.show{display:block;}

#chat-header{
  background-color: #4CAF50;
  color:#fff;
  padding:14px;
  font-weight:bold;
  font-size:17px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

#chat-header button {
    background-color: rgba(0, 0, 0, 0) !important;
    border: none;
}

#chat-close::before {
    font-size: 30px;
    right: 10px;
    bottom: 4px;
    position: relative;
    color: white;
    cursor: pointer;
}

#chat-body{
  padding:15px;
  height:320px;
  overflow-y:auto;
  font-size:15px;
  line-height:1.2;
}

#chat-input-area{
  border-top:1px solid #eee;
  padding:10px;
  display:flex;
  gap:5px;
}

#chat-input{
  flex: 1 1 auto;  /* input grows and shrinks */
  min-width: 50px; /* prevents input from disappearing entirely */
  padding:10px;
  font-size:16px;
}

#send-btn, #send-info-btn, #close-chat-btn{
  background-color:#2e7d32;
  background-color: #4CAF50;;
  color:white;
  border:none;
  padding:10px 12px;
  cursor:pointer;
  border-radius:4px;
  font-size:16px;
  flex: 0 0 auto;  /* button keeps its natural width */
  white-space: nowrap;
}

#image-upload {
    width: 100%;        /* full width of input area */
    padding: 10px;
    padding-left: 0;
    font-size: 16px;    /* large text */
    box-sizing: border-box;
    margin-bottom:5px;
}

.preview-img {
    max-width: 100px;
    max-height: 100px;
    display:block;
    margin-bottom:5px;
}

#image-step-container {
  display: flex;
  flex-direction: column; /* stack children vertically */
  width: 100%;
  gap: 5px;              /* optional spacing between items */
  margin-bottom: 5px;
}

.yes-btn {
    padding: 6px 15px;
    margin-right: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
} 
.no-btn {
    padding: 6px 15px;
    margin-left: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.yes-btn:hover, .no-btn:hover {
    background-color: #45a049;
}
    
}

/* Style the file input button */
input[type="file"]::file-selector-button {
    background-color: #4CAF50; /* Green background */
    color: white;              /* White text */
    border: none;               /* Remove default border */
    padding: 8px 16px;          /* Padding for size */
    margin: 4px 0;
    border-radius: 4px;         /* Rounded corners */
    cursor: pointer;            /* Pointer on hover */
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#submit-info-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 16px;
    margin: 0px 0;
    border-radius: 0px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}    

.input-div {
    margin-top: 20px;
    margin-bottom: 20px;
}

.custom-file-btn {
    padding: 12px !important;
    background-color: #4CAF50 !important;
    color: #fff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease;
}

.custom-file-btn:hover {
    background-color: #45a049 !important;
}

/* Hover effect */
input[type="file"]::file-selector-button:hover, .custom-file-btn:hover, #submit-info-btn:hover {
    background-color: #45a049;
}

/* Optional: Remove extra margin/padding from input */
input[type="file"] {
    font-family: inherit;
}

#yes-no-toggle button {
    flex:1;
    padding:8px;
    font-size:14px;
    border-radius:4px;
}

#close-chat-container{margin-top:5px;}
.preview-img{max-width:100px;margin-top:5px;}
.bot-msg{background-color:#eee;padding:6px 10px;border-radius:6px;margin-bottom:8px;display:flex;
    align-items:center;gap:4px;}
.bot-msg ion-icon { width:22px;height:22px;color:#f53b57;}    
.user-msg{background-color: #4CAF50; color:white;padding:6px 10px;border-radius:6px;margin-bottom:8px;text-align:right;}