body, html {
      height: 100%;
      margin: 0;
    }
	
.refreshButton{
	float: left;
    text-align: center;
    padding: 4px 7px;
    white-space: normal;
}

.message-user{
	white-space: normal;
}	

.accordion-body code{
	white-space: pre-wrap;
}	
    .chat-app {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
    .sidebar {
      width: 280px;
      background-color: #f5f5fa;
    }
    .preview-panel {
      width: 350px;
    }
    .chat-item {
      padding: 10px 15px;
      background-color: #f0f0f5;
      border-radius: 8px;
      margin-bottom: 6px;
      cursor: pointer;
    }
    .chat-item:hover {
      background-color: #e2e6ea;
    }
    .chat-item.active {
      background-color: #d6ccff;
      font-weight: 600;
    }
    .chat-main {
  flex-grow: 1;
  min-width: 74%;
  display: flex; 
}
    .chat-header {
      display: flex;
      justify-content: space-between;
      align-items: center; 
    }
    .chat-toolbar {
      display: flex;
      gap: 0.5rem;
    }
    .chat-toolbar button {
      font-size: 0.875rem;
    }
    #chatOutput {
      overflow-y: auto;
      flex-grow: 1;
      background-color: #f0ebff;
    }
    #chatForm {
      background-color: white;
      border-top: 1px solid #ddd;
    }
    .model-bar {
      padding: 6px 10px;
      background: #f4f4f4;
      border-top: 1px solid #ddd;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .badge-pro {
      background: #ece0ff;
      color: #6f42c1;
    }
	
	#chatLeft {
  display: flex;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.chat-list-panel {
  width: 280px;
  transition: width 0.3s ease;
  overflow-y: auto;
}

.chat-list-panel.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
}
	
	.chat-item {
  transition: background-color 0.2s;
  cursor: pointer;
}
.chat-item:hover {
  background-color: #f1f3f5;
}
.icon-btn {
  visibility: hidden;
}
.chat-item:hover .icon-btn {
  visibility: visible;
}

.message-user{
      background-color: #91bcfcb5;	
	  border-radius: 9px;
	  white-space: break-spaces;
}

@keyframes scrollBarMove {
  0% {
    left: -30%;
  }
  100% {
    left: 100%;
  }
}

.chat-item.active {
    background-color: #e7f1ff; 
}

.custom-gray {
  background-color: #fdfdfd; /* or #e0e0e0 for slightly darker */
}

.dropdown-menu .dropdown-menu {
  margin-left: 0.1rem;
  left: 100%;
  top: 0;
}

/* Fix Bootstrap dropend submenu positioning */
.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0.1rem;
  display: none;
}

/* Show submenu when parent is shown */
.dropend:hover > .dropdown-menu,
.dropend:focus-within > .dropdown-menu {
  display: block;
}


 .preview-panel {
    transition: margin-right 0.3s ease, width 0.3s ease;
  }
  .preview-panel.collapsed { 
    width: 0 !important;
    overflow: hidden;
  }
  
 #chat-main-warp{
	 max-width: 70%;
 }
 
 .hide-important {
  display: none !important;
}

#toggleChatList .bi{
	font-size:20px;
}

/* setting */

#setting-app-warp {
	max-height: 80vh; overflow-y: auto; width: 100%;
}

.dropdown-item.active, .dropdown-item:active {
    color: #000 !important;
    text-decoration: none;
    background-color: #fff !important;
}

#list-idea-button .idea-button{
	font-size:15px !important;
}