.sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;        /* make it full-height */
}
.sidebar-body {
  flex: 1;              /* take up all remaining space */
  overflow-y: auto;     /* scroll if content overflows */
}

.chatbox {
  background: #fafafa;
  display: flex;
  flex-direction: column;
}
.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
}
.chat-message.user {
  background: #0d6efd; /* Bootstrap blue */
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-message.bot {
  background: #e9ecef; /* light gray */
  color: #212529;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.voice-option.active .text-muted {
  color: #fff !important;
}


/* Sidebar Pages dropdown tidy */
.sidebar-pages .nav-link {
  background: var(--bs-primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}


.sidebar-pages .nav-link .item-name { font-weight: 600; }
.sidebar-pages .nav-link .caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
}

.sidebar-pages .dropdown-menu {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.sidebar-pages .dropdown-header {
  font-size: .85rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  padding: 6px 10px;
}

.sidebar-pages .dropdown-item {
  border-radius: 8px;
  padding: 8px 10px;
}
.sidebar-pages .dropdown-item:hover {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
}
.sidebar-pages .dropdown-divider { margin: 8px 0; }

.sidebar-pages .badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .4rem;
  border-radius: 6px;
}

/* Optional: style the “+ Connect a Facebook Page” */
.sidebar-pages .dropdown-item.add-link {
  font-weight: 600;
}

/* Sidebar divider between Page Selector and Dashboard */
.iq-main-menu .menu-divider {
  list-style: none;
  margin: 10px 12px 12px;
  border-top: 1px solid var(--bs-border-color, rgba(0,0,0,.08));
  opacity: .9;
}

/* optional: nicer contrast in dark themes */
[data-bs-theme="dark"] .iq-main-menu .menu-divider {
  border-top-color: rgba(255,255,255,.12);
}






