/* Dark mode styling for messages */
[data-theme="dark"] .conversation-item .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .conversation-item p.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .message-time {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .message-date {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Message content in dark mode */
[data-theme="dark"] .message-outgoing .message-content {
  background-color: #0d6efd;
  color: #ffffff;
}

[data-theme="dark"] .message-incoming .message-content {
  background-color: #f8f9fa;
  color: #000000;
}

[data-theme="dark"] .message-incoming .message-sender,
[data-theme="dark"] .message-incoming .message-text,
[data-theme="dark"] .message-incoming .message-date-full,
[data-theme="dark"] .message-incoming .message-time-value {
  color: #000000 !important;
}

[data-theme="dark"] .message-outgoing .message-sender,
[data-theme="dark"] .message-outgoing .message-text,
[data-theme="dark"] .message-outgoing .message-date-full,
[data-theme="dark"] .message-outgoing .message-time-value {
  color: #ffffff !important;
}

/* Improve contrast for conversation items in dark mode */
[data-theme="dark"] .conversation-item {
  border-color: #444;
}

[data-theme="dark"] .conversation-item:hover {
  background-color: #2a2a2a;
}

[data-theme="dark"] .conversation-item.active {
  background-color: #3a3a3a;
}

/* Dark mode styling for trade headers */
[data-theme="dark"] .trade-header {
  background-color: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
}

[data-theme="dark"] .trade-title {
  color: #ffffff;
}

[data-theme="dark"] .trade-title i {
  color: #3b8aff;
}
