/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-content-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.fixed-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
}

.toolbar-title {
  font-size: 18px;
}

/* User Icon and Name Container */
.custom-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-spacer {
  flex-grow: 1;
}

.custom-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.custom-icon-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.custom-container h6 {
  font-size: 14px;
  color: white;
  margin: 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.messages-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 100%;
}


.messages-wrapper::-webkit-scrollbar {
  width: 8px;
}

.messages-wrapper::-webkit-scrollbar-thumb {
  background-color: #0078d4;
  border-radius: 4px;
}

/* Conversations */
.conversations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 10% 10px 10%;
}

.message {
  display: flex;
  align-items: flex-start;
  margin: 5px 0;
  max-width: 100%;
}

.message-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  position: relative;
  padding-right: 60px;
}

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

.message.user .message-content {
  background-color: #e1f5fe;
}

.message.assistant {
  justify-content: flex-start;
  width: 100%;
}

.message.assistant .message-content {
  background-color: #e6f0ff;
}
 
/* INPUT container is now part of layout */
.input-container {
  background-color: white;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  padding: 12px 5%;
}

.input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  box-sizing: border-box;
}

.input-container input {
  flex: 1;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.input-container input:focus {
  border-color: #0078d4;
}

.send-icon {
  cursor: pointer;
  color: #0078d4;
  font-size: 1.5rem;
}
.send-icon {
  cursor: pointer;
  color: #0078d4;
  font-size: 1.5rem;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  text-align: center;
}

.reaction-buttons {
  top: -8px;
  right: -20px;
  display: flex;
  gap: 10px;
  align-items: center;
  visibility: hidden;
  padding: 4px;
  border-radius: 8px;
}

.message.assistant:hover .reaction-buttons {
  visibility: visible;
}

.agent-info {
  position: absolute;
  right: 4px;
  bottom: -12px;
  background-color: #0078d4;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 60px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.highlight-icon {
  font-size: 16px;
  color: white;
}

.top-menu-bar {
  background-color: white !important;
  color: #0078d4;
}

.top-menu-bar .toolbar-title {
  color: #0078d4;
}

.top-menu-bar button mat-icon {
  color: #0078d4;
}

.toolbar-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}