.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}


.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* The .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use the .demo-only-element class with the .demo-vertical-spacing class. For example, we have used this class in the forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.chat-container {
  display: flex;
  height: 100%;
  margin: 0 auto;
  position: relative;
}
.chat-box {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  background-color: #f8f9fa;
  padding: 5px;
}
.user-list {
  height: 100%;
  overflow-y: auto;
  background-color: #ffffff;
  padding: 5px;
  border-left: 1px solid #ccc;
  width: 30%;
}

.user-list li {
  cursor: pointer;
}

.user-list li.active {
  font-weight: bold;
}
#message-form {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: 0;
  margin-right: 30%;
  display: flex;
}
div .container-chat{
    width:1000px;
    height:1000px;
}
#chat-messages {
  display: grid;
  padding: 5px;
  overflow-y: auto;
  height: 95%;
}
.message-container {
  display: flex;
  justify-content: flex-start; /* Align other users' messages to the left */
  margin-bottom: 5px;
}

.message-container.me {
  justify-content: flex-end; /* Align your messages to the right */
}

.message {
  max-width: 80%;
  padding: 8px;
  border-radius: 15px;
  background-color: #e9ecef;
}

.message::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 16px; 
  border-style: solid;
  border-width: 6px 6px 0 6px;
}
#input-message {
  width: 180px;
  height: 40px;
}
.message {
  word-break: break-word;
  position: relative;
  display: inline-block;
  max-width: 90%;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 15px;
  background-color: #e9ecef;
}
.message::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 6px 6px 0 6px;
  border-color: #e9ecef transparent transparent transparent;
}
