/* Chat Component Theme Overrides */

.chat-menu .chat-menu-toolbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e6ebf1;
  padding: 12px 12px;
}

.chat-menu .chat-menu-toolbar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-menu .chat-menu-toolbar h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a3353;
  line-height: 1.5;
  flex: 1;
}

.chat-menu .chat-menu-toolbar .ant-btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-menu .chat-menu-list .chat-menu-list-item {
  transition: all 0.2s ease-in-out;
}

.chat-menu .chat-menu-list .chat-menu-list-item:hover {
  background-color: #f5f5f5;
}

.chat-menu .chat-menu-list .chat-menu-list-item.selected {
  background-color: rgba(62, 121, 247, 0.05);
  border-left: 3px solid #3e79f7;
  padding-left: 17px;
}

.chat-content .chat-content-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e6ebf1;
}

.chat-content .chat-content-body .msg-sent .bubble-wrapper {
  background-color: #3e79f7;
  color: #ffffff;
}

.chat-content .chat-content-body .msg-recipient .bubble-wrapper {
  background-color: #ededed;
  color: #1a3353;
}

.chat-content .chat-content-footer {
  background-color: #fafafb;
  border-top: 1px solid #e6ebf1;
}

/* Button hover effects */
.ant-btn-primary {
  background-color: #3e79f7;
  border-color: #3e79f7;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background-color: #0d57f5;
  border-color: #0d57f5;
}

/* Input focus effects */
.ant-input:focus,
.ant-input-focused {
  border-color: #3e79f7 !important;
  box-shadow: 0 0 0 2px rgba(62, 121, 247, 0.1) !important;
}

/* Badge styling */
.ant-badge-count {
  background-color: #3e79f7;
}

/* Chat menu list item active state */
.chat-menu-list-item.selected {
  background-color: rgba(62, 121, 247, 0.05);
}

/* Message date divider */
.chat-content .chat-content-body .msg.datetime {
  color: #72849a;
}

/* Conversation search input */
.chat-menu-toolbar .ant-input-affix-wrapper {
  border: 1px solid #e6ebf1;
  background-color: #fafafb;
}

.chat-menu-toolbar .ant-input-affix-wrapper:hover {
  border-color: #3e79f7;
}

.chat-menu-toolbar .ant-input-affix-wrapper-focused {
  border-color: #3e79f7;
  box-shadow: 0 0 0 2px rgba(62, 121, 247, 0.1);
}

/* New chat modal */
.new-chat-modal .ant-modal-header {
  border-bottom: 1px solid #e6ebf1;
}

.new-chat-modal .ant-modal-footer {
  border-top: 1px solid #e6ebf1;
}

/* User list in new chat modal */
.user-list-item {
  transition: background-color 0.2s ease-in-out;
}

.user-list-item:hover {
  background-color: #f5f5f5;
}

.user-list-item.selected {
  background-color: rgba(62, 121, 247, 0.05);
}

/* Message actions buttons */
.msg-action-btn {
  color: #72849a;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.msg:hover .msg-action-btn {
  opacity: 1;
}

.msg-action-btn:hover {
  color: #3e79f7;
  background-color: rgba(62, 121, 247, 0.1);
}

/* Tab styling */
.ant-tabs-nav {
  border-bottom: 1px solid #e6ebf1;
}

.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #3e79f7;
  font-weight: 600;
}

.ant-tabs-ink-bar {
  background-color: #3e79f7;
}

/* Popover styling for chat notifications */
.nav-notification .ant-popover-inner {
  background-color: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Scroll bar styling */
.chat-content .chat-content-body::-webkit-scrollbar {
  width: 6px;
}

.chat-content .chat-content-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-content .chat-content-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-content .chat-content-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.chat-menu-list::-webkit-scrollbar {
  width: 6px;
}

.chat-menu-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-menu-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-menu-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Loading spinner color */
.ant-spin-dot-item {
  background-color: #3e79f7;
}

/* Empty state styling */
.ant-empty-description {
  color: #72849a;
}
