/* Conversation List Sidebar - Dark Gaming Theme */
.conversation-list {
  width: 320px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 217, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.conversation-list-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conversation-list-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-new-conversation {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
  color: #000000;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.btn-new-conversation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

/* Conversation Items */
.conversation-list-items {
  flex: 1;
  overflow-y: auto;
}

.no-conversations {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #9ca3af;
}

.no-conversations p {
  margin: 0.5rem 0;
}

.no-conversations .hint {
  font-size: 0.875rem;
  color: #d1d5db;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.conversation-item:hover {
  background: #f9fafb;
}

.conversation-item.active {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

/* Conversation Avatar */
.conversation-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.conversation-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}

/* Conversation Details */
.conversation-details {
  flex: 1;
  min-width: 0;
}

.conversation-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.conversation-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.conversation-last-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.last-message-text {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.unread-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #3b82f6;
  color: white;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scrollbar Styling */
.conversation-list-items::-webkit-scrollbar {
  width: 6px;
}

.conversation-list-items::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.conversation-list-items::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.conversation-list-items::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
