
/* WATranslate UI additions v4.0 */

.brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 18px;
  line-height: 1.05;
}

.sidebar-mode-label {
  margin-top: 3px;
  font-size: 11px;
  color: #93a4ad;
  font-weight: 500;
}

.archive-view-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #111c22;
  color: #cbd6db;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
}

.archive-view-button:hover,
.archive-view-button.active {
  background: #17272e;
}

.archive-view-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24353d;
  color: #59c7a5;
  font-size: 14px;
}

.contact-row {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.contact-row .contact {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding-right: 42px;
}

.contact-avatar,
.chat-header-avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #34474f;
  color: #e7eff2;
  font-weight: 700;
  user-select: none;
}

.contact-avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.contact-content {
  min-width: 0;
  flex: 1;
}

.contact-content .contact-name,
.contact-content .contact-id,
.contact-content .contact-last {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-actions {
  position: absolute;
  right: 6px;
  top: 8px;
  z-index: 20;
}

.contact-menu-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9cabb2;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-menu-button:hover {
  background: rgba(255,255,255,.08);
  color: #eef4f6;
}

.contact-menu {
  position: absolute;
  right: 0;
  top: 32px;
  min-width: 145px;
  display: none;
  overflow: hidden;
  background: #24343c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.contact-menu.open {
  display: block;
}

.contact-menu button {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e5ecef;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.contact-menu button:hover {
  background: rgba(255,255,255,.08);
}

.contact-menu button.danger {
  color: #ff9b9b;
}

.contact-list-empty {
  padding: 24px 14px;
  color: #8798a1;
  font-size: 13px;
  text-align: center;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-contact {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.chat-header-contact strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-contact span {
  margin-top: 2px;
  font-size: 11px;
  color: #91a2aa;
}

@media (max-width: 720px) {
  .contact-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .contact-row .contact {
    padding-right: 38px;
  }
}
