body,
html {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #262262;
}
#root {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #262262;
}
.header {
  height: 50px;
  background-color: #262262;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #090544;
  color: white;
}
.sidebar {
  width: 100%;
  background-color: #262262;
  border: 1px solid #090544;
  display: flex;
  flex-direction: column;
  padding: 0px;
}
.sidebar .ant-menu {
  background-color: #262262;
  color: #fff;
}
.sidebar .ant-menu-item {
  color: #fff !important;
}
.sidebar .ant-menu-item::after {
  content: attr(data-has-new-message);
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: green;
  border-radius: 50%;
  margin-left: 8px;
  visibility: hidden;
}
.sidebar .ant-menu-item.new-message::after {
  visibility: visible;
}
.content {
  display: flex;
  flex-grow: 1;
  background-color: #f0f2f5;
  flex-direction: column;
}
.conversations-list {
  width: 100%;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  background-color: #fff;
}
.conversations-list .selected-conversation {
  background-color: #e6f7ff;
  padding: 20px;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color: #0084c1;
}
.ant-list-split .ant-list-item:last-child {
  border-bottom: none;
  padding: 10px;
  cursor: pointer;
}
.messages-view {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #e5ddd5;
}
.message-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
}
.message-item {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 60%;
  word-wrap: break-word;
}
.message-item.agent {
  background-color: #dcf8c6;
  align-self: flex-end;
  text-align: left;
}
.ant-list-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.message-item.customer {
  background-color: #fff;
  align-self: flex-start;
  text-align: left;
}
.message-input {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f0f2f5;
}
.message-input .upload-button {
  margin-right: 8px;
}
.message-input textarea {
  flex-grow: 1;
  border-radius: 10px;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ddd;
}
.message-input button {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 10px;
}
.assignment-dropdown {
  margin-right: 10px;
}
.conversation-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px !important;
  cursor: pointer;
}
.conversation-item .ant-list-item-meta-content {
  width: 100%;
}
.conversation-detail {
  float: left;
  align-items: flex-start;
  display: flex;
  margin-top: 10px;
}
.sidebar .ant-menu {
  border: 0px;
}
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #262262;
  padding: 10px;
}
.mobile-header .back-button {
  color: white;
  font-size: 16px;
}

.conversations-list {
  width: 25% !important;
  flex: 0 0 25% !important;
  max-width: 25% !important;
  min-width: 25% !important;
}
.messages-view {
  width: 75%;
}

.ant-dropdown-menu-item,
.ant-dropdown-menu-submenu-title {
  white-space: break-spaces !important;
}

.ant-dropdown-menu {
  max-height: 500px;
  overflow: auto;
}
.new-message-highlight {
  background-color: #b8ef78 !important;
}
@media (min-width: 768px) {
  .mobile-header {
    display: none;
  }
  .header,
  .sidebar,
  .content {
    display: flex;
  }
}
@media (max-width: 767px) {
  .hide {
    display: none !important;
  }
  .header,
  .sidebar,
  .content {
    display: none;
  }
  .conversations-list,
  .messages-view {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
  .mobile-header {
    display: flex;
  }
}

.user-list .ant-list-item-meta-title,
.user-list .ant-list-item-action li {
  color: #fff !important;
}

.demo-loadmore-list .ant-list-item:last-child {
  padding-left: 0px;
  padding-right: 0px;
}

.online {
  width: 16px;
  height: 16px;
  background: green;
  border-radius: 50%;
  display: block;
}

.offline {
  width: 16px;
  height: 16px;
  background: red;
  border-radius: 50%;
  display: block;
}
