#sfchat-app-inner {
  display: flex;
  height: 510px;
  overflow: scroll;
}

#sfchat-app {
  padding: 10px;
  height: 450px;
  max-width: 500px;
}

.sfchat-users-list {
  overflow-y: auto;
}

.sfchat-users-list ul {
  list-style: none;
  padding-left: 0;
}

.sfchat-users-list a {
  display: local;
  padding: 5px;
  text-decoration: none;
  color: #0073aa;
  cursor: pointer;
}

.sfchat-users-list a:hover {
  background: #f0f0f0;
}

.sfchat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
}

sfchat-messages {
        flex: 1;
        overflow-y: auto;
        border-bottom: 1px solid #ccc;
        padding: 5px;
        font-size: 14px;
    } 
    .sfchat-messages {
        max-height: 510px;       
        overflow-y: auto;       
        scroll-behavior: smooth; 
    }
    .sfchat-message {
        margin-bottom: 5px;
    }
    .sfchat-message.self {
        text-align: right;
        color: green;
    }
    .sfchat-message.other {
        text-align: left;
        color: blue;
    }
    #sfchat-message-input {
        width: 100%;
        box-sizing: border-box;
    }
    #sfchat-send-btn {
        margin-top: 5px;
    }
    .sfchat-user.active {
        background: #f0f0f0;
    }

    #chatbotfloat {
        position: fixed;
        bottom: 40px; 
        right: 20px; 
        width: 60px;
        height: 60px;
        background-color: #0f6bac;
        border-radius: 50%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        cursor: pointer;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #chatbotfloat img {
        width: 30px;
        height: 30px;
    }

    .chatboticon {
        position: fixed;
        bottom: 110px;
        right: 20px;
        width: 480px;
        height: 600px;
        border-radius: 12px;
        box-shadow:0 4px 8px rgba(0,0,0,0.2); 
        background:#fff; 
        z-index:9998;
    }
    .chatboticon-heading {
        background: linear-gradient(272deg, #0f69aa 18.96%, #282a5f 100%);
        color: white;
        padding: .8rem;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .chatboticon-heading h5 {
        color: #fff;
        font-size: 18px;
        padding: 0;
        font-weight: 500;
        margin: 0;
    }

    .sfchat-message {
        margin-bottom: 16px;
    }

    .sfchat-message.self span {
        background: #cbe4f7;
        padding: 7px;
        border-radius: 5px;
        color: black;
    }

    .sfchat-message.other span {
        background: #f0f0f0;
        padding: 7px;
        border-radius: 5px;
        color: black;
    }



.chatbot-card {
  padding: 16px;
  border-radius: 12px;
  background: #f9f9f9;
  margin: 10px 0;
}

.bot-message {
  font-size: 14px;
}

.option-btn {
  display: local;
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
}

.option-btn:hover {
  background: #0056b3;
}

.nav-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}

.chatbot-message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  font-family: 'Segoe UI', Roboto, sans-serif;
}


.chatbot-message {
  display: flex;
  width: 100%;
}

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}


.chat-bubble {
  min-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
}

.bot-bubble {
  background-color: #f3f3f3;
  color: #333;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.user-bubble {
  background-color: #007882;
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-options-group {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.chat-option-btn {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chat-option-btn:hover {
  background: #f7f7f7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-btn-container {
  text-align: center;
  margin-top: 8px;
}

.nav-btn {
  background: none;
  color: #666;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.nav-btn:hover {
  color: #000;
}

.chatbot-nav-buttons{
    display: flex;
}
.feedback-options {
  margin-top: 10px;
  display: flex;
  /* flex-direction: column; */
  gap: 8px;
  align-items: flex-start;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.chatbot-message:empty {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Feedback bubble styling fix */
.chatbot-message.feedback-message {
  margin-top: 8px;
}

.chatbot-message.feedback-message .bot-bubble {
  background-color: #f1f1f1; /* match normal bot color */
  color: #333;
  border-radius: 16px;
  padding: 10px 14px;
  max-width: 75%;
}

/* Ensure feedback buttons stay inline and look uniform */
.chatbot-message.feedback-message .chat-option-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 8px;
  margin: 5px 6px 0 0;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chatbot-message.feedback-message .chat-option-btn:hover {
  background-color: #e9e9e9;
}
